不知道为什么这不起作用。我假设这是因为我正在获取一个数组,但不确定为什么会阻止它。
无论如何,这是代码;
<?php
include ("../database.php");
$result = mysql_query("SELECT * FROM gigs WHERE artisturl='$artistname'");
while($row = mysql_fetch_array($result)){
if (empty($row['gigname'])){echo '<p2>'.$row['artistname']. 'has not posted any gigs yet. Check back later.</p2>';}
else {
echo $row['gigname'].$row['venue'].$row['lineup'].$row['date'].$row['time'].$row['price'].$row[' purchase'].'<br><br>';}}?>