I am trying to step towards searching a database for a matched
value inputted by a user, a form of log-in.
I think because no errors come up, I am connected to the database with the following code. Can someone show or point me in the direction to get the single column database data onto the page, and into a variable array to check aginst a user input. Many thanks
<html>
<table border="0" CELLSPACING="0" CELLPADDING="10" align="center">
<?php
//db connect
$db = @mysql_connect("localhost", "user", "password");
if( ! ($db = @mysql_connect("localhost", "user", "password")) ) {
} else {
mysql_select_db("database",$db) or die("Select DB Error: ".mysql_error());
}
$result=mysql_query ("select * from table");
CAN SOMEONE FILL THIS SLOT? THANKS
?>
</table>
</html>
value inputted by a user, a form of log-in.
I think because no errors come up, I am connected to the database with the following code. Can someone show or point me in the direction to get the single column database data onto the page, and into a variable array to check aginst a user input. Many thanks
<html>
<table border="0" CELLSPACING="0" CELLPADDING="10" align="center">
<?php
//db connect
$db = @mysql_connect("localhost", "user", "password");
if( ! ($db = @mysql_connect("localhost", "user", "password")) ) {
} else {
mysql_select_db("database",$db) or die("Select DB Error: ".mysql_error());
}
$result=mysql_query ("select * from table");
CAN SOMEONE FILL THIS SLOT? THANKS
?>
</table>
</html>