Jump to content

What does this error mean???


Immortal55

Recommended Posts

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/theblizz/public_html/mitch/admin/editnews.php:10) in /home/theblizz/public_html/mitch/admin/editnews.php on line 11

I keep getting that? What does that mean, if you need the script let me know.
Link to comment
Share on other sites

Alright actually I figured it out, I realized you cannot have any spaces at the start of the script.
Thanks a lot.

but new question

here is the script

[code=php:0]
<?
session_start();

include ('dbconnect.php');
 
  $conn = db_connect();
  $db = @mysql_select_db ("theblizz_mitchanderson", $conn)
          or die ("Registration failure, try again.");

    $sql = mysql_query("SELECT * FROM news ORDER BY id DESC") or die(mysql_error());

while($row = mysql_fetch_assoc($sql)){

//this next line will make all the array variables into normal variables -
//if you had a "last_name" field in the database you could now call it simply by using $last_name
stripslashes(extract($row));

echo "" . $title . "</h3> - [<a href='deletenews.php?id='$id' target='main'>delete</a>] [<a href='updatenews.php?id='$id' target='main'>edit</a>]";
echo '<br><br>';
}
?>
[/code]

but the links do not register the id number (ex: deletenews.php?id= ) thats what the link is it has no number after id....How do I fix that?
Link to comment
Share on other sites

stripslashes(extract($row)) doesn't do what you want it to do.  You need to call stripslashes() on the title directly.

But that won't affect $id not being set.  Try adding

[code]print_r($row); print_r($title); print_r($id);[/code]

inside your while loop, after you call extract().  Maybe it'll show up something useful.
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.