Jump to content

[SOLVED] more help please?


seany123

Recommended Posts

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

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.

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.