![]() |
|
#1
|
|||
|
|||
Accessing my database in Db2 using PHPi have a problem with my code although it looks perfectly ok but it does not create the result set i need to access my database. when i try to run it by typing localhost/test1.php it connects to the database but returns no result set and doesnt recognize my select statement.
What is worng with my code, can anyone help me pls. name of php file: test1.php PHP Code:
Last edited by admin II : 12-Mar-2008 at 05:27.
Reason: Please surround your PHP code with [php] your code [/php]
|
|||
|
#2
|
||||
|
||||
Re: problem accessing my database in Db2 using PHPThere seems to be confusion between $conn and $connection
If $conn succeeds, it is being closed immediately. (probably NOT what is intended) $connection does not appear to be set in the script anywhere, so what is db2_exec() expected to do with it? __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache / PHP problem, maybe output length? | HaganeNoKokoro | Apache Web Server Forum | 3 | 07-Aug-2008 05:42 |
| Problem with executing PHP in webpage | fdgloworm | Apache Web Server Forum | 0 | 13-Feb-2006 12:43 |
| Please help! Insert into database problem | robsmith | MySQL / PHP Forum | 1 | 24-Apr-2005 04:44 |
| accessing database records on 2 dialogs | da_cobra | MS Visual C++ / MFC Forum | 0 | 28-Feb-2005 14:32 |
| Parsing PHP code that's stored in a database. | JdS | MySQL / PHP Forum | 3 | 13-May-2004 10:15 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The