Good day,
I am trying to write a script that will get a value from previous script and display the results. If the script gets a value from previous script (user selects the value from radio button in previous script) then things go fine.
But when the script gets no value from previous script (means user don't select any radio button), I see an error that says "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /epshp/epshp_update.php on line 27"
Of course, I need to do a little changes but I don't know where and how. Can somebody help me or give me a clue? Thanks in advance.
The source code is here:
$record_ids=$_POST['modify'];
require ('access.php');
$result = mysql_query("SELECT record_id,note FROM ktl_epshp where ktl_epshp.record_id = $record_ids");
while ($array = mysql_fetch_array($result)) {
echo <<<EOD
<table align= "center">
<tbody>
<tr>
<td><form action="epshp_updatec.php" method ="post" />
<input type="hidden" name="verify_epshp_updatec" value ="ok" />
<table align = "center">
<tbody>
<tr>
<td>Sairaanhoitopiiri:</td>
<td>
.........