Jump to content

Store Query Values as Variables


Call-911

Recommended Posts

Hello All,

 

I have the following Database Columns: Name, Phone, Email, Keyword

 

What I want to do is store all values in the database based off of the "keyword", so if Row 1 is "John Doe, 123-456-7890, johndoe@yahoo.com, President", then I want to store the following variables:

 

$Presidentname =  John Doe

$Presidentphone = 123-456-7890

$Presidentemail = johndoe@yahoo.com

 

 

It seems like it should be easy enough to query a database and assign these variables easily, but I am somehow missing it....

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/232227-store-query-values-as-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.