0

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" );
?>
1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by studioceasar
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.