![]() |
|
#1
|
|||
|
|||
T_variable, improve my syntax!Ok so here is my code in question:
PHP Code:
and im gettin the dreaded unexpected T_variable, im 99% sure this is something to do with my syntax like a bracket of quote mark or something, the error occurs on the $result, any thoughts? |
|
#2
|
|||
|
|||
Re: T_variable, improve my syntax!!missed some semi-colons nvm!!
|
|
#3
|
||||
|
||||
Re: T_variable, improve my syntax!!There is another problem that I saw in your code too.
Code:
Besides the missing semicolons, you are also doing an assignment (NOT A COMPARISON) in your if statement. Every time that you run this code, you will enter that if statement because you aren't checking to see if $num_rows is equal to 1... you are SETTING $num_rows equal to 1. Code:
__________________
If practice makes perfect and nobody's perfect... why practice? Homepage: http://www.treywhite.com Blog: http://www.treywhite.com/blog.php Web Design Company: http://www.ewebproductions.com |
|
#4
|
|||
|
|||
Re: T_variable, improve my syntax!!aye, i made a few mistakes, musn't have had my brain on!! its going ok now!!
|
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linked Lists advice request | promsan | C Programming Language | 74 | 23-May-2007 08:29 |
| syntax errors in document | coder | MS Visual C++ / MFC Forum | 0 | 11-Mar-2006 04:12 |
| Winsock error when compiling FLTK 2.0 Projects | mauriciorossi | FLTK Forum | 3 | 16-Aug-2005 10:18 |
| Help with syntax errors | PeteGallo | C Programming Language | 7 | 08-Aug-2005 20:30 |
| C++ PhoneBook | marita | CPP / C++ Forum | 46 | 12-Jun-2005 12:10 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The