Re: [PHP-DB] mysql table layout help needed

2001-12-21 Thread Chris Payne
Hi there, I format my results using the following code: ? // format results by row while ($row = mysql_fetch_array($sql_result)) { $title = $row[title]; $desc = $row[description]; $image = $row[image]; $url = index3.php?image=.($row[image]); ? a href=?=$url??=$PHPSESSID?img

[PHP-DB] mysql table layout help needed

2001-12-20 Thread Chris Payne
Hi there everyone, This is probably a really simple problem but for the life of me I can't figure out what i'm doing wrong. My problem is I am getting 20+ results from a DB to display without any problems with the images etc . but they display one ontop of another (Of course with spacing

Re: [PHP-DB] mysql table layout help needed

2001-12-20 Thread Bogdan Stancescu
A sample of what you were trying would have been helpful... If I understood your problem right, the solution is a piece of code like this: ? echo(table\ntr\n); while ($myrow=mysql_fetch_row($result)) { $colcount++; if ($colcount==$desiredcolcount) { $colcount=0; }