Thursday, September 27, 2012

PHP and MySQL Stored Procedure Exec Problem

  • <?php
  • $Server = "127.0.0.1";
  • $DataBase = "tedt";
  • $UserName = "root";
  • $PassWord = "124@#";
  • $Conn = mysqli_connect($host, $UserName, $PassWord);
  • if(!$Conn)
  • {
  • die("Could not connect to server : " . mysqli_error());
  • }
  • else
  • {
  • mysqli_select_db($Conn,$DataBase) or die("Could not connect to database");
  • }
  • ?>
  • <?php
  • print "Procedure #1";
  • $res= $Conn->query("CALL storepro;");
  • print_r($res) ;
  • ?>

    No comments:

    Post a Comment