poyor7
11-01-2006, 06:27 AM
Hi..
My Problem:
I've one table that have only one field that is entry_num.
So i would like to display all data from this table...my code is quite simple:$db->query(sprintf("SELECT * FROM %s ",
"entry_num"));
$i=0;
while ($i <= $db->num_rows()){
$db->next_record();
$str .= urlencode(sprintf($db->f("entry_number")));
$i++;
}
My biggest problem when i want to display, the data show in one row 123456788 continously...so how to separate the data like 123 456 788...if it could be done ine table please just show what should i add in the coding
My Problem:
I've one table that have only one field that is entry_num.
So i would like to display all data from this table...my code is quite simple:$db->query(sprintf("SELECT * FROM %s ",
"entry_num"));
$i=0;
while ($i <= $db->num_rows()){
$db->next_record();
$str .= urlencode(sprintf($db->f("entry_number")));
$i++;
}
My biggest problem when i want to display, the data show in one row 123456788 continously...so how to separate the data like 123 456 788...if it could be done ine table please just show what should i add in the coding