This is a discussion on Help With PHP Script. within the Php and MySQL forums, part of the Programming / Scripting / Coding category; 20WMT? when my band gets updated (6:50pm GMT) if you can solve this for me. I get Parse error: parse ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| | #1 (permalink) |
| Senior Member | 20WMT? when my band gets updated (6:50pm GMT) if you can solve this for me. I get Parse error: parse error, unexpected T_ELSE in /home/jdjokes/public_html/top10.php on line 7 when i access it; heres the code: PHP Code:
__________________ -Gary |
| | |
| | #2 (permalink) |
| *poke* *poke* | Try this: PHP Code:
__________________ |
| | |
| | #3 (permalink) |
| Senior Member | We've half sorted it over msn. I know have the code: PHP Code: (Sent some WMT? just for trying mck
__________________ -Gary |
| | |
| | #4 (permalink) |
| Super Moderator | I'd replace PHP Code: PHP Code: Any reason for putting quotes round the table & field names ? Any reason for doing a select *, this is generally bad practise, do you actually need every field ? If not then you're returning data that's not needed and adding load to your host and delay to the execution of your script.
__________________ Alex Monaghan - Monaghan Consultants Ltd Web hosting, ADSL, IT & Database consultancy Custom Web hosting on UK or USA servers using Linux (cPanel) or Windows (DotNetPanel) Mobile Phone Ringtones, Logos, Java Games & more |
| | |
| | #6 (permalink) |
| Super Moderator | Quoting is acceptable, however only required when you use a reserved word or a non-alpha/numeric within a name. Quoting can be good, however simple meaningful names avoiding any requirement for quoting would probably be far better and more protable as many SQL enqines use differing quoting methods.
__________________ Alex Monaghan - Monaghan Consultants Ltd Web hosting, ADSL, IT & Database consultancy Custom Web hosting on UK or USA servers using Linux (cPanel) or Windows (DotNetPanel) Mobile Phone Ringtones, Logos, Java Games & more |
| | |
| Tags |
| php, script |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Survey Script | matty005 | Php and MySQL | 2 | 23-05-2006 10:50 |
| script that does this | xeno | Website Development Forum | 2 | 02-04-2006 12:02 |
| Need a script for my site | nicklas | Website Design Forum | 5 | 12-10-2005 18:20 |
| Your most complicated script | Wistow | Programming / Scripting / Coding | 13 | 09-04-2005 20:43 |
| Looking for Script | cashoutusa | Programming / Scripting / Coding | 4 | 02-03-2005 19:23 |