Results 1 to 3 of 3

Thread: web

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Aug:2006
    Location: sofia
    Posts: 2

    web

    .
    web . ODBC. . .

  2. #2
    Registered User entium's Avatar
    Join Date: May:2003
    Location:
    Posts: 1,426
    <?
    # connect to a DSN "mydb" with a user and password "marin"
    $connect = odbc_connect("mydb", "marin", "marin");



    # query the users table for name and surname
    $query = "SELECT name, surname FROM users";



    # perform the query
    $result = odbc_exec($connect, $query);



    # fetch the data from the database
    while(odbc_fetch_row($result)){
    $name = odbc_result($result, 1);
    $surname = odbc_result($result, 2);
    print("$name $surname\n");
    }



    # close the connection
    odbc_close($connect);
    ?>
    EP43-DS3|E5200@3.33|ASUS EN9800GT HB /HTDI/ 512MB|2X2GB 800MHZ CL5 A-DATA|WD2500JB|NEC 4750A|BELINEA 1980S2

  3. #3
    Registered User
    Join Date: Aug:2006
    Location: sofia
    Posts: 2
    . . .

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 |