php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4356
Submitted: 2000-05-09 11:08 UTC Modified: 2000-05-21 17:11 UTC
From: mutheos at yahoo dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0 Release Candidate 1 OS: linux
Private report: No CVE-ID: None
 [2000-05-09 11:08 UTC] mutheos at yahoo dot com
Warning: Supplied argument is not a valid MySQL-Link resource in /home/ucpress/public_html/poll/poll_act.html on line 14

line 14 : 

12 : $clicked = "v" . $choice;
13 : $query = "update poll set $clicked = $clicked + 1 where code = '$code'";
14 : $result = mysql_query($query,$connect);
15 : echo $query;
16 : if(!$result) {
17 :   error("QUERY_ERROR");
18 :   exit;
19 :}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-21 17:11 UTC] jimw at cvs dot php dot net
looks like the connection to the mysql database is failing in a part
of the script not provided.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 01 10:05:53 2022 UTC