Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cant get echo statement working

Status
Not open for further replies.

dunskii

Programmer
Sep 14, 2001
107
AU
Hi Again,

When using the echo statement i keep getting the same error...I new to php and cant see whats wrong

Heres the code...
echo &quot;<table width=&quot;50%&quot; border=1>\n&quot;;

And heres the error...
Parse error: parse error, expecting `','' or `';''


thanks in advance..
Dunskii
 
Escape your &quot;

So change it to

echo &quot;<table width=\&quot;50%\&quot; border=1>\n&quot;;
 
Thanks for the fast reply...

i now have this error

Fatal error: Call to undefined function: msql_connect()

heres the code..
$db = msql_connect(&quot;localhost&quot;, &quot;root&quot;);

i dont have any passwords set

thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top