الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

حقل نصي فارغ يؤثر في الإستعلام

بدأه saidmekki في 15 نوفمبر 2011 · 16 رد · 1,083 مشاهدة · في منتدى تطوير المواقع بـ PHP
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

إخوتى الكرام أطلب مساعدة في برنامج الدريم وييفر

أنشات صفحة بالبرنامج وربطتهابقاعدة البيانات وكل شيء تمام

لكن عندما اترك مربع ادخال الرقم الخاص بالشخص المطلوب والمخزن بالقاعدة عن طريق - TEXTFIELD-

تظهر العبارة التالية :You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

أما عند ادخال أي رقم فالصفحة تظهر والعمل تمام

جزاكم الله خيرا

الكود

<?php require_once('Connections/connect.php'); ?>
<?php
$colname_Recordset1 = "-1";
if (isset($_POST['textfield']))
 {
  $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_POST['textfield'] : addslashes($_POST['textfield']);
}
mysql_select_db($database_connect, $connect);
$query_Recordset1 = sprintf("SELECT * FROM student WHERE num = %s", $colname_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);

$colname_Recordset2 = "-1";
if (isset($_POST['textfield'])) {
  $colname_Recordset2 = (get_magic_quotes_gpc()) ? $_POST['textfield'] : addslashes($_POST['textfield']);
}
mysql_select_db($database_connect, $connect);
$query_Recordset2 = sprintf("SELECT * FROM abs WHERE num = %s", $colname_Recordset2);
$Recordset2 = mysql_query($query_Recordset2, $connect) or die(mysql_error());
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 = mysql_num_rows($Recordset2);
?>
#2

ضع هذا الكود قبل البدء بالاستعلام

if (empty($_POST['textfield']){
echo '<BR><B><FONT COLOR=red> يُرجى تعبئة كافة الحقول </FONT></BR></B>';
echo '<BR><B><FONT COLOR=green><a href=page.php>العودة للخطوة السابقة</a></FONT></BR></B>';
}

صورة
صورة

حسابي في الفيس بوك
http://goo.gl/XIzwL

حسابي في تويتر
http://goo.gl/6p4e3

 

 
 
#3

بارك الله فيك

النتيجة

يُرجى تعبئة كافة الحقول

العودة للخطوة السابقة

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

اعتذ ر على الازعاج ولكن ارغب في المساعدة بكرمكم

#4

الكود بعد التعديل

<?php require_once('Connections/connect.php'); ?>

<?php
$colname_Recordset1 = "-1";
if (isset($_POST['textfield']))
 {
  $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_POST['textfield'] : addslashes($_POST['textfield']);
}


if (empty($_POST['textfield']){

								echo '<BR><B><FONT COLOR=red> يُرجى تعبئة كافة الحقول </FONT></BR></B>'; 
                              }
else{



mysql_select_db($database_connect, $connect);
$query_Recordset1 = sprintf("SELECT * FROM student WHERE num = %s", $colname_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);


    }


$colname_Recordset2 = "-1";
if (isset($_POST['textfield'])) {
  $colname_Recordset2 = (get_magic_quotes_gpc()) ? $_POST['textfield'] : addslashes($_POST['textfield']);
}


if (empty($_POST['textfield']){

								echo '<BR><B><FONT COLOR=red> يُرجى تعبئة كافة الحقول </FONT></BR></B>'; 
                              }
else{


mysql_select_db($database_connect, $connect);
$query_Recordset2 = sprintf("SELECT * FROM abs WHERE num = %s", $colname_Recordset2);
$Recordset2 = mysql_query($query_Recordset2, $connect) or die(mysql_error());
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 = mysql_num_rows($Recordset2);

}
?>

صورة
صورة

حسابي في الفيس بوك
http://goo.gl/XIzwL

حسابي في تويتر
http://goo.gl/6p4e3

 

 
 
#5
فيصل الحربي كتب:

الكود بعد التعديل

<?php require_once('Connections/connect.php'); ?>

<?php
$colname_Recordset1 = "-1";
if (isset($_POST['textfield']))
 {
  $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_POST['textfield'] : addslashes($_POST['textfield']);
}


if (empty($_POST['textfield']){

								echo '<BR><B><FONT COLOR=red> يُرجى تعبئة كافة الحقول </FONT></BR></B>'; 
                              }
else{



mysql_select_db($database_connect, $connect);
$query_Recordset1 = sprintf("SELECT * FROM student WHERE num = %s", $colname_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);


    }


$colname_Recordset2 = "-1";
if (isset($_POST['textfield'])) {
  $colname_Recordset2 = (get_magic_quotes_gpc()) ? $_POST['textfield'] : addslashes($_POST['textfield']);
}


if (empty($_POST['textfield']){

								echo '<BR><B><FONT COLOR=red> يُرجى تعبئة كافة الحقول </FONT></BR></B>'; 
                              }
else{


mysql_select_db($database_connect, $connect);
$query_Recordset2 = sprintf("SELECT * FROM abs WHERE num = %s", $colname_Recordset2);
$Recordset2 = mysql_query($query_Recordset2, $connect) or die(mysql_error());
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 = mysql_num_rows($Recordset2);

}
?>

#6

بارك الله فيك سيدي الكريم

عدلت الكود ولكن طهرت بعض الاسطر في ثنايا الصفحة

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\camel\www\schoolhed\abs_stud.php on line 125

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in C:\camel\www\schoolhed\abs_stud.php on line 145

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in C:\camel\www\schoolhed\abs_stud.php on line 147

اعتذر لانني لم اضع كود الصفحة كاملة

اليكم الكود الكامل * خطا مني سهوا *

<?php require_once('Connections/connect.php'); ?>

<?php
$colname_Recordset1 = "-1";
if (isset($_POST['textfield']))
 {
  $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_POST['textfield'] : addslashes($_POST['textfield']);
}


if (empty($_POST['textfield'])){

                                                                echo '<BR><B><FONT COLOR=red> يُرجى تعبئة كافة الحقول </FONT></BR></B>'; 
                              }
else{



mysql_select_db($database_connect, $connect);
$query_Recordset1 = "SELECT * FROM student WHERE num = colname";
$Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);


    }


$colname_Recordset2 = "-1";
if (isset($_POST['textfield'])) {
  $colname_Recordset2 = (get_magic_quotes_gpc()) ? $_POST['textfield'] : addslashes($_POST['textfield']);
}


if (empty($_POST['textfield']))
{
  echo '<BR><B><FONT COLOR=red> يُرجى تعبئة كافة الحقول </FONT></BR></B>'; 
 }
else{


mysql_select_db($database_connect, $connect);
$query_Recordset2 = "SELECT * FROM abs WHERE num = colname";
$Recordset2 = mysql_query($query_Recordset2, $connect) or die(mysql_error());
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
$totalRows_Recordset2 = mysql_num_rows($Recordset2);

}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />
<title>عرض الغيابات</title>
<style type="text/css">
<!--
.Style2 {	color: #FFFFFF;
	font-size: x-large;
	font-weight: bold;
}
body {
	background-color: #CCFFFF;
}
.Style3 {
	color: #FF0000;
	font-weight: bold;
}
.Style4 {
	color: #0000FF;
	font-weight: bold;
}
-->
</style>
</head>

<body>
<div align="center">
  <table width="969">
    <tr>
      <th width="961" height="70" bgcolor="#6699CC" scope="col"><div align="center" class="Style2"> نتائج التلاميذ SCHOOLHED </div></th>          </tr>
  </table>
  <p class="Style4">صفحة عرض غيابات التلميذ </p>
  <form action="" method="post" name="form1" id="form1">
    <p><strong> أدخل الرقم الخاص بالتلميذ </strong>
      <input name="textfield" type="password" />
      <input type="submit" name="Submit" value="دخــــول" />
</p>
    <p>     </p>
  </form>
  <table width="739" border="1">
    <tr>
      <th width="132" bgcolor="#FFCC99" scope="col"><div align="center"><strong>الإسم واللقب : </strong></div></th>
      <th width="184" scope="col"> <?php echo $row_Recordset1['name']; ?></th>
      <th width="124" bgcolor="#FFCC99" scope="col"><div align="center"><strong>الرقم الخاص : </strong></div></th>
      <th width="159" scope="col"> <?php echo $row_Recordset1['num']; ?></th>
    </tr>
    <tr>
      <td bgcolor="#FFCC99"><div align="center"><strong>تاريخ ومكان الميلاد : </strong></div></td>
      <td><?php echo $row_Recordset1['age']; ?></td>
      <td bgcolor="#FFCC99"><div align="center"><strong>القسم التربوي: </strong></div></td>
      <td><?php echo $row_Recordset1['class']; ?></td>
    </tr>
    <tr>
      <td bgcolor="#FFCC99"><div align="center"><strong>المؤسسة التربوية : </strong></div></td>
      <td><?php echo $row_Recordset1['school']; ?></td>
      <td bgcolor="#FFCC99"><div align="center"><strong>الموسم الدراسي : </strong></div></td>
      <td><?php echo $row_Recordset1['annsclr']; ?></td>
    </tr>
  </table>
  <p class="Style3">جدول غيابات التلميذ حسب الشهور والحصص </p>
  <table width="750" border="1">
    <tr bgcolor="#FFCC99">
      <td width="123"><div align="center"><strong>الشهر</strong></div></td>
      <td width="223"><div align="center"><strong>التاريخ</strong></div></td>
      <td width="126"><div align="center"><strong>التبرير</strong></div></td>
      <td width="197"><div align="center"><strong>مجموع غيابات الشهر </strong></div></td>
    </tr>
    <?php do { ?>
    <tr>
      <td><?php echo $row_Recordset2['mois']; ?></td>
      <td><?php echo $row_Recordset2['date']; ?></td>
      <td><?php echo $row_Recordset2['tabrir']; ?></td>
      <td><?php echo $row_Recordset2['totalmont']; ?></td>
    </tr>
    <?php } while ($row_Recordset2 = mysql_fetch_assoc($Recordset2)); ?>
  </table>
  <p> </p>
  <p> </p>
  <p> </p>
  <p> </p>
  <p> </p>
  <p> </p>
  <p> </p>
  <p> </p>
  <p> </p>
  <table width="973">
    <tr>
      <th width="965" height="30" bgcolor="#6699CC" scope="col">تطوير الأستاذ : السعيد هدوش </th>
    </tr>
  </table>
</div>
</body>
</html>
<?php
mysql_free_result($Recordset1);

mysql_free_result($Recordset2);
?>

بارك الله فيكم

#7

أرفق ملف

connect.php

و هيكلية قاعدة البيانات

ثانوية القنطرة :salam:

===

صورة
صورة

حسابي في الفيس بوك
http://goo.gl/XIzwL

حسابي في تويتر
http://goo.gl/6p4e3

 

 
 
#8

تفضل اخي الكريم

وبارك الله فيك

connect-sql.rar

#11

السلام عليكم ورحمة الله..

لم لا تقوم بها على الشكل التالي:

abs_stud.php

<?php require_once('connect.php'); ?>
<?php

$colname_Recordset1 = !isset($_POST['textfield']) || empty($_POST['textfield']) ? '-1' : addslashes($_POST['textfield']); 
$colname_Recordset2 = !isset($_POST['textfield']) || empty($_POST['textfield']) ? '-1' : addslashes($_POST['textfield']);

if(isset($_POST['textfield']) && empty($_POST['textfield']))
	$error = "ادخل رقم الطالب";

mysql_select_db($database_connect, $connect); 
$query_Recordset1 = sprintf("SELECT * FROM student WHERE num = %s", $colname_Recordset1); 
$Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error()); 
$row_Recordset1 = mysql_fetch_assoc($Recordset1); 
$totalRows_Recordset1 = mysql_num_rows($Recordset1); 

mysql_select_db($database_connect, $connect); 
$query_Recordset2 = sprintf("SELECT * FROM abs WHERE num = %s", $colname_Recordset2); 
$Recordset2 = mysql_query($query_Recordset2, $connect) or die(mysql_error()); 
$row_Recordset2 = mysql_fetch_assoc($Recordset2); 
$totalRows_Recordset2 = mysql_num_rows($Recordset2); 
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html dir="rtl"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /> 
<title>عرض الغيابات</title> 
<style type="text/css"> 
<!-- 
.Style2 {	color: #FFFFFF; 
	font-size: x-large; 
	font-weight: bold; 
} 
body { 
	background-color: #CCFFFF; 
} 
.Style3 { 
	color: #FF0000; 
	font-weight: bold; 
} 
.Style4 { 
	color: #0000FF; 
	font-weight: bold; 
} 
--> 
</style> 
</head> 

<body> 
<div align="center"> 
  <table width="969"> 
	<tr> 
  	<th width="961" height="70" bgcolor="#6699CC" scope="col"><div align="center" class="Style2"> نتائج التلاميذ SCHOOLHED </div></th>      	</tr> 
  </table> 
  <p class="Style4">صفحة عرض غيابات التلميذ </p> 
  <form action="" method="post" name="form1" id="form1"> 
	<p><strong> أدخل الرقم الخاص بالتلميذ </strong> 
  	<input type="password" name="textfield" /> 
  	<input type="submit" name="Submit" value="دخــــول" /> 
</p> 
	<p><?php if(!empty($error)) { echo '<span style="color:red;">'.$error.'</span>'; } ?> </p> 
  </form> 
  <table width="739" border="1"> 
	<tr> 
  	<th width="132" bgcolor="#FFCC99" scope="col"><div align="center"><strong>الإسم واللقب : </strong></div></th> 
  	<th width="184" scope="col"> <?php echo $row_Recordset1['name']; ?></th> 
  	<th width="124" bgcolor="#FFCC99" scope="col"><div align="center"><strong>الرقم الخاص : </strong></div></th> 
  	<th width="159" scope="col"> <?php echo $row_Recordset1['num']; ?></th> 
	</tr> 
	<tr> 
  	<td bgcolor="#FFCC99"><div align="center"><strong>تاريخ ومكان الميلاد : </strong></div></td> 
  	<td><?php echo $row_Recordset1['age']; ?></td> 
  	<td bgcolor="#FFCC99"><div align="center"><strong>القسم التربوي: </strong></div></td> 
  	<td><?php echo $row_Recordset1['class']; ?></td> 
	</tr> 
	<tr> 
  	<td bgcolor="#FFCC99"><div align="center"><strong>المؤسسة التربوية : </strong></div></td> 
  	<td><?php echo $row_Recordset1['school']; ?></td> 
  	<td bgcolor="#FFCC99"><div align="center"><strong>الموسم الدراسي : </strong></div></td> 
  	<td><?php echo $row_Recordset1['annsclr']; ?></td> 
	</tr> 
  </table> 
  <p class="Style3">جدول غيابات التلميذ حسب الشهور والحصص </p> 
  <table width="750" border="1"> 
	<tr bgcolor="#FFCC99"> 
  	<td width="123"><div align="center"><strong>الشهر</strong></div></td> 
  	<td width="223"><div align="center"><strong>التاريخ</strong></div></td> 
  	<td width="126"><div align="center"><strong>التبرير</strong></div></td> 
  	<td width="197"><div align="center"><strong>مجموع غيابات الشهر </strong></div></td> 
	</tr> 
	<?php do { ?> 
	<tr> 
  	<td><?php echo $row_Recordset2['mois']; ?></td> 
  	<td><?php echo $row_Recordset2['date']; ?></td> 
  	<td><?php echo $row_Recordset2['tabrir']; ?></td> 
  	<td><?php echo $row_Recordset2['totalmont']; ?></td> 
	</tr> 
	<?php } while ($row_Recordset2 = mysql_fetch_assoc($Recordset2)); ?> 
  </table> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <table width="973"> 
	<tr> 
  	<th width="965" height="30" bgcolor="#6699CC" scope="col">تطوير الأستاذ : السعيد هدوش </th> 
	</tr> 
  </table> 
</div> 
</body> 
</html> 
<?php 
mysql_free_result($Recordset1); 

mysql_free_result($Recordset2); 
?>

جرب و أخبرنا بالنتيجة,

بتوفيق الله...

Everything will be fine when we TALK LESS, DO MORE


#12

ممتاز أخ MoHaMMaD Pro

منذ يومين أبحث عن طريقة لمنع ظهور الخطأ لكنك حللت مشكلة الأخ saidmekki

جربت الكود و يعطي رسالة انه لم يتم إدخال رقم الطالب

لكن أيضا المفروض انه يعطي رسالة بعدم وجود رقم الطالب الذي بحثت عنه

الأمر الآخر لو تم إدخال حرف من المستخدم بدلا من رقم فسيظهر الخطأ التالي

Unknown column 'aaa' in 'where clause'

انا هنا ادخل الاحرف aaa

===

صورة
صورة

حسابي في الفيس بوك
http://goo.gl/XIzwL

حسابي في تويتر
http://goo.gl/6p4e3

 

 
 
#13

ملاحظات في محلها أخي فيصل, جزاك الله خيراً

بهذا الشكل يمكننا تفادي هذه الأخطاء والله أعلم

<?php require_once('connect.php'); ?> 
<?php 

$colname_Recordset1 = !isset($_POST['textfield']) || empty($_POST['textfield']) || !is_numeric($_POST['textfield']) ? '-1' : addslashes($_POST['textfield']); 
$colname_Recordset2 = !isset($_POST['textfield']) || empty($_POST['textfield']) || !is_numeric($_POST['textfield']) ? '-1' : addslashes($_POST['textfield']); 

mysql_select_db($database_connect, $connect); 
$query_Recordset1 = sprintf("SELECT * FROM student WHERE num = %s", $colname_Recordset1); 
$Recordset1 = mysql_query($query_Recordset1, $connect) or die(mysql_error()); 
$row_Recordset1 = mysql_fetch_assoc($Recordset1); 
$totalRows_Recordset1 = mysql_num_rows($Recordset1); 

mysql_select_db($database_connect, $connect); 
$query_Recordset2 = sprintf("SELECT * FROM abs WHERE num = %s", $colname_Recordset2); 
$Recordset2 = mysql_query($query_Recordset2, $connect) or die(mysql_error()); 
$row_Recordset2 = mysql_fetch_assoc($Recordset2); 
$totalRows_Recordset2 = mysql_num_rows($Recordset2);

if(isset($_POST['textfield']) && $totalRows_Recordset1 == 0)
	$error = "رقم الطالب غير موجود";
if(isset($_POST['textfield']) && empty($_POST['textfield'])) 
	$error = "ادخل رقم الطالب";
if(isset($_POST['textfield']) && !empty($_POST['textfield']) && !is_numeric($_POST['textfield']))
	$error = "يجب ادخال رقم";

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html dir="rtl"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /> 
<title>عرض الغيابات</title> 
<style type="text/css"> 
<!-- 
.Style2 {	color: #FFFFFF; 
	font-size: x-large; 
	font-weight: bold; 
} 
body { 
	background-color: #CCFFFF; 
} 
.Style3 { 
	color: #FF0000; 
	font-weight: bold; 
} 
.Style4 { 
	color: #0000FF; 
	font-weight: bold; 
} 
--> 
</style> 
</head> 

<body> 
<div align="center"> 
  <table width="969"> 
	<tr> 
  	<th width="961" height="70" bgcolor="#6699CC" scope="col"><div align="center" class="Style2"> نتائج التلاميذ SCHOOLHED </div></th>      	</tr> 
  </table> 
  <p class="Style4">صفحة عرض غيابات التلميذ </p> 
  <form action="" method="post" name="form1" id="form1"> 
	<p><strong> أدخل الرقم الخاص بالتلميذ </strong> 
  	<input type="password" name="textfield" /> 
  	<input type="submit" name="Submit" value="دخــــول" /> 
</p> 
	<p><?php if(!empty($error)) { echo '<span style="color:red;">'.$error.'</span>'; } ?> </p> 
  </form> 
  <table width="739" border="1"> 
	<tr> 
  	<th width="132" bgcolor="#FFCC99" scope="col"><div align="center"><strong>الإسم واللقب : </strong></div></th> 
  	<th width="184" scope="col"> <?php echo $row_Recordset1['name']; ?></th> 
  	<th width="124" bgcolor="#FFCC99" scope="col"><div align="center"><strong>الرقم الخاص : </strong></div></th> 
  	<th width="159" scope="col"> <?php echo $row_Recordset1['num']; ?></th> 
	</tr> 
	<tr> 
  	<td bgcolor="#FFCC99"><div align="center"><strong>تاريخ ومكان الميلاد : </strong></div></td> 
  	<td><?php echo $row_Recordset1['age']; ?></td> 
  	<td bgcolor="#FFCC99"><div align="center"><strong>القسم التربوي: </strong></div></td> 
  	<td><?php echo $row_Recordset1['class']; ?></td> 
	</tr> 
	<tr> 
  	<td bgcolor="#FFCC99"><div align="center"><strong>المؤسسة التربوية : </strong></div></td> 
  	<td><?php echo $row_Recordset1['school']; ?></td> 
  	<td bgcolor="#FFCC99"><div align="center"><strong>الموسم الدراسي : </strong></div></td> 
  	<td><?php echo $row_Recordset1['annsclr']; ?></td> 
	</tr> 
  </table> 
  <p class="Style3">جدول غيابات التلميذ حسب الشهور والحصص </p> 
  <table width="750" border="1"> 
	<tr bgcolor="#FFCC99"> 
  	<td width="123"><div align="center"><strong>الشهر</strong></div></td> 
  	<td width="223"><div align="center"><strong>التاريخ</strong></div></td> 
  	<td width="126"><div align="center"><strong>التبرير</strong></div></td> 
  	<td width="197"><div align="center"><strong>مجموع غيابات الشهر </strong></div></td> 
	</tr> 
	<?php do { ?> 
	<tr> 
  	<td><?php echo $row_Recordset2['mois']; ?></td> 
  	<td><?php echo $row_Recordset2['date']; ?></td> 
  	<td><?php echo $row_Recordset2['tabrir']; ?></td> 
  	<td><?php echo $row_Recordset2['totalmont']; ?></td> 
	</tr> 
	<?php } while ($row_Recordset2 = mysql_fetch_assoc($Recordset2)); ?> 
  </table> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <p> </p> 
  <table width="973"> 
	<tr> 
  	<th width="965" height="30" bgcolor="#6699CC" scope="col">تطوير الأستاذ : السعيد هدوش </th> 
	</tr> 
  </table> 
</div> 
</body> 
</html> 
<?php 
mysql_free_result($Recordset1); 

mysql_free_result($Recordset2); 
?>
1

Everything will be fine when we TALK LESS, DO MORE


#14

+1

بارك الله فيك

صورة
صورة

حسابي في الفيس بوك
http://goo.gl/XIzwL

حسابي في تويتر
http://goo.gl/6p4e3

 

 
 
#15

السلام عليكم

الى الأخوين : فيصل الحربي ومحمد برو

بارك الله فيكما ولكما

تم حل المشكلة بفضل الله وبفضل عبقريتكما

فعلا : أهل مكة أدرى بشعابها

دعواتي لكما بالخير كل الخير في السجود

#16
اقتباس
تم حل المشكلة بفضل الله وبفضل عبقريتكما

الحمد لله لكن الصحيح ان تقول

تم حل المشكلة بفضل الله ثم بفضل عبقريتكما

قال رسول الله صلى الله عليه وسلم (لا تقولوا ما شاء الله وشاء فلان ولكن قولوا ما شاء الله ثم شاء فلان )

لان العطف بالواو يقتضى المقارنة و التسوية فيكون من قال :ما شاء الله وشئت ، قارنا مشيئة العبد بمشيئة الله مسويا بها بخلاف العطف بــ (ثم) المقتضية للتبعية فمن قال كما شاء الله ثم شئت . فقد اقر بأن مشيئة العبد تابعة لمشيئة الله تعالى لا تكون الا بعدها ،كما قال تعالى (وما تشاءون الا ان يشاء الله ).

صورة
صورة

حسابي في الفيس بوك
http://goo.gl/XIzwL

حسابي في تويتر
http://goo.gl/6p4e3

 

 
 
#17

السلام عليكم

تم حل المشكلة بفضل الله ثم بفضل عبقريتكما

ان التواصل مع اهل العلم يكسبنا الكثير الكثير فصاحب العلم المسلم المؤمن كبائع المسك وليس كنافخ الكير

وها انذا اكتسبت الكثير فكان سؤالي سببا لمعرفة تصويبا لخطا هو شائع بيننا

بارك الله فيك اخي الفاضل

مواضيع مشابهة