Instantly share code, notes, and snippets.

View Changesdbconnect.php
<?php
// ====== Photo upload============== -->
// === img 1
if(isset($_POST['img1logo'])) {
$connect = mysqli_connect('localhost', 'root', 'root', 'CMStest') or die(mysqli_error());
$select = mysqli_query($connect, "SELECT * FROM Portfolio WHERE `id` = 4");
$deleteselect = mysqli_fetch_array($select);
$namedelete = $deleteselect['img1logo'];
View content.php
<article class="post <?php if ( has_post_thumbnail() ) { ?>has-thumbnail <?php } ?>">
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('small-thumbnail'); ?></a>
</div>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
</article>