Hi,
I'am new to PHP but i'am currently doing the project in PHP only,i want to use function return values in another form,the return value is a value retrieved from MYSQL,just see my code
------------------------------------------------
form1//where i calling my function
selecttbl("user");
while($row=mysql_fetch_array($result))
{
for ($i=0; $i<mysql_num_fields($result); $i++)
echo $row[$i] . " ";
}
--------------------------------------------------
form2 where i have to return the retrieved values to form1
function selecttbl($tblname)
{
$result = mysql_query ("SELECT * FROM $tblname");
return $result;
}
----------------------------------------------------
just help me out