cluce Posted June 13, 2007 Share Posted June 13, 2007 can someone tell me how I cna add this session into this block of code? I get error with the session ID. I am trying to display the ID by name. //create the display string $display_block = " <p>Showing posts for the <strong>".$topic_title."</strong> topic by .'"$_SESSION['identity']"'.:</p> <table width=\"100%\" cellpadding=\"3\" cellspacing=\"1\" border=\"1\"> <tr> <th>POST</th> </tr>"; Link to comment https://forums.phpfreaks.com/topic/55479-solved-small-question-about-syntax/ Share on other sites More sharing options...
AndyB Posted June 13, 2007 Share Posted June 13, 2007 //create the display string $display_block = " <p>Showing posts for the <strong>". $topic_title. "</strong> topic by '". $_SESSION['identity']. "':</p> <table width=\"100%\" cellpadding=\"3\" cellspacing=\"1\" border=\"1\"> <tr> <th>POST</th> </tr>"; I *think* that's what you need. I didn't understand "I get error with the session ID". Link to comment https://forums.phpfreaks.com/topic/55479-solved-small-question-about-syntax/#findComment-274173 Share on other sites More sharing options...
Caesar Posted June 13, 2007 Share Posted June 13, 2007 "</strong> topic by .'"$_SESSION['identity']"'.:</p> "</strong> topic by '".$_SESSION['identity']."':</p> Use UltraEdit to edit your code. It highlights PHP nice. You'll know when you've misplaced a variable or if your syntax ain't quite right. Link to comment https://forums.phpfreaks.com/topic/55479-solved-small-question-about-syntax/#findComment-274174 Share on other sites More sharing options...
cluce Posted June 13, 2007 Author Share Posted June 13, 2007 thanks Ceasar!!..........reply to other message.what I meant by error with session ID is that I know their was something wrong with that part of teh code, thats all. . Link to comment https://forums.phpfreaks.com/topic/55479-solved-small-question-about-syntax/#findComment-274177 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.