Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

MySQL stored queries/proc with PHP

  • 23-08-2006 09:07PM
    #1
    Closed Accounts Posts: 8,478 ✭✭✭


    So now we have MySQL 5 and everyone is singing it's praises regarding the triggers/stored procedures etc etc.

    Yet I'm having alot of trouble finding practical examples of using this new funtionality through PHP.

    Can anyone point me in the right direction?


Comments

  • Registered Users, Registered Users 2 Posts: 1,028 ✭✭✭Hellm0


    Seeing as I'm no expert on the mysql/php mixture, I cant really be of much help but the way I allways accessed the db from php was using the pear api's, I'de check them and see if they've done anything to facilitate this new feature.


  • Registered Users, Registered Users 2 Posts: 6,384 ✭✭✭kdouglas


    havent used them at all yet, but at a guess, id say you could write a php script that you could input your stored procedure into, and this would then execute it.

    then after that, just call the procedure as you would any normal mysql query?


  • Registered Users, Registered Users 2 Posts: 1,454 ✭✭✭Smoggy


    Again not having used MYSQL for a long time Im not going to be a lot of help, but I do seem to remember that there was a comprehensive downloadable manual for it.


  • Closed Accounts Posts: 8,478 ✭✭✭GoneShootin


    There exists a great MySQL document for creating and using the stored stuff, but only from within MySQL. It doesn't go into how to use them from PHP, or any other language.

    Code examples is what I'm after....


Advertisement