note 17815 rejected from function.mysql-query by zak
| From: | zak@php.net | Date: | Thu, 27 Dec 2001 11:02:53 +0000 |
| Subject: | note 17815 rejected from function.mysql-query by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23869@lists.php.net to get a copy of this message | ||
I'm new to PHP, so i was wondering if, instead of me trying to figure out what seems like
greek, will someone out there add the lines to the following code so that it reads and returns
true/false from a MySQL Table?
<html>
<body>
<?php
$db = mysql_connect("0.0.0.0", "uname", "pass");
mysql_select_db("Users",$db);
$query="select * from employees where username='$usnm' and
password='$pswd'";
echo "This is my username:".$usnm;
echo "I have:".$gl.$sk.$kn;
echo "I am in:".$house;
?>
</body>
</html>
Thanks!!