Search found 92 matches

by ScTech
Tue Aug 27, 2013 3:05 pm
Forum: PHP
Topic: Temporary link Download
Replies: 30
Views: 11300

Re: Temporary link Download

One small problem. Where it is validating with ctype_digit, you are using echo which won't stop it from continuing. You should set that as $errors instead of echoing it.

Have you edited file_list.php since? What does the database show when you leave it blank and when you insert a number?
by ScTech
Mon Aug 26, 2013 6:40 pm
Forum: PHP
Topic: Temporary link Download
Replies: 30
Views: 11300

Re: Temporary link Download

Beat me to it Temor I should also mention that you should look into checking file extensions and only allow a few. Any files that can execute code like .php,.html.py.js etc. you should filter out because they can potentially break into your file system, or worse. To make it more simple because there...
by ScTech
Mon Aug 26, 2013 1:33 pm
Forum: PHP
Topic: Temporary link Download
Replies: 30
Views: 11300

Re: Temporary link Download

You would just check if they left it blank. However, you need more validation for what you're doing because you aren't checking that what they're entering is actually a number. To accomplish what you're trying to do, first make sure that if they enter something that it's a number so it won't cause i...
by ScTech
Sun Aug 25, 2013 1:32 am
Forum: Tutorials
Topic: PHP Tutorial: Register and Login (Split)
Replies: 17
Views: 4987

Re: PHP Tutorial: Register and Login (Split)

Yes. That is causing an SQL error which explains why your data is not inserting. Change it to user_password.
by ScTech
Sun Aug 25, 2013 12:15 am
Forum: Tutorials
Topic: PHP Tutorial: Register and Login (Split)
Replies: 17
Views: 4987

Re: PHP Tutorial: Register and Login (Split)

In the add_user function query, is user-password actually supposed to be user_password?
by ScTech
Sat Aug 24, 2013 11:50 pm
Forum: JavaScript
Topic: JQuery scrollTop issues for android
Replies: 5
Views: 3075

Re: JQuery scrollTop issues for android

Yea, but its ok. So I've figured out the issue. The css does not get executed before the scroll, rather, setting overflow back to auto resets it to scroll back to the top. I'm completely stumped as for what to do now. EDIT: The issue seems to be the android browser. FireFox for android has a problem...
by ScTech
Sat Aug 24, 2013 8:55 pm
Forum: JavaScript
Topic: JQuery scrollTop issues for android
Replies: 5
Views: 3075

Re: JQuery scrollTop issues for android

Yes it appears that without knowing the distance left to scroll, that method is impossible to use for my purposes I'm going to experiment with it a bit more and let you know how it goes. If there are any more suggestions I'd love to try them. PS: It's EG. It was an old name based on a site I made bu...
by ScTech
Sat Aug 24, 2013 8:50 pm
Forum: Tutorials
Topic: PHP Tutorial: Register and Login (Split)
Replies: 17
Views: 4987

Re: PHP Tutorial: Register and Login (Split)

You shouldn't mix functions into the page. In the long run it just makes things more cluttered and disorganized. I noticed that you are missing an "=" in between your name and their value on the username and email fields. Since you aren't displaying the error from the processing, this coul...