close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

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 Ray Borduin | 1247 views | 1 replies |

Allen

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");
$InsertQuery->saveInSession("scheduleID");
$InsertQuery->execute();
$InsertGoTo = "Basic Service Plan Summary - Pass.php";
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";
$InsertQuery->redirect($InsertGoTo);

Sign in to reply to this post

Ray BorduinWebAssist

Click the plus button in the bindings window, go to the session variable option and add the session variable manually. It is probably set properly on the page and it just isn't registered with Dreamweaver so it isn't showing in the bindings. I'll look into getting that addressed in the next update.

Sign in to reply to this post
Did this help? Tips are appreciated...

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

Content

rating

Layout

rating

Ease of use

rating

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...