Quantcast
Channel: Adobe Community: Message List - Dreamweaver support forum
Viewing all articles
Browse latest Browse all 90058

Re: Question about databases in dreamweaver cs6

$
0
0

Hi bregent,

 

Let me clarify that i am correct to say that I can store the last id created during the current connection in the reservation page as session variable and retrieve it later at my next page which is the reservation confirmation.

 

May I know where do I place

<?php

$_SESSION['last_insert_id'] = mysql_insert_id();

?>

 

Is it before the <head> tag of the reservation page?

 

THen how do I retrive the last reservation id in the reservation confiration page?

 

Is it use <?php if(isset($_SESSION['last_insert_id'])) { echo $_SESSION['last_insert_id']; }?>

 

Thanks!


Viewing all articles
Browse latest Browse all 90058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>