Jump to content

[SOLVED] QUICK QUESTION


paulman888888

Recommended Posts

I have been trying to make a little script that will look in a MYSQL database and see if there is username and password in the same row.

 

If there is then echo 'blah';

and if not,

echo 'blah blah';

 

So far i have this but as you can tell its a little messy, and i dont know how to do the IF there is a 'username and password' part.

$result=mysql_query("SELECT * FROM user_man WHERE name = '$username' AND password = '$password'");
or die('error'); 

Thankyou for all help

Paul

Link to comment
https://forums.phpfreaks.com/topic/122884-solved-quick-question/
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.