Pr0t0n Posted August 18, 2013 Share Posted August 18, 2013 Hi guys, I am having a problem with my old scripts I am trying to run, I have $newdb = new db; and it isnt enough. Then this code comes up with "false": $db->mysql_connect($sql) or die('Kon geen verbinding krijgen met de dbase.'); I got one other problem, I am trying to write an extended error reporter and I want a page with tabs and then one tab for each dbase I want to read the errors from. Does anyone got any tips on how to accomplish this? Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/281323-regarding-changes-with-dbase-functions/ Share on other sites More sharing options...
trq Posted August 18, 2013 Share Posted August 18, 2013 You might want to describe one issue at a time and post some relevant code. You have provided little for us to go on. Quote Link to comment https://forums.phpfreaks.com/topic/281323-regarding-changes-with-dbase-functions/#findComment-1445703 Share on other sites More sharing options...
Pr0t0n Posted August 18, 2013 Author Share Posted August 18, 2013 (edited) Ok lets try it again then this below doesnt work now while it did before: $db = new db; $db->mysql_connect($sql) or die('Kon geen verbinding krijgen met de dbase.'); Then this is the config file which holds $sql: <?php $sql['host'] = 'nextgen.co.nf'; $sql['user'] = 'user'; $sql['pass'] = 'password'; $sql['dbase'] = '1458015_error'; ?> Hope this is better. PS: I only changed username and password the variables they hold are correct. Edited August 18, 2013 by Pr0t0n Quote Link to comment https://forums.phpfreaks.com/topic/281323-regarding-changes-with-dbase-functions/#findComment-1445706 Share on other sites More sharing options...
trq Posted August 19, 2013 Share Posted August 19, 2013 Can wee see the relevant parts of this db class? Quote Link to comment https://forums.phpfreaks.com/topic/281323-regarding-changes-with-dbase-functions/#findComment-1445726 Share on other sites More sharing options...
Pr0t0n Posted August 19, 2013 Author Share Posted August 19, 2013 which relevant parts do you mean? the object at start is the problem. Quote Link to comment https://forums.phpfreaks.com/topic/281323-regarding-changes-with-dbase-functions/#findComment-1445862 Share on other sites More sharing options...
Barand Posted August 19, 2013 Share Posted August 19, 2013 which relevant parts do you mean? The methods you're calling would be a start Quote Link to comment https://forums.phpfreaks.com/topic/281323-regarding-changes-with-dbase-functions/#findComment-1445865 Share on other sites More sharing options...
Pr0t0n Posted August 19, 2013 Author Share Posted August 19, 2013 I am getting confused, I understand you want to see the relevant methods but its build-in by PHP. Quote Link to comment https://forums.phpfreaks.com/topic/281323-regarding-changes-with-dbase-functions/#findComment-1445887 Share on other sites More sharing options...
Pr0t0n Posted August 19, 2013 Author Share Posted August 19, 2013 I think PHP is using this package: http://pear.php.net/package/DB/redirected Quote Link to comment https://forums.phpfreaks.com/topic/281323-regarding-changes-with-dbase-functions/#findComment-1445888 Share on other sites More sharing options...
AbraCadaver Posted August 19, 2013 Share Posted August 19, 2013 (edited) I think PHP is using this package: http://pear.php.net/package/DB/redirected It doesn't look like it, and I've never seen anything like it. Maybe search the files that are included and see if they have comments telling what class it is. Most likely someone just wrote a class wrapper for mysql functions. Edited August 19, 2013 by AbraCadaver Quote Link to comment https://forums.phpfreaks.com/topic/281323-regarding-changes-with-dbase-functions/#findComment-1445890 Share on other sites More sharing options...
Solution Pr0t0n Posted August 20, 2013 Author Solution Share Posted August 20, 2013 Well I digged further into mysqli that php.net recommended and with theire class called mysqli it actually worked so I guess I gotta update my scripts with new classes. But thanks anyways! Quote Link to comment https://forums.phpfreaks.com/topic/281323-regarding-changes-with-dbase-functions/#findComment-1445900 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.