Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 95,475 PHP Programmers for FREE!. Ask your question and get quick answers from Dream.In.Code experts. There are 952 online right now! We're the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a PHP Expert

Register to Make This Box Go Away!


How to use sql statements within PHP

 
Reply to this topicStart new topic

How to use sql statements within PHP

ishtiyaq
post 8 May, 2008 - 03:33 AM
Post #1


New D.I.C Head

*
Joined: 8 May, 2008
Posts: 1

need a sql query to display records randomly fetched from database but the record should not repeat again when a user clicks on next record!

User is offlineProfile CardPM

Go to the top of the page


no2pencil
post 8 May, 2008 - 04:43 AM
Post #2


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 4,044



Thanked 15 times

Dream Kudos: 2225

Expert In: Goofing Off

My Contributions


Without seeing your current mysql statement, it's hard to determine where your error is. As well, names of columns & tables are necessary for building a mysql statement.

The following links Php.net or W3 schools offer good tutorials for mysql.


--------------------
IPB Image
If this is all a dream then don't bother waking me.
User is offlineProfile CardPM

Go to the top of the page

spearfish
post 8 May, 2008 - 08:48 AM
Post #3


Monkey in Training

Group Icon
Joined: 10 Mar, 2008
Posts: 702



Dream Kudos: 200
My Contributions


code.gif


--------------------
Like Sports? How about gambling? Bet with play money but cash out for real Washingtons!

IPB Image ST, -4/26/08

Freedom is never free: If you don't want to stand behind the troops; feel free to stand in front of them
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 7/5/08 03:39AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month
-->