- Joined
- Oct 9, 2008
- Messages
- 572
- Reaction score
- 14
Well, I got this from w3school, and I adjusted the username and password after my settings..
The thing is the page is empty, doesn't show anything.
(I started yesterday to learn PHP)
If you can help me out, it would be great =]
The thing is the page is empty, doesn't show anything.
(I started yesterday to learn PHP)
PHP:
<html>
<body>
<?php
$con = mysql_connect("localhost","root","root");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("mb7_ne", $con);
$result = mysql_query(SELECT * FROM mind7);
while($row = mysql_fetch_array($result))
{
echo $row['name'];
}
mysql_close($con);
?>
</body>
</html>
If you can help me out, it would be great =]

