after i have run my query on a mysql db how can i set the result to equal a variable that i will use later on in the page.
i have set the query up like this
<?php
$rand = rand (0, 100);
$query = "SELECT broad1 FROM images_broad";
$result=mysql_query($query);
while($row=mysql_fetch_array($result, MYSQL_ASSOC)){
$send_mail =$row['broad1'];
}
?>
i dont think the last line is correct though. could anyone please help.