Hi All,
I'm having a problem connecting to my database because of a syntax error on the line: $result= mysql_query($sql,$link) or die(mysql_error()); Could you please let me know what the conflict and solution is?. I included the script below.

Thanks in advance.
C-

mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.');
mysql_select_db($dbname);

  $b1 = $_REQUEST['b1'];
  $b2 = $_REQUEST['b2'];
  $b3 = $_REQUEST['b3'];
  $b4 = $_REQUEST['b4'];
  $b5 = $_REQUEST['b5'];
  $b6 = $_REQUEST['b6'];
  $b7 = $_REQUEST['b7'];
  $b8 = $_REQUEST['b8']; 
  $b9 = $_REQUEST['b9'];
  $b10 = $_REQUEST['b10'];
  $b11 = $_REQUEST['b11'];
  $b12 = $_REQUEST['b12'];
  $b13 = $_REQUEST['b13'];
  $b14 = $_REQUEST['b14'];
  $b15 = $_REQUEST['b15'];

$sql = "INSERT INTO boots values ('$b1', '$b2', '$b3', '$b4', '$b5', '$b6', '$b7', '$b8', '$b9', '$b10', '$b11', '$b12', '$b13', '$b14', '$b15', )";

$result= mysql_query($sql,$link) or die(mysql_error());header( "Location: http://www.studiocband.com" );
?>

Problem solved.
Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.