Update my php script to work with php5 and future versions of php.
I am getting this error at the bottom of my page on only the first view of the page. It goes away on the next refresh of the homepage.
http://www.hitssurfer.com/index.php
It seems to be corrupting the mysql db as well.
* * *
This is the complete error:
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0
* * *
This error is now shown in my admin due to the above;
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 5 in /home/hitssurf/public_html/apanel/det.php on line 12
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 5 in /home/hitssurf/public_html/apanel/det.php on line 13
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 5 in /home/hitssurf/public_html/apanel/det.php on line 14
* * * *
Is there any way to make php5 backward compatible for my needs when I am on a shared hosting plan?
I do NOT have access to php.ini.
I do have access to .htaccess
I do have CPanel access
Thank you for looking