Blah im rusty with my php (havent played with it in a yr+)
can someone help me with this code
My connection is there, i ommited it because didnt want to reveal the pw...
my issue is that it repeats the same entry on both columns, i want it so it lists entry 1 in column 1 and entry 2 in column 2 then goes on from there, can someone please help me? thanks in advance
can someone help me with this code
Code:
//select db
mysql_select_db("ouikikaz_felina") or die ("Unable to select database!");
$query1 = "SELECT * FROM pinkslipmail ORDER BY name";
$result1 = mysql_query($query1) or die ("Error in query: $query1. " . mysql_error());
$row1 = mysql_fetch_object($result1);
//start grabbing if statement
if(mysql_num_rows($result1) >0){
while($row1 = mysql_fetch_object($result1)){
?>
<table border=1 cellpadding=0 width=100%>
<tr>
<td width=50%>
<?
echo $row1->name."<BR>".$row1->address1."<BR>".$row1->city.",".$row1->state." ".$row1->zip."<BR>";
echo $row1->email."<BR>";
?>
</td>
<td width=50%>
<?
echo $row1->name."<BR>".$row1->address1."<BR>".$row1->city.",".$row1->state." ".$row1->zip."<BR>";
echo $row1->email."<BR>";
?>
</td>
</tr>
</table>
<?
}//end while
}//end if at least one row
//close mysql connection
mysql_close($connection1);
My connection is there, i ommited it because didnt want to reveal the pw...
my issue is that it repeats the same entry on both columns, i want it so it lists entry 1 in column 1 and entry 2 in column 2 then goes on from there, can someone please help me? thanks in advance