Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mysql_connect(localhost,$username,$password);
- @mysql_select_db($database) or die( "Unable to select database");
- $query="SELECT * FROM godeltas_dbinfo.testphp";
- $result=mysql_query($query);
- $num=mysql_numrows($result);
- mysql_close();
- while($row = mysql_fetch_array($result)){
- echo $row['first']. " - ". $row['last'];
- echo "<br />";
- }
Add Comment
Please, Sign In to add comment