Jump to content

[SOLVED] call to undefined function?


atticus

Recommended Posts

I am having problems with this script.  I keep getting an error for the following line:

elseif(isse($_GET['id']))

This is an edit script for an admin panel.  I call it with:

echo "<center><a href=\"edit.php?id=$row[id]\">Edit</a></center>";

 

here is more of the script:

mysql_connect($db_host, $db_user, $db_pwd);
mysql_select_db($db_name);
  if(isset($_POST['submit']))
  {
      // Set global variables to easier names
     // and prevent sql injection and apostrophe to break the db.
      $title = mysql_escape_string($_POST['title']);
      $description = mysql_escape_string($_POST['description']);
      $buy = mysql_escape_string($_POST['buy']);
             $result = mysql_query("UPDATE news SET title='$title', description='$description', buy='$buy' WHERE id='$id' ");
          echo "<b>Thank you! Album UPDATED Successfully!";
          echo "<meta http-equiv=Refresh content=4;url=index.php>";
}
elseif(isse($_GET['id']))
{
        $result = mysql_query("SELECT * FROM upload2 WHERE id='$_GET[id]' ");
        while($myrow = mysql_fetch_assoc($result))
             {
                $title = $myrow["title"];
                $description = $myrow["description"];
                $buy = $myrow["buy"];
?>

<br>

<h3>::Edit Album</h3>
<form method="post" action="<?php echo $PHP_SELF ?>">
<input type="hidden" name="newsid" value="<? echo $myrow['id']?>">
Title: <input name="title" size="40" maxlength="255" value="<? echo $title; ?>">
<br>
Description: <textarea name="description"  rows="7" cols="30"><? echo $description; ?></textarea>
<br>
Buy Link: <input name="buy" size="40" maxlength="255" value="<? echo $buy; ?>">
<br>
<input type="submit" name="submit" value="Update">
</form>
<?
              }//end of while loop
  }//end else

 

I am getting the following error:

Fatal error: Call to undefined function: isse() in.../..././/

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.