i want Y (year format) printed on my php script (looping), i already tried
it but i got same Year format (ex 1978) in all row in my table

my loop script  is:


$query  = ("select * from table");
$result = mysql_query($query);
while ($row = mysql_fetch_row($result))
$number =  mysql_numrows($result);


$i = 0;
while ($i < $number):
$date  = mysql_result($result, $i,$date");

if ($i%2 == 0){

echo "<b>$date</b>";
if ($i%2 == 0){
echo "$date";
  }
$i++;
ENDWHILE;






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to