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. Link to comment https://forums.phpfreaks.com/topic/162619-solved-more-help-please/ 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? Link to comment https://forums.phpfreaks.com/topic/162619-solved-more-help-please/#findComment-858288 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. Link to comment https://forums.phpfreaks.com/topic/162619-solved-more-help-please/#findComment-858331 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.