Bleej Posted December 25, 2009 Share Posted December 25, 2009 Hello, I got the parse error "Parse error: syntax error, unexpected ',' in register.php on line 21 Heres the code: <body bgcolor="black"> <head> <title>Unamed Project</title> <link rel="stylesheet" type="text/css" href="http://bleej.exofire.net/main.css" /> </head> <div style="background-color:green; text-align:center"> <a href="index.html">Index</a> </div> <br><br><br><br><br><br> <?php @mysql_connect("localhost", "bleej", "*********") or die("Cannot connect to DB!"); @mysql_select_db("tbl_lgin") or die("Cannot select DB!"); [b]$sql="INSERT INTO login_tbl (loginid, password and email) VALUES (".$loginid.”,”.$password.”,”.$email.”)”;[/b] $r = mysql_query($sql); if(!$r) { $err=mysql_error(); print $err; exit(); } ?> </body> </html> Any help? I can't see anything wrong. Link to comment https://forums.phpfreaks.com/topic/186302-parse-error-help/ Share on other sites More sharing options...
Buddski Posted December 25, 2009 Share Posted December 25, 2009 $sql="INSERT INTO login_tbl (loginid, password, email) VALUES ('".$loginid."','".$password."','".$email."')"; Link to comment https://forums.phpfreaks.com/topic/186302-parse-error-help/#findComment-983868 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.