• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PHP Error

308holes are you completely ignoring our suggestions.
If that is what your database is then your row[] variables are wrong. If you want us to help help yourself by taking out suggestions.
 
Originally posted by Cyber-Scripter
... And Salam, why do you need curly brackets? I have never seen that method before...:confused:
This is because when you are writing "<p>NAME:$ROW['NAME']</p>" , PHP cant understand what is the variable name : $ROW or $ROW['NAME']</p> or ...
And when you write "<p>NAME:{$ROW['NAME']}</p>" , PHP knows $ROW is an array .
You can try , this code :
PHP:
$ROW['NAME']="aa" ;
print("<p>NAME:$ROW['NAME']</p>");
will return an error :
parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ...
But ,
PHP:
$ROW['NAME']="aa" ;
print("<p>NAME:{$ROW['NAME']}</p>");
returns NAME:aa .
 
Back
Top