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
riginal Message <<<<<<<<<<<<<<<<<< On 4/23/01, 10:32:47 AM, "shawn" <[EMAIL PROTECTED]> wrote regarding [PHP] insert data to mysql: > Hello, > I am just wondering if someone can help me out with this. This is what I h

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", "

[PHP] insert data to mysql

2001-04-23 Thread shawn
Hello, I am just wondering if someone can help me out with this. This is what I have so far, but it isnt working: MYSQL_CONNECT($hostname, $username, $password) or die("Unable to connect to database"); @mysql_select_db( "$dbName") or die( "Unable to select database"); $sql = "INSERT INTO $u