Results 1 to 12 of 12

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Join Date: May:2005
    Location: Varna
    Posts: 290

    .
    , . :
    1) , , , .
    2) - ? , .

    ? ?




    : , - mySQL

  2. #2
    Registered User Pa3KaTaH's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 3,851
    Last edited by Pa3KaTaH; 18th July 2006 at 12:13.

  3. #3

  4. #4
    Registered User Pa3KaTaH's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 3,851
    "" SELECT

  5. #5

    Join Date: May:2005
    Location: Varna
    Posts: 290

    Talking

    Quote Originally Posted by Pa3KaTaH
    "" SELECT

    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>
    , .
    Last edited by Nedko; 7th August 2006 at 12:40.

  6. #6
    Registered 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%'
    ,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |