MySQL Forums
Forum List  »  PHP

Re: Warning: Wrong parameter count for mysql_query()
Posted by: Peter Brawley
Date: May 12, 2008 10:06PM

James,

Again, first connect...

$conn = mysql_connect( host, username, password ) or die( mysql_error() );

then select the database...

mysql_select_db( yourdbname ) or die( mysql_error() );

then the query...

$result = mysql_query( querystring, $conn ) or die( mysql_error() );

then process the query results.

If the manual page is unclear to you, read it again. Study and run the examples.

PB

Options: ReplyQuote


Subject
Written By
Posted
Re: Warning: Wrong parameter count for mysql_query()
May 12, 2008 10:06PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.