Results 1 to 12 of 12
Hybrid View
-
18th July 2006 10:07 #1
-
18th July 2006 12:12 #2
-
18th July 2006 13:02 #3
-
18th July 2006 13:08 #4
-
18th July 2006 13:18 #5
Join Date: May:2005
Location: Varna
Posts: 290
Originally Posted by Pa3KaTaH
E :
, .Code:<html><head><title>only for test purposes!</title></head><body> <meta http-equiv=Content-Type content="text/html; charset=windows-1251"> <?php $conn=@mysql_connect( "Localhost","root","") or die("<b><center> !</b></center>"); $rez=@mysql_select_db("article", $conn) or die ("<b><center> !</b></center>"); $zaiavka = "select id, code, name, saleprice from article"; /* long query */ $rez = mysql_query($zaiavka, $conn ); while ( $red = mysql_fetch_array( $rez ) ) { echo( "<b><center><tr>ID = </tr></b>" . $red["id"] . "<br>" ); echo( "<b> = </b>" . $red["code"] . "<br>" ); echo( "<b> = </b>" . $red["name"] . "<br>" ); echo( "<b> = </b>" . $red["saleprice"] . "<br></center>"); echo( "<center> _________________________________________ </centeR><br>" ); } ?> </body></html>
-
18th July 2006 14:05 #6Registered User
Join Date: May:2006
Location: Bulgaria
Posts: 9
,Code:$wordSearched = "blabla"; .... $zaiavka = "select id, code, name, saleprice from article WHERE code LIKE '%$wordSearched%' OR name LIKE '%$wordSearched%'




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in