Originally Posted by Brian.Wynes
Warning: Wrong parameter count for mysql_query() in /home/harold/public_html/news/index.php on line 147
$sql = mysql_query("SELECT `title`,`content`,`date` FROM `news` WHERE `id` = ?", array($_GET['id']), true);
You can't do that! Look at the php function manual for mysql_query
resource mysql_query ( string $query [, resource $link_identifier = NULL ] )
You're using 3 parameters yet the function can only take two - the second being a link identifier (the resource returned from mysql_connect) which is optional. You're passing it the $_GET array instead. The function returns a resource.
The function manual on php.net is very important and will save you a lot of hassle if you learn to use it and understand what it is telling you. You can't just make up your own parameters to a function or assume its the same as another with the same name from a different language or database - you need to target the manual and actually find out how to use it accurately.
You can lookup any function by visiting this link: http://www.php.net/<function_name>