Your FREE membership includes:
|
| Shortcut links: |
|
|
Like this topic? Digg it...
|
![]() ![]() |
Oct 9 2008, 10:27 AM
Post
#1
|
|
![]() Grand Member 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 Here is the solution: http://php.net/manual/en/function.mysql-result.php -------------------- |
|
|
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
3 | thegrrl | 305 | 20th September 2006 - 10:42 AM Last post by: Admin |
|||
![]() |
13 | Nishi | 694 | 10th November 2008 - 04:56 PM Last post by: sam06 |
|||
![]() |
9 | mtorregiani | 625 | 28th November 2008 - 09:23 AM Last post by: danta |
|||
![]() |
9 | Nishi | 408 | 6th August 2008 - 05:22 PM Last post by: taytersalad |
|||
![]() |
20 | ZeckOwner | 1062 | 14th December 2007 - 08:34 AM Last post by: CrazeStar1074 |
|||
| Lo-Fi Version | Time is now: 8th January 2009 - 11:54 PM |