For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > October 2007 > Get the name of the column 2









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Get the name of the column 2
Jorge Reyes

2007-10-30, 7:02 pm

Wow this is very very useful believe me, at least for me, but i have
two more questions, i have the next code:

while($row = sybase_fetch_assoc($result)) {
while(current($row)) {
$key = key($row);
$data = current($row);
print ("<br>".$key."<br>".$data);
next($row);
}
}
and i have a raw data like

Col1 Col2 Col3
---------------------------------------------------------------------------------
24/10/2007 07:30:52.000 PM 0 CENTRO

then the result is:

Col1
Oct 24 2007 7:30PM
Col3
CENTRO

so, question number 1) how can i do to preserve the original date
format (dd/mm/yyyy hh:mm:ss AM/PM
2) and most important, who can i do because when Col2 is 0 it is not
showed in the result but i want to show it

thanks for advanced

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com