WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : db2tab.php - Simple scripts to access IBM DB2 Universal DataBase tables through PHP ODBC funtions.
Categories : Databases, PHP, ODBC Update Picture
Alessandro Grigiante
Date : Mar 10th 2000
Grade : 4 of 5 (graded 3 times)
Viewed : 15025
File : db2tab.tar.gz
Images : No Images for this code example.
Search : More code by Alessandro Grigiante
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<HTML>
<BODY TEXT=#FFFFFF BGCOLOR=#000050>
<HEAD>
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
</HEAD>
<!-- db2tab.php ---->
<!-- Purpose: Simple scripts to access IBM DB2 Universal DataBase tables through ---->
<!-- PHP ODBC funtions. ---->
<!-- Author: Alessandro Grigiante (ale@teknoline.it) ---->
<!-- Copyright: Copyright (C) 2000 Alessandro Grigiante. Subject to the ---->
<!-- GNU Public License (GPL) - may be used and modified at will, ---->
<!-- so long as license and all attribution is retained. ---->
<!-- Disclaimer: Like most free software, no warranty is expressed or implied. ---->
<!-- If it doesn't work, feel free to fix it yourself. ---->
<!-- Tested on: AIX 4.3.0.0 - IBM DB2 5.3 UDB - Apache/1.3.6 (Unix) - PHP/3.0.11 ---->
<!-- Solaris 2.7 - IBM DB2 6.1 UDB - Apache/1.3.11 (Unix) - PHP/4.0b3 ---->
<!-- Available on: ftp://ftp.teknoline.it/pub/php/db2tab.tar.gz ---->
<!-- ---->
<CENTER>
<FONT SIZE=+2>DB2Tables - List IBM DB2 Universal Data Base Tables with PHP</FONT><BR>

<?
include "db2tab.inc";

/* ******* Remember to set proper DB2INSTANCE environment variable
* Run /your_db2user_home_dir/sqllib/db2profile before to start Apache.
* IBM DB2 connection with PHP3/4 over ODBC.
* by ale @Mon Sep 13 21:45:29 DFT 1999
*/

$select = "SELECT TABNAME ";
$from = "FROM SYSCAT.TABLES ";
$where = "WHERE TABSCHEMA='$tabschema'";

/*** Connect to database................. ***/
$c = odbc_pconnect($dbname,$user,$password);

if ($c > 0) {
$query = $select . $from . $where;

/* Warning.................
* Use odbc_exec instead of odbc_prepare + odbc_execute
* no bugs and faster.
*/
$res = odbc_exec($c, $query);
$nc=odbc_num_fields($res);
$nr=odbc_num_rows($res);

echo "<TABLE BORDER=1><TD BGCOLOR=#888888>\n";
/* Call to create multi switch POST form in HTML */
create_form3($res,$nr,$nc,$act,$c);
echo "</TABLE>\n";

/* Free all resources and close connection */
odbc_free_result($res);
odbc_close($c);

} else {
echo "BAD CONNECTION Number $c \n";
echo "--> $php_errormsg \n";
}

?>
</CENTER>
</BODY>
</HTML>



A set of functions sitting on top of the abstraction layer that makes it a little easier to do SQL stuff. Documentation is within
Categories : Databases, ODBC, Complete Programs, PHP
ADODB Database Wrapper Abstraction Library for PHP: MySQL, MSSQL, Oracle, Interbase,ODBC, Microsoft Access and FoxPro.
Categories : PHP Classes, Databases, PHP, General SQL, ODBC
Logs hits to any page which includes it. Automatically utilises page access information left behind by PHP/FI2.0.
Categories : Databases, PHP, mSQL, Databases
Recordset Class like ADO Recordset (plus DataBase Splitting feature) using ODBC functions
Categories : PHP Classes, ODBC, Databases, PHP
This program allows you to upload an ODBC ressource - i.e. an MS-Access database to a MySQL server.
Categories : Databases, MySQL, Complete Programs, PHP, Databases
How to connect to MS SQL 6.x+ database server via ODBC functions of PHP3 compiled with iODBC and Openlink drivers under Linux.
Categories : Databases, MS SQL Server, PHP, ODBC
Dynamic WHERE CLAUSE depending on number of FORM FIELDS
Categories : ODBC, General SQL, PHP, Complete Programs, Databases
How to access MS Excel spread sheets from PHP
Categories : PHP, Excel, ODBC, Databases
Modification of Shane Caraveo's guestbook. Uses ODBC...some code modifications
Categories : ODBC, Databases, Complete Programs, PHP
This is Yet Another Sql Abstraction Library. Include it in your script and you can use the most important SQL functions without worrying about the SQL backend.
Categories : Databases, PHP, ODBC, MySQL, PostgreSQL
mediaCat-GTK v2.0.0 - an mp3/cd/dvd cataloging utility written in php-gtk which interfaces with mysql and ms access (or db supported by PHP's Unified ODBC Functions)
Categories : PHP, MySQL, MS Access, Utilities, Databases
Is there any way to test that the $result has null values or not without reading the field values in the results in postgre?
Categories : PostgreSQL, PHP, Databases
Complex paging with no resultset limit
Categories : PHP, MySQL, Databases, Output Control, HTML and PHP
php-gtk mysql querying tool
Categories : PHP-GTK, MySQL, PHP, Databases
Dynamically generated pop-ups (Select items)
Categories : PHP, HTML and PHP, MySQL, Databases
 Robert Rittenhouse wrote :323
Needs a minor fix to work in cases where the schema is not
the same as the login.