OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Writing to an MySQL Database

From: Jigal van Hemert (jigalspill.nl)
Date: Fri Jul 02 2004 - 09:19:24 CDT


> It's the "Data Capture section that's causing issues. I keep getting an
> error telling me there's an "Unexpected $" on a line that's actually
outside
> even the HTML tag.

You forgot to end the $sql = "...... with a closing quote. The line now ends
with ); while you probably want it to be )";

BTW it's not necessary or even wise to quote every variable you use:
   mysql_connect ("$host", "$user", "$password")
would preferrably be:
   mysql_connect ($host, $user, $password)

Regards, JIgal.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql