IzKuFeLiQqQqQ
Registered
здравейте както знаете си правя сайт за различни услуги и искам помощ та някой си е направил няколко поръчки как да направя така като си въведе данните и да му излизат всички негови(с тея данни) поръчки пробвах се така
http://kuku-test.webege.com/job%20new/getorder.php но не става ...
Код:
<?php include ("./files/config.php");$id = (int)$_GET['id'];?>
<?php if(!isset($_POST['submit'])) : ?>
<form action="" method="get">
Име:<br><input type="text" name="name"/><br>
GSM:<br><input type="text" name="gsm"/><br>
Email:<br><input type="text" name="email"/><br>
<input type="submit" name="get" value="Вземи"/>
</form>
<?php
if(isset($_POST['get'])) {
$query = mysql_query("SELECT * FROM services ") or die('Грешка объркали сте selecta');
}
?>
<?php endif; ?>
<?php if(isset($_POST['get'])) : ?>
<table width='100%' style='text-align:center;' >
<tr><th width='5%' >ID</th><th width='20%'>Вид</th><th width='20%'>Име</th><th width='20%'>Gsm</th><th width='20%'>Е-mail</th><th width='7%' >Виж</th><th width='7%' >Вземи</th></tr>
</table>
<?php
$query = mysql_query("SELECT * FROM services gsm='gsm' name='name' email='email' ORDER BY id DESC ") or die('Грешка объркали сте selecta');
while($row = mysql_fetch_array($query)){
$id= $row['id'];
$name = $row['name'];
$gsm = $row['gsm'];
$email = $row['email'];
$give = $row['give'];
$vid = $row['vid'];
echo "<table width='100%' style='text-align:center;' >
<tr><td width='5%'>$id</td><td width='20%'>$vid</td><td width='20%'>$name</td>
<td width='20%'>$gsm</td><td width='20%'>$email</td>
<td width='7%'><a href='vieworder.php?id=$id'><img style='border:0;text-decoration:none;' widt='28px' height='28px' src='./img/view.png'/></a></td>
<td width='7%'><a href='order.php?id=$id'><img style='border:0;text-decoration:none;' src='./img/give.png'/></а></td>
</tr>
</table>";
}
?>
<?php endif; ?>
http://kuku-test.webege.com/job%20new/getorder.php но не става ...