<?php function fetch_user_info($name){ $sql = "SELECT 'bname' AS 'name', 'email' AS 'email', 'website' AS 'website', FROM 'cInfo' WHERE 'name' = {$name}"; $result = mysql_query($sql); return mysql_fetch_assoc($result); } ?>but I'm getting "Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/content/core/user.inc.php on line 15" which is the return line.
Any ideas?
Thanks!