Jump to content

[SOLVED] If statement


bob2588

Recommended Posts

i know the  if statement is missed up but i dont know who to fix it

 

<?php
session_start();
if(!session_is_registered(username)){
header('location:login.php');
}
?>
<?php
$id=$_GET['id'];
$code=$_GET['code'];
if(?chnage = ){
mysql_query("UPDATE Ads SET Html = '$code'
WHERE id = '$id'");
}
else
{

echo"<form id='form1' name='form1' method='post' action='?change=$id'>
  <label><br />
  <textarea name='code' id='code' cols='45' rows='5'></textarea>
  <br />
</label>
  <input type='submit' name='Submit' id='Submit' value='Submit' />
</form>";
}

?>

 

 

Thanks bob

Link to comment
https://forums.phpfreaks.com/topic/178783-solved-if-statement/
Share on other sites

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.