hansolo Posted February 21, 2013 Share Posted February 21, 2013 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 More sharing options...
justsomeguy Posted February 21, 2013 Share Posted February 21, 2013 You're missing a semicolon on the line before that. Link to comment Share on other sites More sharing options...
hansolo Posted February 21, 2013 Author Share Posted February 21, 2013 ok ive located the ini file were mentioned to check for errors. I cant seem to locate were to make the changes as the ini error file. Does contain a large amount of text Link to comment Share on other sites More sharing options...
justsomeguy Posted February 21, 2013 Share Posted February 21, 2013 I'm not sure what ini file you're talking about, the error is in the code you posted. You're missing a semicolon. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now