![]() |
|
#1
|
|||
|
|||
Newbi Help pleaseCan someone please help with the below code.
PHP Code:
I know you should not have spaces in the field names of a mysql table but i didn't design the database so I'm stuck with it. I'm getting an error on this line of code Code:
Any help would be fantastic. Thanks. Last edited by admin : 29-Sep-2009 at 01:54.
Reason: Please insert your example PHP codes between [PHP] and [/PHP] tags
|
|||
|
#2
|
||||
|
||||
Re: Newbi Help pleaseI don't think the back-ticks are necessary, they are probably NOT included with the column name, and that could be causing trouble. Having the column name between the single quotes should be enough.
To see what information you are getting, simply do a print_r() on each $row inside the while loop. PHP Code:
EDIT: Also, there appears to be a stray double-quote after the </option> tag before the loop. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! Last edited by TurboPT : 29-Sep-2009 at 08:24.
|
|
#3
|
|||
|
|||
Re: Newbi Help pleaseThanks for a push in the right direction, but the only way i could get it to work was to create 2 variables and asign the field names to the variables, then put the variables in the loop.
If i put the field names in there with the spaces i kept getting syntax errors. Thanks |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The