PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I was assigned to setup a new page in a site using the codeigniter framework however because I don't know how to use it and also because the code is badly messed up I wanted to inject my own coding ways.
I am trying to do a simple query in the database (not using the framework way).
The same thing happens, Code Igniter displays all my errors with error_reporting(E_ALL); I can't see the true error, I just get the generic error message...
Sindarin wrote:But eww, isn't there a way to do it a more non-codeigniter way?
sure, you can - just fix your code
mysql_fetch_row — Get a result row as an enumerated array
Description
array mysql_fetch_row ( resource $result )
Returns a numerical array that corresponds to the fetched row and moves the internal data pointer ahead.
You can, but I would advice you not to do it - I suppose that the rest of the project is using actively the CI framework, so mixing your code with its code might be a PITA in the future.
Just imagine that the owners decide to move to PostgreSQL instead of MySQL
There are 10 types of people in this world, those who understand binary and those who don't
Actually the site is really BAD coded, I've never seen such bad coding my entire webdev career. 40% of the site is codeigniter, 20% is procedural coding in notepad and rest is Dreamweaver mess...