Hello,
My website has been up and running for years, the scripting is fine but it has just suddenly stopped working. It uses data in the URL to transfer informations, for example:
http://www.bennettcards.co.uk/shop/view.php?productcode=ABC
It should pass the information (productcode=ABC) onto the page and then the page can use the information in the PHP code, say in line 27:
$result = @mysql_query("SELECT * FROM CDBproducts WHERE productcode = '$productcode'");
This should then select from Table "CDBproducts" where Row "productcode" = "ABC"
But the page comes up as if "productcode=' ' " (nothing).
The same is true for sessions
<?php
session_start();
require '../../include.php';
mysql_connect($DBhost,$DBuser,$DBpass);
mysql_select_db("$DBName");
if(!$diyordernumber){
$diyordernumber = mktime();
session_register("diyordernumber");
$neworder=true;
}else{
session_register("diyordernumber");
} ?>
Also the forms will no longer pass data from one page to the next:
<form name="form2" method="post" action="/contact_done.php">
<textarea name="contactenquiry" cols="60" rows="8" id="contactenquiry">Enter message here</textarea>
<input type="submit" name="Submit3" value="Submit">
</form>
What is the problem all of a sudden??? Like I said, the code was fine 2 days ago. Could they have upgraded from PHP4 to PHP5 or 6? If so what can be done to fix this?
Thank you in advance
Scott