Skip to content

Instantly share code, notes, and snippets.

IN2WEBS

Block or report user

Report or block IN2WEBS

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@IN2WEBS
IN2WEBS / content.php
Last active Nov 14, 2016
WordPress theme
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>
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'];
You can’t perform that action at this time.