/ Published in: MySQL

$connect = mysql_connect("localhost:8889", "root", "root");
This means you need your host, user, pass
This means you need your host, user, pass
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $connect = mysql_connect("localhost:8889", "root", "root"); die("Failed to connect: " . mysql_error()); } die("Failed to select DB:" . mysql_error()); } $results = mysql_query("Select * FROM someData"); die("Failed to run query:" . mysql_error()); } while($row = mysql_fetch_array($results)){ echo $row['name'] . "<br/>"; } ?>
Comments
