![]() |
|
#1
|
|||
|
|||
PHP + MySQL + Javascripti am trying to create a dropdown menu that lists previously saved entries onto an orderform, when they click the option, the data gets entered for them. i am just having some problems on getting this done.
PHP Code:
Code:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/virtual/site490/fst/var/www/html/func/orderform.php(54) : eval()'d code on line 107 i've tested the script to make sure it edits the input box correctly, so that works fine, its just when i try to reference the php from the javascript that i am messing up, any help would be appreciated. |
|
#2
|
||||
|
||||
Re: php + mysql + javascriptIn the PHP code, what is the intent of "%p" after the FROM keyword ?
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
|||
|
|||
Re: php + mysql + javascriptsorry that the first php box looks wierd,
PHP Code:
the %p is replaced with the prefix for the database tables |
|
#4
|
||||
|
||||
Re: php + mysql + javascriptI think you might need some script tags wrapped around the Javascript code -- it needs to be handled a little differently when mixed with PHP. Have a look at this.
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#5
|
|||
|
|||
Re: PHP + MySQL + Javascripti figured out a way to achieve my goal without passing variables through, thanks anyways guys
|
Recent GIDBlog
Flickr uploads of IA pictures by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cpanel downgrade MYSQL 4.1.X to MySQL 4.0.xx | Webhosting-live | Web Hosting Forum | 1 | 01-Sep-2006 02:54 |
| php and mysql | vladimy | MySQL / PHP Forum | 2 | 28-May-2005 05:17 |
| An Introduction to Javascript | JasonMichael | Web Design Forum | 2 | 24-Oct-2004 10:19 |
| JavaScript Tutorial Part 1 | pcxgamer | Web Design Forum | 2 | 01-Dec-2003 09:16 |
| Windows: From only £20p/y,Linux: from $10p/m. ASP, ASP.NET, PHP, Free MySQL, +More | EyotaHosts | Web Hosting Advertisements & Offers | 0 | 28-Jun-2003 13:54 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The