Jump to content

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


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!

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.