Actually WHERE 1 returns everything in the table.
It's like using if (1) {} in PHP, this if would always execute it's internal block because 1 is always TRUE.
i need to ask
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
and instead of using MYSQL_ASSOC like this:
you can use mysql_fetch_assoc() like so:
Mac
Oh and I really can't help myself, just have to say - FrontPage, urgh.
Code: Select all
while ($row = mysql_fetch_array($res,MYSQL_ASSOC)) {Code: Select all
while ($row = mysql_fetch_assoc($res)) {Oh and I really can't help myself, just have to say - FrontPage, urgh.