thanks!
it's just for a small thing i'm doing but I'll go on from here and try to make it better
Search found 3 matches
- Sun Sep 24, 2006 7:06 pm
- Forum: Databases
- Topic: Data from mysql in a 3 columns html table
- Replies: 4
- Views: 1184
- Sun Sep 24, 2006 6:27 pm
- Forum: Databases
- Topic: Data from mysql in a 3 columns html table
- Replies: 4
- Views: 1184
Re: Data from mysql in a 3 columns html table
Try this: $query = 'SELECT photo_code AS id FROM '. $selection; -- scorphus Yeah you're right I pasted the code from the wrong file :roll: Anyway the problem is still there because when the FOR prints 3 times the same image. Let's say the first result from the db is img001 then in the WHILE loop $r...
- Sun Sep 24, 2006 5:39 pm
- Forum: Databases
- Topic: Data from mysql in a 3 columns html table
- Replies: 4
- Views: 1184
Data from mysql in a 3 columns html table
Hi. I'm trying to write a script that fetchs image codes from a mysql database to display them into a 3 columns table. I got this so far: $selection = $_GET['scelta']; $query = 'SELECT photo_code FROM'. $selection .';'; $result = mysql_query($query); $rows_nb = mysql_num_rows($query); print('<table ...