Skip to content
Advertisement

Tag: odbc

PHP odbc_exec not returning all rows

This simple query when run in DBExplorer (a DB tool for executing raw SQL queries), returns 5 rows (contents of an invoice). Everything is setup in such a way that an invoice may contain multiple goods of the same ID (but with different prices and procurement prices, printing names – e.g. bucket-white, bucket-blue, bucket-red, etc). Each of the items gets

Create a DSN for the function odbc_connect for Oracle

The information I have concerning the Oracle database O need to connect to using PHP through EasyPHP is the following: user, password, host, port, service. I’m new to ODBC. I tried to use the function odbc_connect, but I keep getting errors simply because I don’t know how to make a DSN. I tried using this: But I don’t know what

Passing an operator as a parameter to odbc_execute()

I am taking my first tentative steps into prepared statements (and falling flat on my face). Previously, I built the following from $_GET and echoed it back – the code was working fine and it returned what I expected from my simple test database. and when I try to code it using a prepared statement, even if I don’t use

Advertisement