hey guys,
Im doing a simple PHP script to a save the contents of 4 text boxes to a SQl DB. Im currently using wamp.
[php]<?php
$Name = $_Post(‘Name’);
$Age = $_Post(‘Age’);
$Sex = $_Post(‘Sex’);
$Address_1 = $_Post(‘Address_1’);
mysql_connect(“localhost”,“Users”,"") or die ('Error: ’ .mysql_error());
mysql_select_db(“User”);
$query =“INSERT INTO users(Name,Age,Sex,Address_1) VALUES(”.$Name."’, ‘".$Age."’,’".$Sex."’,’".$Address_1."’)";
mysql_query($query) or die (‘Error updating datadase’);
?>[/php]
My question is what do i replace the “localhost” with ?.. iv tried the address of the database but it dosent seen to work.
thanks
TT