Hi all,
Is this the proper coding for a function?
If so, how do i call it later on in my script?
If it is not, am i able to write such a function this way?
Cheers,
camcim
Is this the proper coding for a function?
If so, how do i call it later on in my script?
If it is not, am i able to write such a function this way?
Code:
function find_title(){
$result = mysql_query("SELECT * FROM help WHERE help_id = '$cat_id'",$db);
while ($row = mysql_fetch_array($result)) {
$help_name = $row["help_name"];
echo "$help_name";
}
}
Cheers,
camcim