Deanznet Posted March 19, 2008 Share Posted March 19, 2008 Cant Figure Out Why This wont work. I do http://www.website.net/multihost/insert.php?keyword=cool,kid,red,blue&name=i8d23tyrimfq9ou4135g.jpg 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 More sharing options...
cooldude832 Posted March 19, 2008 Share Posted March 19, 2008 well then $_GET['keyword'] must not be set and $_get['name'] is also not set with your logic Link to comment https://forums.phpfreaks.com/topic/96827-php-insert-into-mysql/#findComment-495515 Share on other sites More sharing options...
Deanznet Posted March 19, 2008 Author Share Posted March 19, 2008 Well How Do You Set Them? ??? Link to comment https://forums.phpfreaks.com/topic/96827-php-insert-into-mysql/#findComment-495533 Share on other sites More sharing options...
Deanznet Posted March 19, 2008 Author Share Posted March 19, 2008 Oh forgot to add, im using ajax to submit the form. But http://www.website.net/multihost/insert.php?keyword=cool,kid,red,blue&name=i8d23tyrimfq9ou4135g.jpg Should that not work with my php code? Link to comment https://forums.phpfreaks.com/topic/96827-php-insert-into-mysql/#findComment-495561 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.