Revision: 58431
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 14, 2012 02:13 by vdubplate
Initial Code
<?php $connect = mysql_connect("localhost:8889", "root", "root"); if(!$connect){ die("Failed to connect: " . mysql_error()); } if(!mysql_select_db("ourDatavase")){ die("Failed to select DB:" . mysql_error()); } $results = mysql_query("Select * FROM someData"); if(!$results){ die("Failed to run query:" . mysql_error()); } while($row = mysql_fetch_array($results)){ echo $row['name'] . "<br/>"; } ?>
Initial URL
Initial Description
$connect = mysql_connect("localhost:8889", "root", "root"); This means you need your host, user, pass
Initial Title
Pull from MySQL and display from table
Initial Tags
Initial Language
MySQL