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) ;

  • ?>

    Comments

    Popular posts from this blog

    php format date string short month

    curl service example in php