Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dev:odbc:examples:php_select [2009/12/06 07:01]
tdo created
dev:odbc:examples:php_select [2016/06/28 22:38] (current)
Line 2: Line 2:
 <​html><​div align="​center"><​span style="​color:​red">​DRAFT</​span></​div></​html>​ <​html><​div align="​center"><​span style="​color:​red">​DRAFT</​span></​div></​html>​
 ====== PHP ODBC Simple Select ====== ====== PHP ODBC Simple Select ======
 +^ [[dev:home | Dev ]] ^ [[dev:​odbc:​examples:​simpleselect | C++ ]] ^ [[dev:​odbc:​examples:​csharp_simple_select |C# ]] ^ [[dev:​jdbc:​examples:​simpleselect | Java ]] ^ [[dev:​odbc:​examples:​php_select | PHP ]] ^
 +===== Quick Notes =====
 +  * Use a System ODBC DataSource
 +===== PHP Sample Code =====
 +
 <code PHP> <code PHP>
-<​!DOCTYPE html PUBLIC "​-//​W3C//​DTD XHTML 1.0 Transitional//​EN"​ "​http://​www.w3.org/​TR/​xhtml1/​DTD/​xhtml1-transitional.dtd">​+<​!DOCTYPE html PUBLIC "​-//​W3C//​DTD XHTML 1.0 Transitional//​EN"​ 
 +      ​"​http://​www.w3.org/​TR/​xhtml1/​DTD/​xhtml1-transitional.dtd">​
 <html xmlns="​http://​www.w3.org/​1999/​xhtml">​ <html xmlns="​http://​www.w3.org/​1999/​xhtml">​
 <​head>​ <​head>​
Line 12: Line 18:
 <?php <?php
 echo "PHP Omnidex OBDC Simple Select";​ echo "PHP Omnidex OBDC Simple Select";​
-//$conn=odbc_connect('​Driver={DISC OMNIDEX OdxNet Driver};​DataSource1','',''​);​ +$conn=odbc_connect('​OdxSystemTest','',''​);​ // had to use system datasource
-$conn=odbc_connect('​DataSource1','',''​);​ // had to use system datasource+
 if (!$conn) if (!$conn)
   {exit("​Connection Failed: " . $conn);}   {exit("​Connection Failed: " . $conn);}
 
Back to top
dev/odbc/examples/php_select.1260082887.txt.gz · Last modified: 2016/06/28 22:38 (external edit)