Login   Register  
PHP Classes
elePHPant
Icontem

Grabbing infor from a single field(column)

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHPXBase  >  All threads  >  Grabbing infor from a single field(column)  >  (Un) Subscribe thread alerts  
Subject:Grabbing infor from a single field(column)
Summary:How to get individual fields.
Messages:2
Author:Schtolteheim Reinbach III
Date:2013-03-06 03:30:08
Update:2013-03-06 13:32:58
 

  1. Grabbing infor from a single field(column)   Reply  
Picture of Schtolteheim Reinbach III
Schtolteheim Reinbach III
2013-03-06 03:30:09
Hi everyone! First let me say "Thank you." PHPXbase is great so far. I just have one question.

I'm trying to, rather than in the API test's example, which simply dumps ALL the fields(columns) to the screen with their respective field(column) titles, find a way to utilize each column individually.


For instance if I have columns NAME, EMAIL, and BLOODTYPE
How can I do a:

foreach($r ???????????)

That will say something like:

- Your Name is [Content of NAME] and your E-mail is [Content of EMAIL]

- Your blood type is [Content of BLOODTYPE]

I'm having trouble figuring out how to split it up.

Thanks!

  2. Re: Grabbing infor from a single field(column)   Reply  
Picture of Schtolteheim Reinbach III
Schtolteheim Reinbach III
2013-03-06 13:32:58 - In reply to message 1 from Schtolteheim Reinbach III
Wait... nevermind - it puts it in a regular array with the field names as the keys (all in caps it seems).

Awesome! Thanks!