seany123 Posted June 17, 2009 Share Posted June 17, 2009 im trying to use these 2 pieces of code together but there is something wrong... this is the code i think there is something wrong.. <?php if($gang['banner'] == "yes") { echo "<tr>"; echo "<td>Banner:<br>[265x100]</td> "; echo "<td width=\'35%\'>"; echo "<input type=\'text\' name=\'bannerurl\' value='".$gang['bannerurl']."' maxlength=\'250\' size=\'94\'></td>"; echo "</tr>"; } ?> i think the error is on this line... echo "<input type=\'text\' name=\'bannerurl\' value='".$gang['bannerurl']."' maxlength=\'250\' size=\'94\'></td>"; this is the other piece of code. <?php if(($_POST['bannerurl'] != $gang['bannerurl']) && ($gang['banner'] == "yes")) { //UPDATE $GANG ANNOUNCEMENT. $query = $db->execute("update `gangs` set `bannerurl`=? where `id`=?", array($_POST['bannerurl'], $gang['id'])); } header("Location: ../your_gang/edit.php"); ?> but for some reason its not working, i cant see the error. Quote Link to comment Share on other sites More sharing options...
seany123 Posted June 17, 2009 Author Share Posted June 17, 2009 im still stuck with this and its not working... can anyone help? Quote Link to comment Share on other sites More sharing options...
seany123 Posted June 17, 2009 Author Share Posted June 17, 2009 ive tried changing that line to these different lines... echo "<input type=\'text\' name=\'bannerurl\' value=\'".$gang['bannerurl']."\' maxlength=\'250\' size=\'94\'></td>"; echo "<input type=\'text\' name=\'bannerurl\' value='\".$gang['bannerurl'].\"' maxlength=\'250\' size=\'94\'></td>"; echo "<input type=\'text\' name=\'bannerurl\' value=\'\".$gang['bannerurl'].\"\' maxlength=\'250\' size=\'94\'></td>"; none of these worked.. im running out of ideas. 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.