|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
PHP and Mysql
I have made a simple database with the following items
squad_id int sqname text website text picture blob I connect to the database and do this with it. PHP Code:
All this works great and I get it to display fine. But what I want to do is this. PHP Code:
But obviously this isn't correct. I only want to display like 3-4 squads but I need to shuffle the squads so they will all get displayed eventually instead of the first 3-4 squads. Can anyone help?
__________________
Thanks, Attila http://www.glorynaspiration.com http://www.abitofthings.com |
|
#2
|
|||
|
|||
|
Hi, Atilla!
Hi, Atilla!
You need get first 3-4 values, write to seperste array and shuffle them, after that - write back. Sincerely, Sergey Booyny AlarIT programmer http://www.AlarIT.com |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP and Mysql |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|