Jump to content

Need Help On Php Coding


sgs

Recommended Posts

PHP runs from the top down. You put the code that displays the contents of the arrays before the code that puts the stuff in them. They're always empty because the code that puts the results in hasn't been run yet.

 

Move the code block that shows the array entries (lines 19 to 40) to line 319 (after the queries and if (!$q#) stuff but before the footer) and it should work.

  • Like 1
Link to comment
Share on other sites

And one more thing sir, I'm getting the following error:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/sgs/includes/code_highlighter.php:18) in /home/sgs/public_html/global/layouts/sgs2014.php on line 2
Warning: session_start() [function.session-

start]: Cannot send session cache limiter - headers already sent (output started at /home/sgs/includes/code_highlighter.php:18) in /home/sgs/public_html/global/layouts/sgs2014.php on line 2

What does it means?

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...