Search found 6252 matches

by Benjamin
Thu Sep 29, 2022 12:30 pm
Forum: PHP - Code
Topic: php mssql help
Replies: 1
Views: 58

Re: php mssql help

Use the following line to turn on display errors, so you can see what the error is:

Code: Select all

ini_set('display_errors', 1);
by Benjamin
Wed Aug 24, 2022 6:00 pm
Forum: General Discussion
Topic: I hope this forum never dies
Replies: 2
Views: 937

Re: I hope this forum never dies

It's been a long time! Nice to see you in here :)
by Benjamin
Thu Aug 18, 2022 2:03 pm
Forum: PHP - Code
Topic: error: function fetch_all()
Replies: 2
Views: 470

Re: error: function fetch_all()

Your database query is failing most likely. You aren't passing any parameters to the prepare method.
by Benjamin
Sat Jul 09, 2022 9:02 am
Forum: PHP - Code
Topic: How do I add a lookup field to this code
Replies: 2
Views: 396

Re: How do I add a lookup field to this code

Check the output of the $tsql variable around line 121 to see what conditions are being triggered. If you still need help, post that query here, in addition to the output of:

Code: Select all

echo '<pre>' . print_r($_POST, true) . '</pre>';'
by Benjamin
Thu Feb 24, 2022 1:01 am
Forum: Job Hunt
Topic: PHP Developers - Online
Replies: 1
Views: 1105

Re: PHP Developers - Online

# whois serverprodigy.com
No match for domain "SERVERPRODIGY.COM".
>>> Last update of whois database: 2022-02-24T07:00:22Z <<<
by Benjamin
Wed Feb 23, 2022 1:31 pm
Forum: Databases
Topic: Increase max database connections
Replies: 1
Views: 2297

Re: Increase max database connections

I don't understand why you would ever need that many simultaneous connections. Even 1000 would be a lot for a high traffic site.
by Benjamin
Sat Jan 22, 2022 4:50 pm
Forum: PHP - Code
Topic: Duplicate Form Submissions
Replies: 3
Views: 1717

Re: Duplicate Form Submissions

Hmm, perhaps remove the this.form.submit(); portion. In your browser console you should be able to check for any errors, and also check to see what was posted.
by Benjamin
Sat Jan 22, 2022 12:37 pm
Forum: PHP - Code
Topic: Duplicate Form Submissions
Replies: 3
Views: 1717

Re: Duplicate Form Submissions

Add this code to your submit button, it will disable it when it is clicked the first time.

onClick="this.form.submit(); this.disabled=true; this.value='Sending…'"
by Benjamin
Wed Dec 22, 2021 9:22 pm
Forum: PHP - Code
Topic: Why does this problem exist? mysqli not working
Replies: 7
Views: 5011

Re: Why does this problem exist? mysqli not working

Try uncommenting this line in your configuration file, and ensure the path is correct:

extension_dir = "C:\software\php\dist\ext"
by Benjamin
Wed Dec 22, 2021 6:52 pm
Forum: PHP - Code
Topic: Why does this problem exist? mysqli not working
Replies: 7
Views: 5011

Re: Why does this problem exist? mysqli not working

What is the error message?
by Benjamin
Sat Dec 18, 2021 8:22 pm
Forum: PHP - Code
Topic: Looking for some help
Replies: 1
Views: 1229

Re: Looking for some help

Line 57 should be:

Code: Select all

if ($mysqli->query($query) === TRUE)
by Benjamin
Sat Dec 18, 2021 11:02 am
Forum: PHP - Code
Topic: Reading book called the joy of php
Replies: 1
Views: 1248

Re: Reading book called the joy of php

Line 57 is missing a )
by Benjamin
Thu Dec 02, 2021 11:08 am
Forum: PHP - Code
Topic: 500 Server Error Help
Replies: 1
Views: 1782

Re: 500 Server Error Help

It's probably the "php_value max_input_vars 2000" line. Remove that.