Bu arada belirttiğiniz hatanın dönmesine neden olan bir bug varmış.
http://bugs.php.net/bug.php?id=42548

Sizin php sürümünüzde olmaması lazım ama gene de bir bakın.

05 Mayıs 2009 Salı 20:45 tarihinde Emre Kadıoğlu <[email protected]>yazdı:

> Merhaba Php ile mysql den bir stored procedure çalıştırmak istiyorum fakat
> şu hatayı alıyorum.
>
> PROCEDURE    test.testsp can't return a result set in the given context
>
> php versiyonum 5.2.6 debian lenny kullanıyorum.
> çalıştırmaya çalıştığım kodda aşağıda, stored procedure u silip sql querry
> olarak gönderdiğimde ise çalışıyor.
>
> <?php
>
>
> $dbhost  = "localhost";  $dbkullanici = "root"; $dbsifre  = "1";
> $dbadi = "test";
> $baglan = mysql_connect($dbhost,$dbkullanici,$dbsifre);
> if(!$baglan)
>  { ('MYSQL Bağlanamıyor..!!');}  else
>  { ('MYSQL bağlantısı kuruldu...'); }
> mysql_select_db($dbadi,$baglan) or die ("veri tabanına bağlanamıyor");
> ?>
> <?php
> $sor = mysql_query("call testsp") or die( mysql_error() );
> ?>
>
> _______________________________________________
> Linux-programlama mailing list
> [email protected]
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>


-- 
Anıl Özselgin
_______________________________________________
Linux-programlama mailing list
[email protected]
http://liste.linux.org.tr/mailman/listinfo/linux-programlama

Cevap