Image from a database that links it to another page using php mysql -
please help. created db mysql, , php page images taken db displayed. need these images, linked page. can me? here code
<?php require_once 'dbconfig.php'; <body> <div class="container"><br /> <div class="row"> <?php $stmt = $db_con->prepare('select userid, userlink, userprice, useraddress, userpic tbl_users order userid desc'); $stmt->execute(); if($stmt->rowcount() > 0) { while($row=$stmt->fetch(pdo::fetch_assoc)) { extract($row); ?> <div class="col-xs-4"> <p><img src="user_images/<?php echo $row['userpic']; ?>" class="img-rounded" width="280px" height="200px" /> </p> <p><span class="page-header" style="width: 10px"><?php echo $userprice;?></span></p> <?php echo $useraddress;?></span></p> </div> <?php } } else { ?> <?php } ?> </div> </div>
tanks
Comments
Post a Comment