did you set an out parameter on the procedure?
kkeith29
Nearly a Posting Virtuoso
1,353 posts since Jun 2007
Reputation Points: 235
Solved Threads: 195
i got a smiliar procedure to work on my server. i hope this helps.
here is the procedure:
CREATE PROCEDURE SP_Index (IN lang VARCHAR(255), OUT info BLOB)
BEGIN
SELECT
indexes.IndexID,
languages.LanguageID,
languages.LanguageName,
indexes.OrderID,
indexes.IndexName INTO info
FROM indexes,languages
WHERE indexes.LanguageID = languages.LanguageID AND languages.Language = lang
ORDER BY indexes.OrderID ASC;
END
Here is the php:
<?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, @data)", $Connection);
$TM2 = mysql_query('SELECT @data');
while ($TM_W = mysql_fetch_array($TM2)) {
//DO WHAT YOU WANT
}
kkeith29
Nearly a Posting Virtuoso
1,353 posts since Jun 2007
Reputation Points: 235
Solved Threads: 195
yes i did test it and it worked for me. did you set up your other procedure the same way? i have looked into procedures before but i have never really used them. i am going off basic knowledge and the mysql manual. i am just as lost as you are to why this is not working.
kkeith29
Nearly a Posting Virtuoso
1,353 posts since Jun 2007
Reputation Points: 235
Solved Threads: 195