Page 1 of 1

regarding handling sql triggers using php

Posted: Fri Apr 27, 2007 4:13 am
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:)

Posted: Fri Apr 27, 2007 4:27 am
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.