By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,729 Members | 1,559 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,729 IT Pros & Developers. It's quick & easy.

How do I get specific data from a table value ?

P: 2
I got a table named "language" were I store all the text from my website (http://www.ultimespace.net/menu/). So in a page I called "sort.php" I actually transfert all the values from the user selected language in this variable "$language_data". Now I have no problem getting values from specific colums when doing this :

echo $language_data['profile'];

No my problem is that I created a DropDownMenu generator using a table "menu" and so I want the name of the DropDownMenu to set with the language table. So I tried this :

$name = "copyrights";
$name = $language_data['"'.$name.'"'];

But it doesn't work I still get a SQL error :S

Can anyone help me with this ??
Jun 1 '10 #1
Share this Question
Share on Google+
2 Replies


Dormilich
Expert Mod 5K+
P: 8,639
itís $language_data[$name];. besides, what is the SQL error you get?
Jun 1 '10 #2

P: 2
@Dormilich
Well thanks Dormilich it was actually quite a dum mistake and so now my code works so thanks
Jun 1 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.