I've started learning php since not being able to fix a minor problem is annoying...
I started from the very basic, trying to pull the first image from the gallery module from it's database:
<?php
$result = mysql_query("SELECT title FROM mod_gallery_images WHERE image_id='4'", $database);
$myrow = mysql_fetch_array($result);
echo $myrow['title']
?>
The idea (eventually) is to pull the latest (anything) from a specific module, like recent images, recent news etc...
Eventhough it works fine on my local server (wamp) id doesn't work on WebsiteBaker database.
If anyone can help me understand how to fetch rows (in this example title)...
I've opened some of the modules like anynews and anytopics but they had too much code with too many variables so I got confused.
It seems to be like an easy task fetching some data from a certain table...