Jump to content

Archived

This topic is now archived and is closed to further replies.

phpPrincess

The Parse error can kiss my ass!

Recommended Posts

i keep getting a *** parse error on this line, my syntax must be wrong....help!!!

 

 

$sql="INSERT INTO user (userID,fname,mi,lname,gender,st,pass) values ('$userID', '$fname', '$mi', '$lname', '$gender', '$st', '$pass');

Share this post


Link to post
Share on other sites

you're missing your closing quote on the statement:

 

<?php
$sql="INSERT INTO user (userID,fname,mi,lname,gender,st,pass) values ('$userID', '$fname', '$mi', '$lname', '$gender', '$st', '$pass')";
?>

Share this post


Link to post
Share on other sites

WHERE???!?!??!?!

 

ok i changed it and im still getting

 

Parse error: parse error, unexpected T_VARIABLE in /home/sajes2/public_html/ratemyboyfriend/register.php on line 7

 

 

 

this is my line 7

 

$sql="INSERT INTO user (userID,fname,mi,lname,gender,st,pass) values ('$userID', '$fname', '$mi', '$lname', '$gender', '$st', '$pass')";

Share this post


Link to post
Share on other sites

you might have missed a ; or something else before line 7. Please post line 1-7, and use

 tag.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.