# Guestlist doesnt work plz help

**URL:** <https://forum.kirupa.com/t/guestlist-doesnt-work-plz-help/71062>\
**Category:** Uncategorized\
**Created:** [November 20, 2004, 7:48am UTC](https://forum.kirupa.com/t/guestlist-doesnt-work-plz-help/71062 "2004-11-20T07:48:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![olm75](https://avatars.discourse-cdn.com/v4/letter/o/8c91f0/32.png) [@olm75](https://forum.kirupa.com/u/olm75)\
**Post date:** [November 20, 2004, 7:48am UTC](https://forum.kirupa.com/t/guestlist-doesnt-work-plz-help/71062/1 "2004-11-20T07:48:29Z")

</div>

here is the fla … and php script…

\<?  
/\*  
// Part One - Initiate a mySQL Database Connection  
// Database Connectivity Variables and other Variables  
$DBhost = “[nightspotz.com](http://nightspotz.com)”; // Database Server  
$DBuser = “nigolmvc\_nigolmv”; // Database User  
$DBpass = “\*\*\*\*\*\*\*\*”; // Database Pass  
$DBName = “nigolmvc\_nightspotz”; // Database Name  
$table = “guestbook”; // Database Table

// Connect to mySQL Server  
$DBConn = mysql\_connect($DBhost,$DBuser,$DBpass) or die("Error in GuestBook Application: " . mysql\_error());  
// Select mySQL Database  
mysql\_select\_db($DBName, $DBConn) or die("Error in GuestBook Application: " . mysql\_error());  
// Part Two - Choose what action to perform  
//Assign contents of form to variables  
$email = $\_POST[‘email’];  
mysql\_query ( "INSERT INTO contacts (email) VALUES (’$email’);  
echo mysql\_error();  
mysql\_close();  
?\>
