Jessica Posted November 4, 2012 Share Posted November 4, 2012 Well that's pretty much the MAIN thing PHP is used for, and there's a million tutorials showing it. There's a link in my signature that goes over debugging SQL, the manual has dozens of examples... Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390124 Share on other sites More sharing options...
codingbenn Posted November 4, 2012 Author Share Posted November 4, 2012 Well that's pretty much the MAIN thing PHP is used for, and there's a million tutorials showing it. There's a link in my signature that goes over debugging SQL, the manual has dozens of examples... my way is still alot simpler..is their anyway I could space out the information my way? Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390125 Share on other sites More sharing options...
Jessica Posted November 4, 2012 Share Posted November 4, 2012 You're right, clearly we've all been doing it wrong for a decade. Your way is clearly much simpler. Let me know when you come up with the genius new way to search, filter, and display your data, in your new simple way. Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390127 Share on other sites More sharing options...
codingbenn Posted November 4, 2012 Author Share Posted November 4, 2012 You're right, clearly we've all been doing it wrong for a decade. Your way is clearly much simpler. Let me know when you come up with the genius new way to search, filter, and display your data, in your new simple way. Im just saying atm this is easier for me.. Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390131 Share on other sites More sharing options...
Jessica Posted November 4, 2012 Share Posted November 4, 2012 How is it easier? You can't figure out how to do the thing you're trying to do? What is "easy" at the moment will not always be easy. And that's pretty obvious from the fact that it's not easy right now.   Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390142 Share on other sites More sharing options...
codingbenn Posted November 4, 2012 Author Share Posted November 4, 2012 How is it easier? You can't figure out how to do the thing you're trying to do? What is "easy" at the moment will not always be easy. And that's pretty obvious from the fact that it's not easy right now. ive decided to have the layout different now so this technique is all fine. Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390147 Share on other sites More sharing options...
Pikachu2000 Posted November 4, 2012 Share Posted November 4, 2012 No it isn't fine. It may seem to work, but it's still wrong. Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390149 Share on other sites More sharing options...
codingbenn Posted November 4, 2012 Author Share Posted November 4, 2012 No it isn't fine. It may seem to work, but it's still wrong. how is it wrong if its working how I want it? Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390155 Share on other sites More sharing options...
Pikachu2000 Posted November 4, 2012 Share Posted November 4, 2012 You have data in a SQLite database. You're using file and string functions to access it instead of the functions that are designed to work with SQLite databases. How can you possibly think it isn't wrong? Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390157 Share on other sites More sharing options...
codingbenn Posted November 4, 2012 Author Share Posted November 4, 2012 You have data in a SQLite database. You're using file and string functions to access it instead of the functions that are designed to work with SQLite databases. How can you possibly think it isn't wrong? im not using the database file anymore..just using a formatted text file Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390159 Share on other sites More sharing options...
Pikachu2000 Posted November 4, 2012 Share Posted November 4, 2012 Excellent. I find it's always best to take a large step backwards rather than learn to do something properly. Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390160 Share on other sites More sharing options...
MMDE Posted November 4, 2012 Share Posted November 4, 2012 oh thanks how do I connect to a SQLLite then? http://php.net/manual/en/book.sqlite.php Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390162 Share on other sites More sharing options...
codingbenn Posted November 4, 2012 Author Share Posted November 4, 2012 how would i achieve something like this? Quote Link to comment https://forums.phpfreaks.com/topic/270216-trouble-connecting-to-my-sql-database/page/2/#findComment-1390174 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.