This is a discussion on mySQL / PHP / selecting 1 random row within the Coding Help forums, part of the Webmaster Help category; I am looking for a nice way to do the following , in PHP / mySQL Select a random row ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| I am looking for a nice way to do the following , in PHP / mySQL
PHP Code:
__________________ my sites : irish poker / irish jobs / seo faq / advertise jobs free / green card / skiing Last edited by paul; 04-08-2008 at 03:53 PM.. |
| |||||
| you don't need the while as you are only selecting 1 row. PHP Code:
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Car Parts & Accessories Car Parts :. Cars Ireland Cars Ireland :. I Have 2 Find It Directory SEF Directory |
| |||||
| Cheers Louie ! The names of the columns .ie date1, date2, date3 will be accessible under $rs[date1]; ? BTW. this vbulletin seems to strip the $ bits. Last edited by paul; 04-08-2008 at 05:01 PM.. |
| |||||
| no it should be under "row['date1']" Yes I know. Michelle should do something about it... |
| |||||
| Oops that was I meant to put in. As for the error here I think it's something to do with that plugin for youTube. |
| Tags |
| mysql, php, random, row, selecting |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Commit a Random act of Kindness Now | 3rsales | Work / Life Balance | 15 | 08-01-2009 04:49 PM |
| My random Game of the day... | Forbairt | Off topic discussion | 0 | 19-02-2008 11:49 PM |
| My random ECard post of the day .. | Forbairt | Off topic discussion | 2 | 18-02-2008 09:52 AM |
| [PHP] How to create a random array? | babyboy808 | Coding Help | 7 | 29-12-2007 11:18 PM |
| Just a random question, | Joseph Grogan | Off topic discussion | 16 | 17-11-2007 09:28 PM |
| ||||
| | ![]() | |||
| | ||||