Hi all happy holidays
I have recently came across functions and am wondering how i would grab the deatails from one funtion in order to have another run. Find this hard to explain but heres an example.
<?php
function funca()
{
$username="something";
$code="blah";
$database="blah";
}
function funcb()
{
$link=mysql_connect("localhost", "$username", "$code") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("$database");
$query = "SELECT blah blah";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);
mysql_close();
}
?>
this has me stumped am sure its easy if you know how lol
happy holidays
lee