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!'; } ?> Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Deanznet Posted March 19, 2008 Author Share Posted March 19, 2008 Well How Do You Set Them? ??? Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.