note 17815 added to function.mysql-query
| From: | dfr at optonline dot net | Date: | Wed, 26 Dec 2001 19:25:45 +0000 |
| Subject: | note 17815 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23848@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!!
--
http://www.php.net/manual/en/function.mysql-query.php
http://master.php.net/manage/user-notes.php?action=edit+17815
http://master.php.net/manage/user-notes.php?action=delete+17815
http://master.php.net/manage/user-notes.php?action=reject+17815