You are here: Re: MySQL/PHP5 $_GET issue « PHP SQL « IT news, forums, messages
Re: MySQL/PHP5 $_GET issue

Posted by Markus Ernst on 08/09/06 15:27

mpar612 schrieb:
> J.O. Aho wrote:
>
>>mpar612 wrote:
>>
>>
>>>Now I am trying to retrieve the "isbn=987654321" using $_GET and I'm
>>>trying to make that a part of an SQL query using the following code and
>>>I constantly get a "DB Error:
>>>no such field." I could post more code if necessary, I was just trying
>>>to save space:
>>
>>"DB Error: no such field.", sound like you are trying to access a column that
>>isn't there, I do suggest you do echo out your SQL query before you do the
>>query, so that you can see that it's correct.
>>
>>
>> //Aho
>
>
> Thanks! I ran the SQL query in phpmyadmin and everything before the
> WHERE works. I also tried to print the $_GET['isbn'] and that worked.
> The two are not working together. Any ideas?
>

Is isbn a numeric kind of MySQL field? Otherwise it is necessary to
quote the value: "WHERE isbn='$isbnget'" (which is a good idea anyway).

If this does not solve your problem, you need more information. If you
use PEAR DB you can just add var_dump($rows) to get the PEAR error
message. If you don't find the error yourself, post complete error
messages here.

HTH
Markus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация