regarding handling sql triggers using php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ashu.khetan
Forum Newbie
Posts: 6
Joined: Tue Apr 17, 2007 1:16 am

regarding handling sql triggers using php

Post by ashu.khetan »

if suppose we have written a statement like "print 'ashu'" in a update trigger,then whenever that particular table is updated the trigger is called and "ashu" is printed on screen.i want to know how to write a php code so that this value"ashu" get passed to a php page and then we can display it on our browser.n plz dont tell me why you are usin print statement in your trigger.its totally allowed.and the question is regarding how to do it and not regarding why to do it.plz help me out..any help is very much appreciated.thanks in advance:)
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

1. Don't use AOL speak here. Things like "u" instead of "you" are incredibly annoying and we don't like it.

2. As far as I know what you're attempting to do is impossible. PHP can't capture the printed output of a query, only values passed back to it as a result set.
Post Reply