when i write strings inside of the following array my code works without any error.
$arr = array('news 1','news 2','news 3','news 4');
foreach ($arr as $new){
/* the rest of code works without problem */
}
What i want is that :
i have a simple mysql database with two fields "id" and "news".
I want to output the "news" coulumn results from sql and to input them as a variable instead of strings of array (line 1 at the above code) in a loop if possible.
Is this possible. If yes, pls tell me the way, i will be very happy and will solve my last 2 unanswered threads in this forum 🙂