Hi,
I just have a question in general, is it possible to call a row from a table?
Example:
Lets say I have a table with 3 columns (id, title, content) and i have 10 rows.
Now, if I want to call the title in row 10, how would I do that? I know its possible to do the following:
$sql = "SELECT * FROM `table_name` WHERE `title` = 'some_value_here'";
$result = mysql_query($sql) or die(mysql_error());
while ($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
echo $row[title];
}
I dont want to do that though, because Im looking to call several rows at the same time, but I need a way to separate them. I was hoping for something like this (this is not working though):
$sql = "SELECT * FROM `table_name`";
$result = mysql_query($sql) or die(mysql_error());
while ($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
echo $row[10][title];
}
Is this possible? Thanks in advance
Niklas