Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (41 sloc) 1.18 KB
<!-- Header -->
<header id="header">
<!-- Search -->
<section id="search" class="alt">
<form method="post" action="#">
<input type="text" name="query" id="query" placeholder="Search" />
<!-- Section -->
<section id="eventResults">
<header class="major">
<h2>Your Sponsorships</h2>
<div id="search-results" class="posts">
require_once 'initDB.php';
$sql = 'SELECT, events.description FROM events INNER JOIN sponsorships WHERE events.eventID = sponsorships.eventID AND sponsorships.userID = '.$_SESSION["userID"].'';
$retval = mysqli_query($conn,$sql);
if(! $retval ) {
die('Could not get data: ' . mysqli_error($conn));
echo '<p>Error: Could not get data </p>';
while($row = mysqli_fetch_assoc($retval)) {
echo "<article>
<a href='#' class='image'><img src='images/pic01.jpg' alt='' /></a>
<ul class='actions'>
<li><a href='#' class='button'>More</a></li>
You can’t perform that action at this time.