close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

MySQLi Insert Record - not storing ID in session?

Thread began 9/24/2017 7:39 pm by Allen | Last modified 9/25/2017 10:28 am by Allen | 842 views | 1 replies


MySQLi Insert Record - not storing ID in session?

MySQLi Insert Record - not storing ID in session? I read through the possible threads that you guys had listed; I will post the insert code and I did add the

<?php @session_start(); ?>
the the page I want to use the session and the binding =s tab did not show any session variables:

Here's my insert code and the session I set is in fact "scheduleID"

$InsertQuery = new WA_MySQLi_Query($nav);
$InsertQuery->Action = "insert";
$InsertQuery->Table = "schedule";
$InsertQuery->bindColumn("firstname", "s", "".((isset($_POST["firstname"]))?$_POST["firstname"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("lastname", "s", "".((isset($_POST["lastname"]))?$_POST["lastname"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("email", "s", "".((isset($_POST["email"]))?$_POST["email"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("address1", "s", "".((isset($_POST["address1"]))?$_POST["address1"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("address2", "s", "".((isset($_POST["address2"]))?$_POST["address2"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("city", "s", "".((isset($_POST["city"]))?$_POST["city"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("state", "s", "".((isset($_POST["state"]))?$_POST["state"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("zipcode", "s", "".((isset($_FILES["zip"]))?$_FILES["zip"][""]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("scheduledate", "s", "".((isset($_POST["scheduledate"]))?$_POST["scheduledate"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("scheduletype", "s", "".((isset($_POST["scheduletype"]))?$_POST["scheduletype"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("starttime", "s", "".((isset($_POST["starttime"]))?$_POST["starttime"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("startseconds", "s", "".((isset($_POST["startseconds"]))?$_POST["startseconds"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("endtime", "s", "".((isset($_POST["endtime"]))?$_POST["endtime"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("endseconds", "s", "".((isset($_POST["endseconds"]))?$_POST["endseconds"]:"") ."", "WA_DEFAULT");
$InsertQuery->bindColumn("planname", "s", "".((isset($_POST["planname"]))?$_POST["planname"]:"") ."", "WA_DEFAULT");
$InsertGoTo = "Basic Service Plan Summary - Pass.php";
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...