y doesnt this work

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   y doesnt this work
olm75
CZ Newbie
olm75 has been a member for over 19 year's 19 Year Member
Status: Offline
Joined: Dec 05, 2004
0.00 posts per day
Posts: 10
Points: 621
   
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", "xxxxxxxxx", "xxxxxxxx");
mysql_select_db ("xxxxxxxx", $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')");

?>



Back to top Reply with quote
#2   re: y doesnt this work
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
You need to be very careful about what you post in forums. Your post above includes your database username and password. I edited it out, but you might want to change your username and password for your database now that you have compromised the security of your database.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum