ghola1364
سه شنبه 13 مرداد 1388, 13:03 عصر
سلام خسته نباشيد
يه سوال من مي خوام از يه ديتابيس از يه جدول داخل اون كوئري بگيرم كدي كه نوشتم مثل زير هست ولي پيام خطا مي دهد لطفا راهنمايي كنيد
<?php
$computername=$_POST['computername'];
$numbercomputer=$_POST['numbercomputer'];
$veryposition=$_POST['veryposition'];
$con = mysql_connect("localhost","root","root");
mysql_select_db("mcihelp", $con);
$query ="SELECT * FROM tickets_table where computername='$computername', numbercomputer='$numbercomputer' , veryposition='$veryposition' ";
$result=mysql_query($query,$con);
echo "<table border='0'>
<tr>
<th>فعلي وضعيت</th>
<th>كامپيوتر شماره </th>
<th>نام</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $computername . "</td>";
echo "<td>" . $numbercomputer. "</td>";
echo "<td>" . $veryposition . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
يه سوال من مي خوام از يه ديتابيس از يه جدول داخل اون كوئري بگيرم كدي كه نوشتم مثل زير هست ولي پيام خطا مي دهد لطفا راهنمايي كنيد
<?php
$computername=$_POST['computername'];
$numbercomputer=$_POST['numbercomputer'];
$veryposition=$_POST['veryposition'];
$con = mysql_connect("localhost","root","root");
mysql_select_db("mcihelp", $con);
$query ="SELECT * FROM tickets_table where computername='$computername', numbercomputer='$numbercomputer' , veryposition='$veryposition' ";
$result=mysql_query($query,$con);
echo "<table border='0'>
<tr>
<th>فعلي وضعيت</th>
<th>كامپيوتر شماره </th>
<th>نام</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $computername . "</td>";
echo "<td>" . $numbercomputer. "</td>";
echo "<td>" . $veryposition . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>