Jump to content

A simple problem


smti

Recommended Posts

Hello, I could use a bit of help. I get the following error when testing my script: Parse error: parse error, unexpected T_ECHO in /web/login/process.php on line 14

 

Here is my code:

 

<?

 

// Connect to database

 

$connection = mysql_connect("localhost","root","");

if (!$connection)

  {

  die('Could not connect: ' . mysql_error());

  }

 

$sql=("select * from users where username='$_POST[username]' and password='$_POST[password]' "));

$result=mysql_query($sql)

 

echo sql;

 

?>

 

Thanks,

 

smti

 

Link to comment
https://forums.phpfreaks.com/topic/98437-a-simple-problem/
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.