I have a script that I finally got to work that grabs a few fields from a table. I can't seem to get it to grab all the data though as it stops after the first entry in the table. Should it continue, or is there a 'loop' I have to use? I'm still new to this, so take it easy.
<?php
$dbhost = "localhost";
$dbuser = "root";
$dbpassword = "";
$dbname = "clientinfo";
$db = mysql_connect ($dbhost, $dbuser, $dbpassword);
mysql_select_db("$dbname") or die("Could not select database");
$result = mysql_query("SELECT firstname, lastname, email FROM users",$db);
if($result){
$row = mysql_fetch_row($result);
$firstname = $row['0'];
$lastname = $row['1'];
$email = $row['2'];
}
echo "<h3>TXO Unlimited Client Information</h3><table cellspacing=2 border=2 cellpadding=3>
<tr><td><b>First Name</b></td>
<td><b>Last Name</b></td>
<td><b>E-Mail Address</b></td>
</tr>";
echo "<tr height=30>
<td>$firstname</td>
<td>$lastname</td>
<td>$email</td>
</tr>";
echo "</table>";
?>
Also, is there a way to add checkboxes by each one, that will pass the email to an email form separated by ; ?
TIA