Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pervasive SQL w/ PHP

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi! I am currently learning how to use PHP with a pervasive SQL 2000 Database. I can log on correctly to the databse using the ODBC connection, but I can't seem to be able to create tables for some odd reason. Here is the snippet of code:

/***test.php***/

<?php

$conn = odbc_connect(&quot;ABS&quot;,&quot;&quot;,&quot;&quot;);

$sql = &quot;CREATE TABLE users (username varchar(64) password varchar(64))&quot;;
$res = odbc_exec($conn, $sql);
?>


I am using Apache 2.0.36 and PHP 4.21

Any help is greatly appreciated!

Sincerely,
André LeFort
 
Well, I have conquered the best all by myself! Wow, what a battle! Thanks to all!

Sincerely,
André LeFort
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top