Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (!empty($_POST['submit'])) {
- $query = "INSERT INTO `cars` (`catid`)
- VALUES('')";
- mysql_query($query);
- header("Location: products.php");
- }
- ?>
- <br />
- <?php $query = ("SELECT * FROM cars WHERE id = {$_GET['id']} ");
- $result = mysql_query($query);
- while($field = mysql_fetch_array($result)) { ?>
- -------------------------------------------------------------------------------------------------
- <select name="frmPicCat" class="boxad" id="frmPicCat">
- <option selected>Select </option>
- <?php $query = ("SELECT * FROM pictures WHERE catid = 30");
- $result = mysql_query($query);
- while($field = mysql_fetch_array($result)) { ?> <option value=""> <?php echo $field['name']; ?></option>
- <?php } ?>
- </select>
- <?php } ?>
Add Comment
Please, Sign In to add comment