c_shelswell Posted April 10, 2007 Share Posted April 10, 2007 Most of the question's in the title . What i'm basically looking to do is give a user delete privileges for one query only. This is just so i can keep my database clean. Am i best just writing a DB logon script for that one query only and allowing that user to delete the records or is there a way PHP can grant delete for one query? Cheers Link to comment https://forums.phpfreaks.com/topic/46397-give-user-mysql-delete-privilege-for-one-query-via-php-is-this-possible/ Share on other sites More sharing options...
hackerkts Posted April 10, 2007 Share Posted April 10, 2007 I think more informations would be better, you can try to check their usergroup level and allow them to delete the query. Link to comment https://forums.phpfreaks.com/topic/46397-give-user-mysql-delete-privilege-for-one-query-via-php-is-this-possible/#findComment-225636 Share on other sites More sharing options...
c_shelswell Posted April 10, 2007 Author Share Posted April 10, 2007 The problem is every user must be able to delete. It's part of an online download centre. When a user reaches a certain point in the sale the code adds their purchases to a "purchases_pending" table they are then taken away to paypal. Paypal should then send back a confirmation of payment at which point the code adds their purchase to a "confirmed_purchases" table and to tidy up deletes the one in "purchases_pending" It's this action that i need to solve. Cheers Link to comment https://forums.phpfreaks.com/topic/46397-give-user-mysql-delete-privilege-for-one-query-via-php-is-this-possible/#findComment-225640 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.