REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
PHP Forum
You are currently viewing our PHP Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
Random mysql command?
Link Back
Thread Tools
Search this Thread
Random mysql command?
08-25-2004, 02:17 PM
#
1
(
permalink
)
Random mysql command?
scottsgameroom
Super Talker
Posts: 101
Trades:
0
Talkupation:
Random command?
is there such thing so i can set it so that evry time the page loads up it loads a diferent image and text. Basically i need it to display a snippet from a review and the image to go with it.
is it possible?
Register
now for full access!
08-25-2004, 02:21 PM
#
2
(
permalink
)
Dark-Skys99
Unknown.
Posts: 1,693
Trades:
0
Talkupation:
You can do it using order by rand() and limit the amount of results to 1
$sql = "SELECT * FROM tablename ORDER BY RAND() LIMIT 1";
-James
08-25-2004, 02:22 PM
#
3
(
permalink
)
scottsgameroom
Super Talker
Posts: 101
Trades:
0
Talkupation:
sweet! i'll test it out!
« Reply to
Random mysql command?
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
Random mysql command?
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.44230
seconds with
12
queries