wana
|
| Posted: 04/26/2002, 8:43 PM |
|
I have a question related to one of the article "Populating record listbox from a subwindow". May I know how could I do the same effect in PHP?
|
|
|
 |
Nicole
|
| Posted: 04/29/2002, 5:03 AM |
|
Hello,
the most code is created with JavaScript that it the same both languages (ASP and PHP). And here is a part of PHP code:
This PHP code in NewCategory page/"After Insert" event gets last inserted record id and passes record id and record name to the next script.
This data are to be used by javascript on the next page to add
a new item into listbox of parent window.
$pkSQL = "select max(category_id) as lastpk from categories";
$db->query($pkSQL);
$last = $db->f("lastpk");
$last_value = dLookUp("categories", "name", "category_id=". $last );
$sActionFileName .= "?last_pk=". $last . "&last_value=". $last_value;
|
|
|
 |
|