This topic is locked
[SOLVED]

 Updating a table column

8/25/2010 10:55:07 PM
PHPRunner General questions
P
procheck author

This question has been discussed many times but I'm missing something. I'm trying to update the LastName field

of a table with a value in BeforeShow. I've been able to use $xt>assign to change the $message variable. I thought

that I could also change a table this way too.
example:
$_SESSION["$lastnname"] = "Smith";

$xt->assign("LastName", $lastname);
Should I be using the SQL UPDATE instead?
Thanks
Al

A
ann 8/26/2010

Al,
$xt->assign operation work only to set up displayed value on the page (analog of the View as settings dialog).

To change the exact field value in the database use query.