Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.