Immortal55 Posted September 11, 2006 Share Posted September 11, 2006 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 11I keep getting that? What does that mean, if you need the script let me know. Link to comment https://forums.phpfreaks.com/topic/20347-what-does-this-error-mean/ Share on other sites More sharing options...
hostfreak Posted September 11, 2006 Share Posted September 11, 2006 It means you have something before session_start(). It must be located at the top of the page under your initial <?php . Link to comment https://forums.phpfreaks.com/topic/20347-what-does-this-error-mean/#findComment-89637 Share on other sites More sharing options...
Immortal55 Posted September 11, 2006 Author Share Posted September 11, 2006 The only thing before that was basic HTML but that was before the <?php, and I took that out and still I am getting the same error....Any other ideas? Link to comment https://forums.phpfreaks.com/topic/20347-what-does-this-error-mean/#findComment-89640 Share on other sites More sharing options...
kenrbnsn Posted September 11, 2006 Share Posted September 11, 2006 Please post the start of your script.Ken Link to comment https://forums.phpfreaks.com/topic/20347-what-does-this-error-mean/#findComment-89642 Share on other sites More sharing options...
Immortal55 Posted September 11, 2006 Author Share Posted September 11, 2006 Alright actually I figured it out, I realized you cannot have any spaces at the start of the script.Thanks a lot.but new questionhere 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_namestripslashes(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 https://forums.phpfreaks.com/topic/20347-what-does-this-error-mean/#findComment-89646 Share on other sites More sharing options...
Immortal55 Posted September 11, 2006 Author Share Posted September 11, 2006 anyone? Link to comment https://forums.phpfreaks.com/topic/20347-what-does-this-error-mean/#findComment-89650 Share on other sites More sharing options...
btherl Posted September 11, 2006 Share Posted September 11, 2006 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 https://forums.phpfreaks.com/topic/20347-what-does-this-error-mean/#findComment-89681 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.