Heya.. Im using this code to fetch several results from my database.
The database cells does contain info, no weird symbols, regular utf-8 encoding.
regular mysql_result() works, but I'd like to fetch a larger amount of data at once, and I'm guessing this is a valid method.
Any hints regarding what would be wrong?
The $id variable does print out, some other do too, like article_type, but not article_name.
The spelling is correct, so I'm TOTALLY lost here.
I've used this method before and it has always worked.
The database cells does contain info, no weird symbols, regular utf-8 encoding.
regular mysql_result() works, but I'd like to fetch a larger amount of data at once, and I'm guessing this is a valid method.
Code:
$chapterdetails = mysql_query("SELECT * FROM Chapters WHERE id='".$getID."'");
while($row = mysql_fetch_array($chapterdetails))
{
$id = $row['id'];
$article_name = $row['article_name'];
$article_cont = $row['article_content'];
$article_type = $row['article_type'];
}
The $id variable does print out, some other do too, like article_type, but not article_name.
The spelling is correct, so I'm TOTALLY lost here.
I've used this method before and it has always worked.
Comment