# Y doesnt this work

**URL:** <https://forum.kirupa.com/t/y-doesnt-this-work/72514>\
**Category:** Uncategorized\
**Created:** [December 6, 2004, 4:59pm UTC](https://forum.kirupa.com/t/y-doesnt-this-work/72514 "2004-12-06T16:59:53Z")\
**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:** [December 6, 2004, 4:59pm UTC](https://forum.kirupa.com/t/y-doesnt-this-work/72514/1 "2004-12-06T16:59:53Z")

</div>

trying to send to mysql database …

\<?php  
$venuename = $\_POST[‘venue name’];  
$email = $\_POST[‘email’];  
$website = $\_POST[‘website’];  
$phonenumber = $\_POST[‘phone number’];  
$areacode = $\_POST[‘area code’];  
$address = $\_POST[‘address’];  
$city = $\_POST[‘city’];  
$state = $\_POST[‘state’];  
$zipCode = $\_POST[‘zipcode’];  
$contact = $\_POST[‘contact’];  
$inputclubtype = $\_POST[‘club type’];  
$inputmusictype = $\_POST[‘music type’];  
$inputcrowd = $\_POST[‘crowd’];  
$inputdresscode = $\_POST[‘dress code’];  
$comment = $\_POST[‘comment’];

$conn = mysql\_connect(“localhost”, “nigolmvc\_nigolmv”, “babystuff”);  
mysql\_select\_db (“nigolmvc\_nightspotz”, $conn);  
$result = mysql\_query("INSERT INTO venues (  
venue name,  
email,  
website,  
phone number,  
area code,  
address,  
city,  
state,  
zipcode,  
contact,  
club type,  
music type,  
crowd,  
dress code,  
comment)

VALUES(  
‘$venuename’,  
‘$email’,  
‘$website’,  
‘$phonenumber’,  
‘$areacode’,  
‘$address’,  
‘$city’,  
‘$state’,  
‘$zipCode’,  
‘$contact’,  
‘$inputclubtype’,  
‘$inputmusictype’,  
‘$inputcrowd’,  
‘$inputdresscode’,  
‘$comment’)");

?\>
