Copy link to clipboard
Copied
I have a script that was working, however I discovered it was only working
in IE7, not in FF or Chrome. It also has stopped working in IE7 once I put
it on the remote server. It is to create checkboxes from data called from
the db. I have echo'd the mysql_num_row and am getting a result, so the
query seems to be working. At this point I get a blank page. Can someonepoint me in the right direction to get this working (again).$choice=$_POST['state'];
Copy link to clipboard
Copied
$choice=$_POST['state'];
mysql_select_db($database_assess, $assess_remote);
$query_Recordset1 = ("SELECT * FROM `counties` WHERE state_id =
'$choice'")or die(mysql_error());
$Recordset1 = mysql_query($query_Recordset1, $assess_remote) or
die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
<?php
echo "$totalRows_Recordset1";
echo "$row_Recordset1";
...
?>Would appriciate your help.Thank you.
--
Gary
Most likely it´s the extra <?php start of a scripting block I marked bold @ line 9 which triggers a PHP parse error.
At this point I get a blank page.
...what indicates that there´s something wrong with your PHP code. Whenever this happens, please turn on PHP error reporting by adding the line
error_reporting(E_ALL ^ E_NOTICE);
@ line 1
Copy link to clipboard
Copied
Gunter
Thank you for your reply. I don't really know if that was the issue, I ended up re-writing it. It was curious though that it had a problem in one browser to another given they were both running through the same server.
GAry
Copy link to clipboard
Copied
Hi Gary,
I don't really know if that was the issue
Trust me, adding a <?php start tag inside a code block is an issue 😉
Glad you got it solved !
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more