I wonder why you want to store all the information in the array before printing the. If you dont need to store them in the array then you can simply do what ludesign.bg says above. Otherwise do it like this then:
$result = mysql_query("SELECT * FROM hamsa") or die('Sorry, no hamsa judaica was found');
While($row = mysql_fetch_array($result, MYSQL_ASSOC))
$hamsa[$row['Id']] = array('title'=>$row['HamsaTitle'],'url'=>$row['ImgUrl'],'thumburl'=>$row['ThmbUrl']);
foreach($hamsa as $id=>$info){
echo $info['title'] . "-" . $info['url'] . "<br />\
";
}
I have my reasons why I want to put it in an array, my page is designed in a specific way that does not allow me to do what ludesign is offering. And also, what he is offering won’t work since he just hardcoded the a, b, c in the first part.
First thanks for the help, but no need to be cynical, if you don’t want to help, just don’t, but when you help and give a cynical remark with it, it ruins the whole point of helping.
I did an online php course, and I read lots of tutorials as I said in my first post, but couldn’t figure out how to do what I need. I thought that’s why we have forums, so we can ask questions when we get stuck. Thanks for the link.