Re: PHP DB Interaction with Javascript?
| From: | jeffrey_n_Dyke at Keane dot com | Date: | Thu, 26 Jun 2003 18:12:58 +0000 |
| Subject: | Re: PHP DB Interaction with Javascript? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-28922@lists.php.net to get a copy of this message | ||
may be missing the point. but....
when you're brining down the page decide what records the user can and
can't delete and write javascript function(s) using php for the correct
scenario, I'd write a single js function that you'd pass one(many) PHP
variable(s) into, when building the page, after you have the db info and
let the JS decide what the function does, based on the variable passed.
Making PHP decide ALL of the Business logic and just passing command type
paramaters to JS.
hope this helps and i'm not just totaly off base.
Jeff
"Aaron Wolski"
<aaronjw@martekbi To: <php-db@lists.php.net>
z.com> cc:
Subject: [PHP-DB] PHP DB Interaction with
Javascript?
06/26/2003 01:52
PM
Hi All,
Trying to get my head around something and want to know if it's possible
first.
Can PHP and Javascript interact to the point of PHP querying a DB to
find out what records are in use as a variable for another record and
then using JS to A) prevent the user from clicking a delete button; or
B) pop-up a notice telling the user they can delete that particular
record.
Hope that makes sense.. any ideas?
Thanks!
Aaron