| | |
how to call Stored Procedure in mysql by php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
hello friends,
I am working with stored procedure in my sql.I m traying to call SP in php but i fail to do that.
I have already configer mysqli.dll file in php. but still i m gating error :Fatal error: Call to undefined function mysqli_connect() in C:\Employees\Ajay\SP\test.php on line 4
can any one tell me why i m gating this error.
I am working with stored procedure in my sql.I m traying to call SP in php but i fail to do that.
I have already configer mysqli.dll file in php. but still i m gating error :Fatal error: Call to undefined function mysqli_connect() in C:\Employees\Ajay\SP\test.php on line 4
can any one tell me why i m gating this error.
Last edited by ajay_tabbu; Oct 15th, 2007 at 7:55 am.
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
ok I m sanding code also so you can reffer that cone also and can tell me where i m wrong
In above code p3() is my S.P. to which I want to call.
PHP Syntax (Toggle Plain Text)
<?php ini_set("display_errors", 1); /* Connect to a MySQL server */ $link = mysqli_connect('192.168.1.4','ajay','the@123'); if (!$link) { printf("Can't connect to MySQL Server. Errorcode: %s\n", mysqli_connect_error()); exit; } /* Send a query to the server */ if ($result = mysqli_query($link, "p3('crm')")) { /* Fetch the results of the query */ while( $row = mysqli_fetch_array($result) ){ echo ($row[0]. "--------- SR. " . $row[1] . "<br>"); } /* Destroy the result set and free the memory used for it */ mysqli_free_result($result); } /* Close the connection */ mysqli_close($link); ?>
In above code p3() is my S.P. to which I want to call.
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
i m oblised for all member of daniweb.as helping me every time.this is best site for those who want to learn themself.
![]() |
Similar Threads
- PHP MySQL 5.0 stored procedure (PHP)
- Calling and executing stored Procedure (C)
- using stored procedure in C++ (C++)
- How to connect a SQL stored procedure to a windows application? (VB.NET)
- Stored procedure call with ADO (C)
- MySQL and PHP hosting (Linux Servers and Apache)
Other Threads in the PHP Forum
- Previous Thread: htaccess
- Next Thread: limit text area words
| Thread Tools | Search this Thread |
Tag cloud for PHP
# .htaccess 5.2.10 access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display dissertation download dynamic echo email error file files folder form forms function functions google href htaccess html image images include insert integration ip java javascript joomla ldap legislation limit link login loop mail menu mlm mod_rewrite multiple mysql mysqlquery oop open parse paypal pdf persist php problem query radio random recursion regex remote script search server sessions sms soap sockets source space sql structure syntax system table tutorial update upload url validation validator variable video web xml youtube






