أحاول قراءة متغير من عنوان الصفحة URL واستخدامه في استعلام SQL ولكني أحصل على رسالة خطأ.. الكود هو:
<?
<?
$billing_sql = "SELECT billing.* FROM billing WHERE account_id = ".$_GET['account']." AND amount >= 0 ORDER BY start_date_time desc LIMIT 12";
$billing_result = pg_exec($pg_connection, $billing_sql);
if(!$billing_result || (pg_num_rows($billing_result) < 1))
{
header('Location: index.php');
}
?>ورسالة الخطأ هي:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/jassim.tmp.2connectbahrain.com/www/my2connect.php:26) in /var/www/jassim.tmp.2connectbahrain.com/www/my2connect.php on line 106