Hi all,
Please could you help me out here...I have created a database with a list of people and emails. However when I use php to display the list I do not get the list. Why???
Here is my code...It connects ok to the db.
mysql_select_db('cartest');
$query = "select * from candidate";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
echo "<font size = 4>Select people to contact</font><pre></pre>";
for ($i=0; $i<$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo $row['name'].'
<input type="checkbox" name="rep[]" value='.$row['email'].' title="Select email recepient">';
}