IPB
Your FREE membership includes:
  • A friendly community where you can come to chat
  • Receive completely FREE quality web hosting!
  • Get reviews and suggestions for your websites!
  • Take part in competitions where you can win prizes from cash, vouchers, or win special unadvertised hosting

Welcome Guest ( Log In | Register )


Shortcut links:
Like this topic? Digg it... Digg this topic · Save to del.icio.us · Slashdot It · Post to Technorati · Post to Furl · Submit to Reddit · Share on Facebook · Fark It · Googlize This Post · Add to ma.gnolia · Tag to Wink · Add to MyWeb · Add to Netscape
 
Reply to this topicStart new topic
> The best way to echo from mysql ?
ntw
post Oct 9 2008, 10:27 AM
Post #1


Grand Member
Group Icon

Group: Members
Posts: 94
Joined: 23-September 07
Member No.: 1073



Hmm,
Until now I've used while xx mysql_fetch....
Now started to wonder, if I need only 1 result from a specific row and column, how do I do it ?

An example:

MySQL: id | name | pills

How do i get pills where ID is X and name is John. I need only that one field. Should I just write another while mysql fetch ?



Edit: Ohh my god I was so lame. I thought I'll never find it in php.net, but I did happy.gif
Here is the solution: http://php.net/manual/en/function.mysql-result.php


--------------------

Everybody want's money.

The info page is 10% complete. Use the link till then.

And some people want free iPods or Xboxes...

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are browsing this forum (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts  
3 thegrrl 305 20th September 2006 - 10:42 AM
Last post by: Admin
No New Posts  
13 Nishi 694 10th November 2008 - 04:56 PM
Last post by: sam06
No New Posts  
9 mtorregiani 625 28th November 2008 - 09:23 AM
Last post by: danta
No New Posts  
9 Nishi 408 6th August 2008 - 05:22 PM
Last post by: taytersalad
No new  
20 ZeckOwner 1062 14th December 2007 - 08:34 AM
Last post by: CrazeStar1074



© GrandForums.com