On 26-Mar-2003 BRYANT, LANCE wrote: > Here is a copy of the php script that I'm using. I can create tables and > query info just not add data to the database. > > > > <?php > //open the connection > $conn = mysql_connect("onyx","doghead","dogleg"); > > // pick the database to use > mysql_select_db("mydb",$conn); > > //create the SQL statement > $sql = "INSERT INTO testTable values ('', '$testField')"; >
echo "\n<!-- Debug:\n $sql \n-->"; > //execute the SQL statement > $result = mysql_query($sql, $conn) or die(mysql_error()); > > //echo the result identifier > echo $result; > ?> then View + Source. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. (53kr33t w0rdz: sql table query) -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]