Re: strange problem of mysql_query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux