Re: [PHP] insert data to mysql

2001-04-23 Thread shawn
define "not work" like is there an error? data not inserting? also, read and bookmark this tutorial, it'll help this and future endeavers : http://www.zend.com/zend/tut/using-strings.php The error is that the data isnt being written to the MySQL database. This is taking variables from a for

Re: [PHP] insert data to mysql

2001-04-23 Thread Richard Crawford
Concatenate your string. "...VALUES ('".$client."','".$contact."')" (etc.) Or just replace the double-quotes within the string with single quotes. That should do it. >> Original Message << On 4/23/01, 10:32:47 AM, "shawn" <[EMAIL PROTECTED]> wrote regarding

Re: [PHP] insert data to mysql

2001-04-23 Thread Thomas Deliduka
On 4/23/2001 1:32 PM this was written: > $sql = "INSERT INTO $userstable (client, contact, email, address, city, state, > zip, phone, fax, model, country, details, type) > > VALUES("$client", "$contact", "$email", "$address", "$city", "$state", "$zip", > "$phone", "$fax", "$model", "$country", "