After a disastrous attempt to move and run our mySQL server on the bathurst-tafe server we ended up with little time for actual learning - my appologies all.
We did get to write a very basic page to list the students enrolled in our Cert IV web course (courseID 2)...
<?php
$dbconnection = mysql_connect("localhost","root","");
mysql_select_db("fred");
$sql = 'SELECT * FROM `students` WHERE courseID = 2 LIMIT 0, 30 ';
$results = mysql_query($sql);
while ($row = mysql_fetch_array($results)) {
echo $row['name'].'<br />';
}
?>
Image: 'untitled'
www.flickr.com/photos/62674889@N00/46266892
No comments:
Post a Comment