RE: Warning: Missing argument 7 calling a function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thanks everybody who answered me,
the segment bellow is the code that gave me problems, the $app_name was the 7th parameter neccesary for me to call the GetCommandDeclaration function, the solution I had for a while was to declare the variable global. :(

As you can see , the rest of variables got their values from a simple mysql request.

Thanks in advance for any answer
Regards
Enediel


$app_name = "";

function GetCommandDeclaration($RPM, $var2, $RFactor, $minimum, $maximum, $sport){
  global $app_name;
 //code here
}

function Process(){
 global $db, $app_name;
 $query = get_query_declaration();

 $result = mysql_query($query, $db);
 $rowCount = mysql_num_rows($result);
 $myCounter = 0;

 while ($myCounter < $rowCount){
   mysql_data_seek($result, $myCounter);
   $row = mysql_fetch_assoc($result);

   $RPM = $row['RPM'];
   $var2 = $row['var2'];
   $RFactor = $row['RFactor'];
   $minimum = $row['minimum'];
   $maximum = $row['maximum'];
   $sport = $row['$sport'];

   $app_name = $row['app_name'];

$str_command_declaration = GetProcedureDeclaration($RPM, $var2, $RFactor, $minimum, $maximum, $sport);
   //code here
 }
}
Linux user 300141
Debian GNU/Linux

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux