Jump to content

Php Insert Into Mysql


Deanznet

Recommended Posts

 

It just comes up Error! Please fill all fileds!

 

Where did i go wrong.

<?php

 

 

require_once "./source/includes/data.php";

 

if(isset($_GET['keyword']) && isset($_GET['name'])){

$keyword= $_GET['keyword'];

$name= $_GET['name'];

$insertKeyword_sql = "UPDATE `mmh_file_storage` SET `keyword` = '{$keyword}' WHERE `filename` = '{$name}'";

$insertKeyword= mysql_query($insertKeyword_sql) or die(mysql_error());

echo $keyword;

} else {

echo 'Error! Please fill all fileds!';

 

}

?>

 

Link to comment
https://forums.phpfreaks.com/topic/96827-php-insert-into-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.