Results 1 to 3 of 3
Thread: web
Hybrid View
-
22nd February 2009 21:15 #1Registered User
Join Date: Aug:2006
Location: sofia
Posts: 2
web
.
web . ODBC. . .
-
22nd February 2009 21:36 #2
<?
# 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
-
28th February 2009 11:02 #3Registered User
Join Date: Aug:2006
Location: sofia
Posts: 2
. . .




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