Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

MySQL stored queries/proc with PHP

  • 23-08-2006 8: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,414 ✭✭✭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,466 ✭✭✭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