ok heres my problem its only small and im prolly just missing something tiny
but here goes
ill try to give an example
$query = "SELECT * FROM planets";
$result = mysql_query($query) or die("Invalid query:" .mysql_error() );
$num_rows = MYSQL_NUM_ROWS($result);
$i=0;
while ($i < $num_rows) {
$id=mysql_result($result,$i,"id");
$owner=mysql_result($result,$i,"owner");
$res=mysql_result($result,$i,"res");
$pic=mysql_result($result,$i,"pic");
$fontsize="2";
$a1="cow";
$a2="pig";
//set this so when $a1 is retrived from the date base it will echo cow and $a2 will be pig
echo "<img src=\"http??????????????????????/$pic\">";
echo "<font face=$font size=$fontsize> Planet $id <br> Planet owner $owner <br> RES $res <br> </font> <br>";
++$i;
}
now every thing works except it does not change the $a1 to cow or $a2 to pig
and i dont just want cow & pig in my database, this is just an example of what im trying to do
is it posible ifso how?