Guest User

Untitled

a guest
Jun 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1.  
  2. <?php if (!empty($_POST['submit'])) {
  3. $query = "INSERT INTO `cars` (`catid`)
  4. VALUES('')";
  5.  
  6. mysql_query($query);
  7.  
  8.  
  9. header("Location: products.php");
  10.  
  11. }
  12.  
  13. ?>
  14.  
  15.  
  16. <br />
  17.  
  18.  
  19. <?php $query = ("SELECT * FROM cars WHERE id = {$_GET['id']} ");
  20. $result = mysql_query($query);
  21. while($field = mysql_fetch_array($result)) { ?>
  22.  
  23.  
  24.  
  25. -------------------------------------------------------------------------------------------------
  26.  
  27.  
  28. <select name="frmPicCat" class="boxad" id="frmPicCat">
  29. <option selected>Select </option>
  30.  
  31. <?php $query = ("SELECT * FROM pictures WHERE catid = 30");
  32. $result = mysql_query($query);
  33. while($field = mysql_fetch_array($result)) { ?> <option value=""> <?php echo $field['name']; ?></option>
  34.  
  35.  
  36. <?php } ?>
  37. </select>
  38.  
  39. <?php } ?>
Add Comment
Please, Sign In to add comment