HI All,
I'm not receiving an error on this, but no records are being added to my table. Please see code excerpt below:
Any help would be much appreciated.
Thx!
I'm not receiving an error on this, but no records are being added to my table. Please see code excerpt below:
Code:
<?php
$link = mysql_connect('localhost', 'root', '');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_select_db("dbTourDates");
switch ($TransAction){
case "Save":
if ($lngNew == 1){
$strSQL = "INSERT INTO tblArtists (ArtistName, Website) VALUES (" . $_POST['txtArtistName'] . ", " . $_POST['txtWebsite'] . ")";
}
mysql_query($strSQL);
if (mysql_affected_rows() > 0){
echo "Successs!";
}
break;
}
?>
Any help would be much appreciated.
Thx!