Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('INCLUDE_CHECK',1);
- require "../connection.php";
- if(!$_POST['img']) die("There is no such product!");
- $img=mysql_real_escape_string(end(explode('/',$_POST['img'])));
- $postedImageExploded = explode('/', $_POST['img']);
- $imagePosted = end( $postedImageExploded );
- $img = mysql_real_escape_string($imagePosted);
- $row=mysql_fetch_assoc(mysql_query("SELECT * FROM tblsupply WHERE img='".$img."'"));
- if(!$row) die("There is no such product!");
- echo "Description: ";
- echo '<strong>'.$row['description'].'</strong>
- <br>
- Unit Cost:<strong> '.$row['unitcost'].'</strong><br>
- Remaining Balance:<strong> '.$row['quantity'].'</strong>
- <small>Drag it to your shopping cart to purchase it</small>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement