var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: ORDER BY value of index - not position
I have a MySQL query
I want it returned as
SELECT `Id`, `Info`
WHERE `Id` = 5 OR `Id` = 1 OR `Id` = 3
Im not looking for position - position looks at the order of Id - Im looking for the value of Id.
Is there any way to accomplish this ? Or would I need to execute 3 separate queries ?
where id in (5,1,3)
Cannot believe I skipped this from the manual.
Thanks r937 - you've always been prmopt and helpful. Your time here is truly appreciated.
Strange though - it works in phpMyAdmin but not my PHP script
FUNCTION db1.FIELD does not exist
I have in m script
I exectued what was inbetween <!-- and --> and worked !
$Res = mysql_query($SQL) or die("\n<!--$SQL-->\n".mysql_error());
Last edited by anjanesh; 03-05-06 at 08:08.