Username & Password ?
- From: Al Sparber <support@xxxxxxxxxxxxxxxx>
- Date: Sat, 04 Feb 2012 22:55:55 +0000
Where and how do I incorporate username and password in this code?
<html>
<body>
<?php
$db = mysql_connect("localhost", "root");
mysql_select_db("mydb",$db);
$result = mysql_query("SELECT * FROM employees",$db);
if ($myrow = mysql_fetch_array($result)) {
echo "<table border=1>\n";
echo "<tr><td>Name</td><td>Position</td></tr>\n";
do {
printf("<tr><td>%s %s</td><td>%s</tr>\n", $myrow["first"], $myrow["last"],
$myrow["address"]);
} while ($myrow = mysql_fetch_array($result));
echo "</table>\n";
} else {
echo "Sorry, no records were found!";
}
?>
</body>
</html>
--
Al Sparber - PVII
http://www.projectseven.com
Dreamweaver Menus | Galleries | Widgets
.
- Follow-Ups:
- Re: Username & Password ?
- From: Redcat
- Re: Username & Password ?
- From: Jerry Stuckle
- Re: Username & Password ?
- Next by Date: Re: Username & Password ?
- Next by thread: Re: Username & Password ?
- Index(es):
Relevant Pages
|