Question
| From: | Francois Allard | Date: | Thu, 30 Nov 2000 13:43:31 +0000 |
| Subject: | Question | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-4189@lists.php.net to get a copy of this message | ||
I'm having problem using function... Can someone can tell me what I'm doing
wrong
Thanks
<?php
function getLangue($db,$lang,$form)
{
$get = "select * from langue_tab where nom_form ='".$form."'";
$result = mssql_query($get,$db);
$myrow = mssql_fetch_array($result);
do
{
$a = $myrow["nom_champs"];
$tableau[$a] = $myrow["champs_fr"];
}
while ($myrow = mssql_fetch_array($result));
return $tableau;
}
?>
After I try getiing the $tableau informations and it don't work.
<?php
$langue = getlangue($db,"fr","getcust");
printf($langue["nom"]);
?>
Thanks again
François