Jump to content

[SOLVED] Unexpected T_STRING


Akenatehm

Recommended Posts

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

Archived

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

×
×
  • Create New...

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.