php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53059 When we put a numeric value in "Like" query, there is no result
Submitted: 2010-10-14 02:40 UTC Modified: 2010-10-14 05:15 UTC
From: vixio_calm at yahoo dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.14 OS: Windows XP sp2
Private report: No CVE-ID: None
 [2010-10-14 02:40 UTC] vixio_calm at yahoo dot com
Description:
------------
//I have a script like this, when I put '%1%', there is no result, even in view_userstructure there are a data that use '1'.



Test script:
---------------
$query=mysql_query("SELECT * FROM view_userstructure WHERE SECTIONNAME LIKE '%1%'")or die(mysql_error());
$row_number = mysql_num_rows($query);

Expected result:
----------------
I want to get a result like when I run that query in phpMyAdmin


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-14 04:45 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-10-14 04:45 UTC] aharvey@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2010-10-14 05:15 UTC] vixio_calm at yahoo dot com
Oke aharvey@php.net,
Sorry for this inconvenience.
My problem is about a different database connection.
:lol, Sorry I didnt chek it before.
I found my problem yet.
Thnx for your attention.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 10:01:32 2025 UTC