Jump to content

Misomurai

New Members
  • Posts

    1
  • Joined

  • Last visited

Misomurai's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey, can someone tell me what's wrong with this code? My browser says that line 3 is wrong, but I'm not sure what's wrong about it. Thanks -------------------------------------------------------------------------------------------- <?php if ($_POST['submit1'] != ''){ $link = mysql_connect("$dbname", "$_library_lab", "$password"); if (!$link == FALSE) { $database = mysql_select_db('bookmark'); if ($database==TRUE){ $name = $_POST['name']; $book = $_POST['book']; $bookmark = $_POST['bookmark']; $shiori = $_POST['shiori']; $sql="insert into bookmark (name, book, bookmark, shiori) values('{$name}','{$book}','{$bookmark}','{$shiori}')"; $result = mysql_query($sql); if ($result == TRUE){ }else{ echo('DB insert Failure!'); } } mysql_close($link); } } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.