here is my stored procedure
begin
select
indexes.IndexID,
languages.LanguageID,
languages.LanguageName,
indexes.OrderID,
indexes.IndexName
FROM
indexes, languages
where indexes.LanguageID = languages.LanguageID and languages.LanguageID = Language
order by indexes.OrderID asc;
end
here is my php code
<?php
$Server = "127.0.0.1";
$Port = ":"."3306";
$DataBase = "abc";
$UserName = "def";
$PassWord = "blabla";
$Flags = "MYSQL_CLIENT_SSL";
$Connection = mysql_connect($Server . $Port, $UserName, $PassWord, $Flags, 65536);
if(!$Connection)
{
die("Could not connect to server : " . mysql_error());
}
else
{
mysql_select_db($DataBase,$Connection) or die("Could not connect to database");
}
$TM = mysql_query("Call SP_Index($Language)",$Connection);
while($TM_W = mysql_fetch_array($TM))
{
$i1++;
print $TM_W[4];
}
?>
so far everything works fine after calling second procedure.
.... doesnt show up anything... i got empty array
<?php
$Cat = mysql_query("Call SP_Category($Language)",$Connection);
$Cat_N = mysql_num_rows($Cat);
while($Cat_W = mysql_fetch_array($Cat))
{
$i3++;
print $Cat_W[4];
}
?>
i closed and opened the connection and freed the previous array etc etc..
still nothing.. anyone has idea??
thanx in advance.