NEWBIE: Inserting a row into the db

admin

Administrator
Staff member
I am trying to insert a row of data into my db using php. Here is my code:

$sql = ("INSERT INTO users (login, password, name, company, title, added, status, email, ability) VALUES ('$login', '$password', '$name', '$company', '$title', date(), '$status', '$email', '$ability')");

$result = mysql_query($sql);

After doing this ... nothing happens ... is this constructed right?

Bill
 
Back
Top