<?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);
?>
2016: Meteor JS and Apollo: How to write to your MySQL Database | Project Ricochet - 3 views
7More
2013-11 : Why You Should Never Use MongoDB | Sarah Mei, blog post - 10 views
MongoDB - Geospatial Queries « My Adventures in Coding - 0 views
Spring Data - Part 4: Geospatial Queries with MongoDB | codecentric Blog - 0 views
1More
Convert your static website to dynamic website - 0 views
« First
‹ Previous
41 - 60 of 126
Next ›
Last »
Showing 20▼ items per page