Jump to content

error on line


flemingmike

Recommended Posts

hello,

 

anybody able to take a quick look and see why i have an error on both line 16 and 52?

 

<?php
include 'config.php';
include 'style.php';
include 'auth5.php';

$randeid=rand(121047, 997893);

if(isset($_GET["delete"]))
{
$did=$_GET["delete"]; 
$query11= mysql_query("delete FROM tools where id =$did")or die(mysql_error()); 
}

$groups = mysql_query("SELECT * FROM tools ORDER BY group");
$groups1="";
while($row1 = mysql_fetch_array($groups))
  {
$groupnames=$row1['group'];

$groups1.="<OPTION VALUE=\"$groupnames\">".$groupnames.'</option>';
  }

?>
<form method="POST">
<p align="center">Search For:    
<select size="1" name="tool"><?php echo "$groups1"; ?></select>    
<input type="submit" value="Search" name="search"></p>
</form>
<?php



if(isset($_POST['search']))
{

$tool=$_POST['tool'];

echo "<table border='1' style='border-collapse: collapse' bordercolorlight='#000000' bordercolordark='#000000' width='98%' align='center'>";
echo "<tr><td width='100%' colspan='4' align='center'><b>Tool List</b></td></tr>";

echo "<tr>

		<th align='center'>Tool</th>
		<th align='center'>Barcode</th>
		<th></th>
		<th></th>


</tr>";

$result = mysql_query("SELECT * FROM tools WHERE group LIKE '%$tool%' ORDER BY tool");
while($row = mysql_fetch_array($result))
{

$id=$row['id'];
$tool=$row['tool'];
$barcode=$row['barcode'];
$location=$row['location'];


  echo "<tr>";
  echo "<td align='center'>" . $tool . "</td>";
  echo "<td align='center'><img src='barcode.php?format=jpeg&quality=100&width=150&height=75&barcode=" . $barcode . "'></td>";
  echo "<td align='center'>Print</td>";
  echo "<td align='center'><a href='searchtool.php?delete=" . $id . "'>Delete</a></td>";
  

  echo "</tr>";
  }
echo "</table>";

}

include 'close.php';
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.