This script works well at my old ISP. Visitor at my website can fill
in any of the fields in a form and get back the data requested. Now I have moved my site to a new ISP and now the script prints out all data each time!?
Anyone who has got a clue?
$result = mysql_query ("SELECT * FROM table
WHERE id LIKE '$id%'
AND year LIKE '$year%'
AND date LIKE '$date%'
");
if ($row = mysql_fetch_array($result)){
do {
print ("<table width=1200 border=0 cellpadding=0 cellspacing=0><tr><td
width=50><font size=2>");
print $row["id"];
print ("</td><td width=50><font size=2>");
print $row["year"];
print ("</td><td width=50><font size=2>");
print $row["date"];
print (" </tr></table>");
print ("<p>");
I got a tip that it's beause register_globals is set to off at my ISP, but I don't get what to do to get around the problem. Really need to get this right.
/Gn