Jump to content

Help please! (code included) - error on mysql query


dpenguin

Recommended Posts

code:
[code]$db_conn = mysql_connect("localhost", "user", "pw");
mysql_select_db("database", $db_conn);
$query = "select * from table "
."where name='$userid' "
." and pass=password('$password')";
$result = mysql_query($query, $db_conn) or die('Sorry, the query is not able to return a result.');[/code]


This keeps dying. Help?

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.