Jump to content

What happened to PHP all of a sudden? mysql_query() problem


ypkumar

Recommended Posts

arrrggh i sit here and write a descriptive information about my problem and tried to upload a file, the write up's all gone!

grrr...... ill do it the simple way

 

my system:

Windows Vista

XAMPP Lite 1.7.3

PHP Version 5.3.1

mysqlnd 5.0.5-dev - 081106 - $Revision: 289630 $

mysql/mysqli 5.1.41

 

my application:

PHP MySQL based banking application, where user can register, login, logout, add remove and edit friends accounts, transfer funds, change password, change personal info, get transaction details etc. etc.,

 

my problem:

i rewrote the application conforming to OOP concepts, and I separated the functions by its behaviour (authenciation, fetching, dbo etc).

when i wrote a function for transferring funds from account a to account b, i recieve an error.

Fatal error: Call to undefined function mysql_query() in C:\xampplite\htdocs\mybank\classes\func.inc  on line 197

- i did not upgrade/update either PHP nor SQL, and yes, SQL is enabled on my system and works fine with other functions (register,change pasword etc.) i wrote for the same appilcation.

 

FOR THOSE WHO WANT TO HAVE A LOOK, i have uploaded the class file here : http://pastebin.com/PGaXgmkC

 

im not sure whats causing the error, when i remove the code to transfer the funds, it works like charm, but at the same time, the code which is removed is not wrong, it works without errors too!

 

can anyone please look into this issue and let me know? im dying to get this one fixed since 2 days!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.