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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.