Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mysql] jak zamienic wartosc w zapytaniu
AndyPSV
post 6.11.2010, 06:10:13
Post #1





Grupa: Zarejestrowani
Postów: 393
Pomógł: 5
Dołączył: 6.02.2003
Skąd: The.Luciferian.Doctrine.p
df

Ostrzeżenie: (30%)
XX---


Jak zrobic:

  1. q('SELECT id,id_u,amount,rate FROM `'.PRFX.'deals` WHERE sell = "'.$curr[$tab[$l2]]['t'].'" AND buy = "'.$curr[$tab[$l1]]['t'].'" AND date_end = "'.DATETIME_NO.'" ORDER BY <HERE>rate</HERE>, date ASC');

<HERE>if(rate == 0) rate = 3.1324;</HERE

zrobilem

  1. q('SELECT id,id_u,amount,rate FROM `'.PRFX.'deals` WHERE sell = "'.$curr[$tab[$l2]]['t'].'" AND buy = "'.$curr[$tab[$l1]]['t'].'" AND date_end = "'.DATETIME_NO.'" ORDER BY replace(rate,"0","'.api::rate($curr[$tab[$l2]]['t'],$curr[$tab[$l1]]['t']).'"), date ASC');


Ten post edytował AndyPSV 6.11.2010, 06:07:36
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 31.07.2025 - 06:33