Display content from a specific cell
Posted: Fri May 29, 2009 2:59 pm
Hey guys,
I dont seem to understand how can I display the content of a specific cell in one of my table...
My table setup is as follow:

There are only one element in each column ( + column title )
I know the name of the column and I want to retrieve the content of the cell under it. So let's say I call name 4, I want to have the content of the cell under it.
I have no problem connecting to the database.
My table name is: storage_date
I am using this as first but how can I display the content of the cell, or store it into a variable.
Thanks alot! 
I dont seem to understand how can I display the content of a specific cell in one of my table...
My table setup is as follow:

There are only one element in each column ( + column title )
I know the name of the column and I want to retrieve the content of the cell under it. So let's say I call name 4, I want to have the content of the cell under it.
I have no problem connecting to the database.
My table name is: storage_date
I am using this as first but how can I display the content of the cell, or store it into a variable.
Code: Select all
$result = mysql_query("SELECT name1 from storage_data")or die(mysql_error());