Skip to content

Tag: php

PHP strpos() not acting as expected

I am attempting to clean up my URLS in the database, however I am literally having a brain-fart. This is PHP 101 level stuff, but I seriously cannot figure out what’s wrong with the following snip: &…

SyntaxError javascript php

This is a heart with a wishlist, I want to add the product to my wishlist. I have a syntax error in the console Uncaught SyntaxError: expected expression, got ‘}’ Dreamweaver shows me no errors <…

Query database for last modified date

I am trying to query my WordPress server to echo the date of the last modified post. In this case the database name is local and I am checking the posts table. My current code is close to what I need, it will display the date and time as Y-m-d H:i (2021-01-13 12:18) How do remove the time and display