Yet now I'm trying to sort this out and I've started a project which I'm intent on using functions for most of it.
Anyway, I'm basically having problems getting variables defined in functions out of them (I'm not even sure if you can?).
So say for example I have a MySQL query in a function such as this:
Code: Select all
function list_shows($showid) {
$showquery = mysql_query("SELECT * FROM shows WHERE showid = '$showid'") or die(mysql_error());
$showresult = mysql_fetch_array($showquery);
}Code: Select all
$showresult[showid]
$showresult[name]
$showresult[status]Thanks for your help.