<?php /****************/ /* This document is another disturbing creation brought to you by one sick animal who can't tell the difference and gets portalized. */ /****************/ $conn = mysql_connect('localhost', 'ic0nz', '') or die("Error: couldn't connect to mySQL."); $database = ( mysql_select_db('ic0nz_uk_db', $conn) ) ? print "DB Selected" : print "Couldn't select DB"; $sql = "SELECT * FROM myDetails"; $values = mysql_query($sql, $conn); if ( !$values ) { print "Can't select the wanted values from database."; } else { while ( $result = mysql_fetch_array($values) ) { print $result . " " . $result; print " is " . $result . " years-old."; } } mysql_close($database); /****************/ /* Well, I sure do hope you enjoyed this joyfull piece of useless code. I can really say I did since I'm practicing my skill with PHP coding. */ /****************/ ?> |