Jump to content

updating database


hansolo
 Share

Recommended Posts

hi trying to update the my sql database i am getting the following error unexpected t varaible i guess its refering the variable my name. as it mnetions it on this line <?phpmysql_connect("root","localhost","");mysql_select_db("name_db")$newname = "danny";$lastname = "smith";$insertName = "INSERT INTO tbl (first_name, last_name) VALUES('$newname','$lastname')";mysql_query($insertName);}?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...