can you help me to solve this problem.
im using PHP and MySQL.
i have sql query :
$qx=mysql_query("SELECT ORCASENO,ORORDNO From order_break WHERE ORCASENO='$bcode' AND ORDEST='$dest'");
while($rx=mysql_fetch_array($qx))
{
echo $ORORDNO_rx= $rx['ORORDNO'];
}
this code sample able to generates two types of outputs.
ex: 1).
AAA
AAA
AAA
AAA
AAA
ex 2).
AAA
AAA
AAA
BBB
AAA
i need to generate error on example 2 because it containing two/more different values for
$ORORDNO_rx; like BBB
please help me to solve this.
thanks in advance.
You can do this in way: