"..not a valid MySQL result resource"

wxdqz

New Member
I've been at this for over an hour.. maybe I'm just sleepy, but could someone please tell me what's wrong with this before I go crazy?

<?php
mysql_connect('localhost', 'quicksilver', '[removed]') || die("Failed to connect to database.");
mysql_select_db('quicksilver') || die("Failed to select database.");

$artq = mysql_query("SELECT title, author, email FROM qs_art WHERE id='p0043'");
$artrec = mysql_fetch_array($artQ);

echo "?<a href=http://www.phpbuilder.com/board/archive/index.php/\"art.php?type=photo&id=p0043\"><strong>$artrec[title]</strong></a>, a photo by <a href=\"mailto:$artrec\">$artrec[author]</a><br>
";

mysql_close();
?>

I get "Warning: Supplied argument is not a valid MySQL result resource in D:\Documents\Websites\Quicksilver/test.php on line 6"

Thanks for any help...
 
Top