Akenatehm Posted November 26, 2008 Share Posted November 26, 2008 Hey Guys, Having a small problem, can't see what's wrong. It shows up with the error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/kaurlcom/public_html/relayadmin/add_user/add_user.php on line 39 Here is my code: <?php include "../connect.php"; if(isset($_POST['submit'])) { $username=$_POST['username']; $password=$_POST['password']; $email=$_POST['email']; if(strlen($username)<1) { print "You did not enter a username."; } else if(strlen($password)<1) { print "You did not enter a password."; } else { $insert="Insert into users (username,pass,email) values('$username','$password','$email')"; mysql_query($insert) or die("Could not insert comment" . mysql_error()); echo "User Added. <A href''<a href="home.html">Click here</a> To Go Home."; } } ?> Thanks Aken Link to comment https://forums.phpfreaks.com/topic/134303-solved-unexpected-t_string/ Share on other sites More sharing options...
dezkit Posted November 26, 2008 Share Posted November 26, 2008 change echo "User Added. <A href''<a href="home.html">Click here</a> To Go Home."; to echo "User Added. <A href''<a href=\"home.html\">Click here</a> To Go Home."; Link to comment https://forums.phpfreaks.com/topic/134303-solved-unexpected-t_string/#findComment-699194 Share on other sites More sharing options...
Akenatehm Posted November 26, 2008 Author Share Posted November 26, 2008 Thanks again.. Link to comment https://forums.phpfreaks.com/topic/134303-solved-unexpected-t_string/#findComment-699201 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.