Search found 18 matches

by benanamen
Mon Jun 18, 2018 9:40 pm
Forum: PHP - Code
Topic: api works in dev and test but not on Network Solutions...
Replies: 4
Views: 20790

Re: api works in dev and test but not on Network Solutions..

"somethinggoeshere" should be a valid API key. Are you using one?
by benanamen
Sat Mar 24, 2018 1:03 pm
Forum: PHP - Code
Topic: checking the value exist in db and return alert
Replies: 4
Views: 9798

Re: checking the value exist in db and return alert

The logic is wrong. You are creating a Race Condition. Do not check if a user already exists. Set a unique constraint on the appropriate field(s), attempt the insert and capture the duplicate error if any.
by benanamen
Sat Feb 17, 2018 1:21 pm
Forum: PHP - Code
Topic: mysql connect not connecting
Replies: 13
Views: 19647

Re: mysql connect not connecting

Better yet, use PDO. Here is a tutorial to get you going.
https://phpdelusions.net/pdo
by benanamen
Wed Jan 03, 2018 7:23 pm
Forum: PHP - Code
Topic: ban certain browers
Replies: 4
Views: 7996

Re: ban certain browers

What is the REAL problem you are trying to solve?
by benanamen
Wed Dec 20, 2017 6:14 pm
Forum: PHP - Code
Topic: can any body help me with the below code correct code
Replies: 3
Views: 9215

Re: can any body help me with the below code correct code

Problem 1. You create $username and then don't use it. Problem 2. You have a variable $memberID that comes out of nowhere that you do not use. Problem 3. The table transfer does not have a column named or spelled username Problem 4. You never ever put variables in a query. You need to use Prepared S...
by benanamen
Tue Dec 19, 2017 11:38 am
Forum: General Discussion
Topic: Desperately seeking software developers for educational soft
Replies: 2
Views: 7441

Re: Desperately seeking software developers for educational

I am a Software Engineer with 25+ years experience. Please provide a summary of what you are looking for and your budget for the project.
by benanamen
Thu Dec 14, 2017 5:01 pm
Forum: PHP - Code
Topic: Php code for sending email brings an error
Replies: 3
Views: 5069

Re: Php code for sending email brings an error

Wait, I got this....

Forms do not send emails. They submit data. The mail function sends emails. http://php.net/manual/en/function.mail.php
by benanamen
Mon Dec 04, 2017 6:51 pm
Forum: PHP - Code
Topic: hit counter and more
Replies: 5
Views: 5901

Re: hit counter and more

Aside from your question, the code you posted is obsolete and has been completely removed from Php. You need to use PDO https://phpdelusions.net/pdo.
by benanamen
Wed Nov 29, 2017 12:34 pm
Forum: Databases
Topic: Dynamic Drop down With Non selectable items
Replies: 2
Views: 11096

Re: Dynamic Drop down With Non selectable items

@requinix, Am I misunderstanding you? This is perfectly valid. <select> <optgroup label="England"> <option value="avon">avon</option> </optgroup> <optgroup label="Northern Ireland"> <option value="Antrim">Antrim</option> </optgroup> <optgroup label="Scotl...
by benanamen
Sun Nov 26, 2017 9:15 pm
Forum: PHP - Code
Topic: Why I See Blank Page After Submitting Form And Why Echoing F
Replies: 3
Views: 5867

Re: Why I See Blank Page After Submitting Form And Why Echoi

When you have an error you set a session but then kill the script, thus the blank page.
by benanamen
Thu Nov 16, 2017 10:27 pm
Forum: Databases
Topic: proble with the trigger in phpmyadmin
Replies: 2
Views: 11949

Re: proble with the trigger in phpmyadmin

Looks like you're missing semi-colons.
by benanamen
Sun Nov 12, 2017 12:30 am
Forum: Databases
Topic: how to push data from html grid to mysql?
Replies: 1
Views: 12783

Re: how to push data from html grid to mysql?

Hopefully you have learned what you need to know by now. For others running across this post, the OP has pretty much done everything you could possibly do wrong in this code. Problems include using dangerous, obsolete mysql code that has been completely removed from PHP, depending in the name of a b...
by benanamen
Sun Nov 05, 2017 8:45 pm
Forum: PHP - Code
Topic: I Need help with converting mysql_escape_string() into mysql
Replies: 13
Views: 13084

Re: I Need help with converting mysql_escape_string() into m

There is so much that needs to be changed that it would end up being a re-write. You cannot just add an i and make it mysqli. It would also be best to use PDO. If you decide to try this on your own, study this tutorial first. https://phpdelusions.net/pdo I understand if you cannot afford to hire som...
by benanamen
Sun Nov 05, 2017 7:36 pm
Forum: PHP - Code
Topic: I Need help with converting mysql_escape_string() into mysql
Replies: 13
Views: 13084

Re: I Need help with converting mysql_escape_string() into m

This is not a modification or conversion. This will require a complete re-write of your script. You should probably make a post in the "for hire" section.