Discuss Wont import values into table? in the PHP Development forum on Dev Shed. Wont import values into table? PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Time spent in forums: 17 m 20 sec
Reputation Power: 0
Wont import values into table?
So I have been stuck on this for a long time now. Thought I could use a more experienced member's help. I am trying to import my news post into my table news. I have tried a lot of things. But just so you know i'm a beginner with MySQL and have copy/pasted this code from YouTube:
Time spent in forums: 1 Month 2 Weeks 1 Day 1 h 44 m 46 sec
Reputation Power: 811
what's the concrete problem? What error messages do you get?
I mean, you can't expect us to set up a full test system for your code and then start testing in the hopes we stumble upon the same error (which we do not even know).
However, I think it might make more sense to rewrite the code than trying to fix it. It has several massive security holes, and it's generally quite ... weird.
Check the link in my signature to avoid typical mistakes like inserting variables into query strings. You should also stop copying and pasting stuff. The code looks like you merged two completely different scripts from different people. For example, you use the old MySQL extension and the new MySQLi extension at the same time, which makes absolutely no sense.
Write your own code. It won't be perfect at first, and you'll have to spend some time on it. But at least it will make sense, and you'll actually learn the language.
You should generally be careful with copy and paste in the PHP world. The internet is full of terrible PHP code and bad tutorials from clueless people. If you blindly copy that stuff, chances are you'll tear gigantic security holes into your server.