473,386 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How do I get specific data from a table value ?

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
2 2041
Dormilich
8,658 Expert Mod 8TB
it’s $language_data[$name];. besides, what is the SQL error you get?
Jun 1 '10 #2
@Dormilich
Well thanks Dormilich it was actually quite a dum mistake and so now my code works so thanks
Jun 1 '10 #3

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

Similar topics

1
by: Kevin Myers | last post by:
Hello, I'm an experienced application developer in some languages (including various SQL dialects), but have very little experience with MS Access or VBA, and am having trouble figuring out how...
2
by: .Net Sports | last post by:
I have a data grid that takes data from a data table, and in visualstudio.net, I cannot find the error in the debugger at why I am not able to see my datagrid when querying data for a specific date...
8
by: Woody Splawn | last post by:
Lets say I have a winform that is populated with a dataset. The dataset and data table may have several rows in it. Lets say I am looking at the winform and I want to assign a value to a certain...
1
by: DH | last post by:
I have an untyped dataset with a table. I am trying to programmatically add a row to this table. This was working in VS 2003 / .net 1.1 I am receiving an error "Object reference not set to an...
3
by: rodchar | last post by:
hey all, i have a gridView with editing available. when a user clicks the update link for a row, how do i pass the entire data table as a parameter to my business layer? thanks, rodchar
2
blhuff
by: blhuff | last post by:
I would like to know if there is some code and/or function that will give me a way of retrieving a certain text string from a data table that I have established in MS Access. The text in question is...
0
by: blitzenn | last post by:
I am attempting to use triggers to add some simple auditing to my database structure (SQL Server 2005). I am running an ASP with this so I have many databases (dozens) with identical structure. My...
3
by: printline | last post by:
Hello All I need a little help with a phph script to display some specific data from a mysql table. I have a mysql table with 4 columns and 10 rows. I want to display fx. data from row 4, 6, 8...
3
by: Steed | last post by:
Evening all, I'm very new to VBA and am struggling badly with this one. I'll explain what I need to do as the title is a little unclear! I'm making an insurance calculator for classic cars, and...
3
by: Serenityquinn15 | last post by:
Hi! I was wondering if it is possible to get the specific data coming from SQL Server 2000 and append it to my MS Access Table through VB Code???? If it so, please advise me on how i can do this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.