Fastest Web Hosting

php mysql insert code not working

0 votes
asked Sep 1, 2016 in Mysql by naseebsingh (2,160 points)

I want to insert data in my database. but it is giving a error

error : Parse error: syntax error, unexpected ')'
i did many try to solve it .but i am failed to the get success in this.

code is here:

$query = mysql_query("INSERT INTO `members` VALUES (''," .$username ."," . $password . "," . $date . "," .$email . ",1'"));

help me
Thanks

1 Answer

0 votes
answered Sep 1, 2016 by samran
$query = mysql_query("INSERT INTO `members` VALUES (''," .$username ."," . $password . "," . $date . "," .$email . ",1") ");

Job Board

TechnicalSharp is a technical community of developers where they are sharing their knowledge and solutions and against it they are getting the score point which help them to make profile strong which is under eyes on MNC's
...