![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: How can I get just one row from selected column?
From: Gazelem <usenet@enhanced.org>
Date: Wed Jan 04 2006 - 00:27:09 CET
Leszek wrote:
The query is wrong among other things.
proper: Select $kolumna from $tabela limit 1
You can also use an offset, reference the manual at
Another thing is, if you are *always* going to want just one result, not
$wynik=mysql_query($zapytanie);
notice the lack of using a "while" statement, which is not appropriate for 1
-Dave
|