Re: strange problem of mysql_query

From: Date: Wed, 02 Jun 2010 14:10:54 +0000
Subject: Re: strange problem of mysql_query
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-305743@lists.php.net to get a copy of this message
I am on the top of the world! Borlange University wrote:
hey, i have a sql string like below: select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and szs_guige='48B32/14-1 1/8"' and szs_tuhao='48B32 1 1/8' the problem is that using mysql_query to run this sql string returns nothing,however, i can get one record through mysql query tool. i was wondering whether the double quote 48B32/14-1 1/8" makes this trouble.
Break it down the basic of examples. show us how you... 1. connect to mysql from php 2. select your database in mysql from php 3. prepare the SQL query 4. executing said query 5. collecting/displaying the results of executed query As you can see, you gave us step 3. The problem could be in any of the other setups. -- Jim Lucas A: Maybe because some people are too annoyed by top-posting. Q: Why do I not get an answer to my question(s)? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?

« previous php.general (#305743) next »