Manivannan Posted February 20, 2016 Share Posted February 20, 2016 how to fix <?php $sql_build="SELECT * FROM gallery"; $res=mysql_query($sql_build); while($row=mysql_fetch_array($res)) { ?> <div class="col-lg-3 col-md-4 col-xs-6 thumb"> <p><a class="group1 thumbnail" href="admin/client_image/<?php echo $row["name"]?>"> <img class="img-responsive" src="admin/client_image/<?php echo $row["name"]?>" height="281px" width="331px" alt="image" title="Build tech Gallery Images"> </a></p> </div> <?php } ?> gallery.php Quote Link to comment Share on other sites More sharing options...
requinix Posted February 20, 2016 Share Posted February 20, 2016 Your query failed. Use mysql_error to find out why. Quote Link to comment Share on other sites More sharing options...
benanamen Posted February 20, 2016 Share Posted February 20, 2016 Better yet, stop using functions that have been completely removed from PHP and use PDO with prepared statements. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.