Current location: Hot Scripts Forums » Programming Languages » PHP » Retrieve info from Database Query


Retrieve info from Database Query

Reply
  #1 (permalink)  
Old 01-21-04, 10:28 AM
tcooper tcooper is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Retrieve info from Database Query

I am trying to set up a database query that is User driven. Meaning that the user is determining what fields to include in the Query and what key they want to query off of. I think I have the basics down but when I print to the screen to see what the Query is returning I get this...

mysql result index 4

What does this mean and how can I get my info out of it and into an HTML Table?
Reply With Quote
  #2 (permalink)  
Old 01-21-04, 10:54 AM
sirjones sirjones is offline
New Member
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
do you know rtfm ?

have a look at the manual on php.net. You need to call a function like mysql_xxx in order to receive data from your db.

4 is the result identifier returned by mysql.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Variable on query from another database? dihan PHP 2 01-17-04 10:06 AM
Declared Functions skipper23 PHP 4 12-17-03 10:06 AM
index page not showing up skipper23 PHP 3 12-15-03 01:10 PM
retrieve data from database vioss PHP 4 08-03-03 04:51 AM


All times are GMT -5. The time now is 08:37 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.