php - How to make stored procedure? -


i made function:

function getall($table)  {     $q = "select * $table";       $result = mysql_query($q) or die(mysql_error());      return $result; } 

my question is: how can make stored procedure function in php?

you can use database extensions if mean create, drop or call stored procedure in php. [http://php.net/manual/en/mysqli.quickstart.stored-procedures.php][1]


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -