Search found 12 matches
- Mon Nov 21, 2022 7:03 pm
- Forum: mySQL & php coding
- Topic: PDOStatement::execute() Invalid datetime - but not a datetime field
- Replies: 2
- Views: 1311
Re: PDOStatement::execute() Invalid datetime - but not a datetime field
Hi there. Thank you for replying to this. I'm sorry, I was at work (doint this "from work") and didn't realize I'd gotten a notification of reply on this. I solved the problem. It was due to the database field was not accepting alphanum, but the data being sent was alphanum. so i changed t...
- Thu Oct 20, 2022 10:31 am
- Forum: mySQL & php coding
- Topic: PDOStatement::execute() Invalid datetime - but not a datetime field
- Replies: 2
- Views: 1311
PDOStatement::execute() Invalid datetime - but not a datetime field
Hello all. Hope you are well. Please have a look at this screenshot. I'm trying to fix this error, but the error doesn't make sense to me. At first, I thought I had it-- as the database field was Int, and the app is passing an alphnum string. I changed the field from int, text which didn't work, the...
- Tue Sep 13, 2022 6:50 pm
- Forum: PHP coding => General
- Topic: OAuth2 and API for WordPress
- Replies: 1
- Views: 372
OAuth2 and API for WordPress
Hi. I'm seeking guidance for learning how to create an OAuth2 secured API for WordPress. One resource, among others I've referenced: https://developer.wordpress.com/docs/oauth2/ It's a test project to demonstrate coding skill. The project instructions start by creating two WP instances in Docker con...
- Fri Sep 09, 2022 4:37 am
- Forum: Server installation and configuration
- Topic: Xdebug - Windows on LAN w/ Debian based LAMP at 10.0.0.xxx
- Replies: 3
- Views: 1480
Re: Xdebug - Windows on LAN w/ Debian based LAMP at 10.0.0.xxx
I just thought of something! I'm was able to do step-debugging from an IDE on Win w/ folders on local drive H:\Apache2\htdocs , "LAMP" on -> WSL -> Apache2 DOCUMENT_ROOT /mnt/h/Apache2/htdocs , and pointed the Windows -> some IDE location executable to E.g. H:\PHP\php.exe ...and it worked....
- Fri Sep 09, 2022 4:31 am
- Forum: Server installation and configuration
- Topic: Xdebug - Windows on LAN w/ Debian based LAMP at 10.0.0.xxx
- Replies: 3
- Views: 1480
Re: Xdebug - Windows on LAN w/ Debian based LAMP at 10.0.0.xxx
i don't know how to make the screenshot link work. feel free to delete it. Xdebug v3 - https://imgur.com/asJ6ZTE https://imgur.com/asJ6ZTE I figured as much about the debugging. I use VS Code, and tried various permutations of configurations. (there's a lot of settings i'm sure you're aware, options...
- Thu Sep 08, 2022 7:00 pm
- Forum: Server installation and configuration
- Topic: Xdebug - Windows on LAN w/ Debian based LAMP at 10.0.0.xxx
- Replies: 3
- Views: 1480
Xdebug - Windows on LAN w/ Debian based LAMP at 10.0.0.xxx
[ Xdebug ] I find it difficult to get any of the IDE's to cooperate with a step-debugging setup in my LAN LAMP dev environment. I've never tried debugging "remotely" like this before, and I'm afraid I've hit a roadblock. What do you recommend? I am doing LAMP dev work on my private LAN wit...
- Thu Sep 08, 2022 6:59 pm
- Forum: Server installation and configuration
- Topic: Laragon - Apache doesn't start - Now with solution.
- Replies: 2
- Views: 924
Re: Laragon - Apache doesn't start - Now with solution.
Sorry, this is only slightly relevant to your question, but I've not heard enough talk about Laragon. Is there a current release? I tried using it recently, but everything was pretty out of date. Pretty sure I got it from Github or a repo which i expected to be current.
- Mon Jul 11, 2022 12:24 pm
- Forum: mySQL & php coding
- Topic: get Table Alias row values - MySQL Query in PHP
- Replies: 6
- Views: 1235
Re: get Table Alias row values - MySQL Query in PHP
Eureka! I was testing that query on 2 different databases. Turns out, I didn’t update the credentials for one of the two, so doh! $wpdb was working all along.
Thank you for reading, and the reply nevertheless.
(there's a weekend i'll never get back...)
Thank you for reading, and the reply nevertheless.
(there's a weekend i'll never get back...)
- Mon Jul 11, 2022 5:12 am
- Forum: mySQL & php coding
- Topic: get Table Alias row values - MySQL Query in PHP
- Replies: 6
- Views: 1235
Re: get Table Alias row values - MySQL Query in PHP
This SQL query is is for a WordPress (WP) plugin ideally, whereby WP has it's own database abstraction, the global $wpdb . I would prefer to use $wpdb for extensibility / forward compatibility, but I can't get my SQL to work with it. Not super WP savvy yet, I regret. I couldn't get my query to work ...
- Fri Jul 08, 2022 6:37 am
- Forum: mySQL & php coding
- Topic: get Table Alias row values - MySQL Query in PHP
- Replies: 6
- Views: 1235
Re: get Table Alias row values - MySQL Query in PHP
Thank you! PDO is definitely what I needed here. Much appreciated. 

- Fri Jul 08, 2022 4:55 am
- Forum: mySQL & php coding
- Topic: get Table Alias row values - MySQL Query in PHP
- Replies: 6
- Views: 1235
Re: get Table Alias row values - MySQL Query in PHP
I'm cool w/ that, and I am familiar w/ PDO.
Thank you. I was going to ask why it's necessary to use the module, but...
I appreciate your advice, and I'll do the research. Thank you very much!

Thank you. I was going to ask why it's necessary to use the module, but...
I appreciate your advice, and I'll do the research. Thank you very much!

- Fri Jul 08, 2022 3:16 am
- Forum: mySQL & php coding
- Topic: get Table Alias row values - MySQL Query in PHP
- Replies: 6
- Views: 1235
get Table Alias row values - MySQL Query in PHP
the following SQL returns the data I need, but I don't know how to access it as I need with PHP. I can demo that the data can be used as I want as evidenced by output in a free PHP code generator by SQL Maestro, but it produces files dependent upon much more library code than I need. I simply wan...