Jump to content

[SOLVED] php mysql query error


sethupathy

Recommended Posts

hello guys this query gets me an error pls help i am in a rush

 

Warning: Wrong parameter count for mysql_query() on line 194

 

line 194 :

 

$result=mysql_query($query,$queryb,$queryc,$queryd,$querye,$queryf) or die("Error in query:".mysql_error());

//if ($result)

    //echo mysql_affected_rows()." row inserted into the database effectively.";

 

//  CLOSE CONNECTION --->

mysql_close($connection);

Link to comment
https://forums.phpfreaks.com/topic/55100-solved-php-mysql-query-error/
Share on other sites

You can only run one query in mysql_query(). You need to run each query separately:

 

mysql_query($query);

mysql_query($queryb);

mysql_query($queryc);

.

.

.

etc.

 

mysql_query has 1 required parameter (the query) and one optional parameter (the resource link identifier). You are using 6 parameters.

 

http://us.php.net/manual/en/function.mysql-query.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.