Forum Moderators: coopster
I have a problem. I have a website that displays information from a database using php / mysql. The script was working fine for months untill it stopped not long ago.
I have never touched the files or the database or anything so I am sure it wasn't me that done it.
The weird thing is only two pages do not work any more (they list the latest records in my database) and its for my home page however the main pages all work fine and they are all also from the database.
So what could the problem have been? Is there code I can use to find out why its stopped displaying the records? I don't think it has anything to do with database connections as the other parts of the site work.
Any ideas?
RJ
The weird thing is only two pages do not work any more
Any error message
did you try adding error reporting on those two pages
As surrealillusions suggests load a php_info()
and report on php version
look at your (new) php.ini and let us know about your settings such as register global etc...
it's not a bad idea to keep handy a php.ini copy
so you may later figure if any change occured.
I don't get any errors on my pages just no information displays on them. So is there any php code I can insert that will help me figure this out?
I can read PHP and write a little however this was coded by someone who by the looks of things was worse than me so its hard to tell whats what!
Thanks for the help so far!
RJ
There are two ways to indicate a block of php is starting in a file:
<?
and
<?php
When a fresh install of php is done is expects that scripts will all start with the <?php version of the above. I would hazard a guess that all your scripts currently start with <?
That should probably be your first port of call.
Steerpike.
I don't get any errors on my pages just no information displays on them. So is there any php code I can insert that will help me figure this out?
Contact tech support, tell them what's happening and ask them to enable for PHP includes - or whatever your need is - and let you know for sure what you might need to put in your .htaccess. See if that works for you, they should know.
[edited by: Marcia at 12:39 pm (utc) on April 1, 2008]