This topic is locked

Insert Button

5/11/2010 7:10:45 PM
PHPRunner General questions
C
comlan author

Now using PHPRunner 5.2 Build 5482.
One Issue....One Question....Thanks!
Issue:

On 5.1 I had setup an event on List page and added a button to html. I checked the value of @$_POST to determine if it should run my code or actually do a delete. It was working fine. Now it will not work.
I have removed my manual "button insert" and added a button using the new feature.
However, my code in server area does not seem to execute. I am trying to do a MYSQL lookup and then add a record.
My login hits the MySQL server...but nothing here ever gets there. What am I missing?
Here is my code:
global $dal;
$defaulttable=$dal->Table("customerdefaults");
$rs=$defaulttable->Query("customerid='".$keys["customerid"]."'","");

$data=db_fetch_array($rs);
$result["txt"] = $params["txt"]." world!";
This was added for testing also.
$email="joe@gmail.com";

$email_msg="test email message";
$subject="Sample subject";
runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $email_msg));

return true;
Question:

Also every hit of the MySQL server contains this: (what is the SHOW VARIABLES LIKE 'version' about??
Connect user@xxx.local on

150603 Init DB databasename

150603 Query SHOW VARIABLES LIKE 'version'