<?php
# connect to a DSN "MSSQLTest" with a user "cheech" and password "chong"
$connect = odbc_connect("MSSQLTest", "cheech", "chong");
# query the users table for all fields
$query = "SELECT * FROM users";
# perform the query
$result = odbc_exec($connect, $query);
# fetch the data from the database
while(odbc_fetch_row($result)) {
$field1 = odbc_result($result, 1);
$field2 = odbc_result($result, 2);
print("$field1 $field2\n");
}
# close the connection
odbc_close($connect);
?>
Group items matching
in title, tags, annotations or url
1More
Whoops! PHP Errors for Cool Kids - 0 views
The WordPress Coding Standards: Single Quotes and Double Quotes - 0 views
1More
How to use CSS with HTML? (CSS with Practical Examples- part 1 ) - 0 views
« First
‹ Previous
141 - 160 of 534
Next ›
Last »
Showing 20▼ items per page