Re: How to connect to the Pinterest API using PHP? Programming Web Development by Dani … some other people have already beat you to writing a PHP-based OAuth flow for Pinterest: * https://github.com/dirkgroenen/…pinterest-api-php/blob/master/src/Pinterest/Auth/PinterestOAuth.php * https://accreditly.io/articles/use-php-to-post-to-the…how-to-implement-pinterest-api-to-access-user-boards-in-php Good luck! How to connect to the Pinterest API using PHP? Programming Web Development by FarrisFahad … returns an error. Here is my code so far ... <?php $clientId = "xxx"; // Replace with your App ID $clientSecret… Re: How to connect to the Pinterest API using PHP? Programming Web Development by Dani Oh, it looks as if the tutorial was for the old DaniWeb API that no longer exists. The [DaniWeb Connect API](https://www.daniweb.com/connect/developers) is also OAuth-based and has some of its own documentation. Re: Contact form does not working Programming Web Development by Biiim …in the last year, so when you have a PHP server with no emailing setup the emails often fail … headache if you are not that familiar with using PHP but you can get it to work without needing…inputs so the email sending can't be abused. <?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require … Re: Contact form does not working Programming Web Development by Biiim … emails being sent out via the mail function - as the PHP server was not setup correctly and I was not an… Re: Multiple MySQL connections + transactions Programming Databases by Salem …/manual/en/mysqli.select-db.php I think the key word in all of this is &… Multiple MySQL connections + transactions Programming Databases by Dani … tails as to whether this will work. From within my PHP script, can I write to a database using a MySQL… Re: Multiple MySQL connections + transactions Programming Databases by Dani A slightly related question: Is it okay to use PHP's `mysqli::select_db()` function to switch databases in the middle … Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by Dani … using it above the fold, as long as you specify image dimensions, there should never be a CLS impact. CLS measures… to user interaction. As long as the spot for the image is carved out from the very beginning, even if the… image loads much later, no other element on the page would … Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by jkon … connection (@see [Click Here](https://web.dev/articles/browser-level-image-lazy-loading#:~:text=On%20fast%20connections%20(4G)%2C,by… hand, Firefox has the policy of starting to load the image when it is "about to become visible," and… Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by Dani I guess I don't understand why implementing `loading="lazy"` will hurt the CLS if you're only doing it for images below the fold, and always specifying image dimensions (which would ensure to never affect CLS at all)? Re: Contact form does not working Programming Web Development by webmaker Apart from doing some protection to your code, it will more than likely be your ISP not allowing the mail function to work. We have had to get an email acct with permissions allocated to each websites form by our providers. Re: Contact form does not working Programming Web Development by Dani > Emailing became more restrictive in the last year Are you referring to SPF, DKIM, and DMARC? Re: Multiple MySQL connections + transactions Programming Databases by Reverend Jim As far as I know you can connect to more than one database at a time but you require a separate connection object for each one. Since queries go through the connection object you can't run a query on more than one db at a time. It seems to me that transactions are also connection based so you would have to manually roll back a transaction on A if … Re: Multiple MySQL connections + transactions Programming Databases by Dani I am already using multiple MySQL connections throughout the project, as well as select_db() in some other places. My question specifically revolved around if anyone can explain why select_db() implicitly committed the transaction, and then when done again to return back to the initial database, it did a rollback instead of commit. Re: Multiple MySQL connections + transactions Programming Databases by Reverend Jim In that case I can't suggest anything. I've never had to update multiple databases for any of the systems I set up. Re: Multiple MySQL connections + transactions Programming Databases by toneewa You're not suppose to switch databases with a connection mid-transaction. It's by design to rollback because it considers it a change to the session context. XA Transactions can be done if you use the InnoDB storage engine. Create separate PDO connections for each database. I wonder what kind of results you get with autocommit, serializable … Re: Multiple MySQL connections + transactions Programming Databases by Dani > If the databases are on the same server and use InnoDB, you can use fully qualified table names, and write to multiple databases on a single connection. That's what I ultimately started doing instead! Thank you so much for a definitive answer to my question. How does Lazy Loading differ from traditional loading techniques? Programming Web Development by KamalDeepPareek can anyone explain Re: How does Lazy Loading differ from traditional loading techniques? Programming Web Development by Salem How about engaging with the responders on your other thread with basically the same topic? https://www.daniweb.com/programming/web-development/threads/543080/how-to-implement-lazy-loading-for-faster-web-portals Re: Is AI good in future for content writing Programming Software Development by Yenjeff AI is great for speeding up content creation, but human creativity still matters. It struggles with originality and deeper emotional storytelling, so a mix of AI and human input works best. Re: php runs a 3d object flashMovie? Programming Web Development by hostbet To embed a Flash movie (SWF file) in a PHP page, you can dynamically insert the SWF file location and …name using PHP. First, define the path and file name for the SWF… within the page. For example, you can create a PHP script like <?php $location = "path/to/swf/"; $name = "… Re: Google Maps-checkbox php mysql query to display selected fields Programming Web Development by hostbet … AJAX request is sent to the server (e.g., fetchMarkers.php), which queries the database and returns the results in JSON… How To Send MYSQL Data To An Email Programming Web Development by rasputin009 …. Please help me. Sample code is given below. ` <?php define('DB_NAME', 'XXXXXXX'); define('DB_USER', 'XXXXXXX'); define('DB_PASSWORD', '…the data date_default_timezone_set('Asia/Kolkata'); require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within… Re: How To Send MYSQL Data To An Email Programming Web Development by Dani … aside, a quick glance lets me see you are using PHP's deprecated mysql library instead of its replacement, the mysqli… absolutely want to use [real_escape_string()](https://www.php.net/manual/en/mysqli.real-escape-string.php) as so (my example code uses… Re: Json response in javascript Programming Web Development by Mr.M …, start: startDate, end: endDate}]} On my current code in my php file which gets the data from database is as follows… where I want to use this data to $.post(/myphpfile.php),{ type: "requestType", param: paramValue }, function (data, status){ //Using… send checkbox to email using phpmailer Programming Web Development by ianhaneybs …quot; class="form-check-input" value="<?php echo !empty($postData['oneway'])?$postData['oneway']:''; ?>"> …quot; class="form-check-input" value="<?php echo !empty($postData['return'])?$postData['return']:''; ?>">… Re: send checkbox to email using phpmailer Programming Web Development by Dani …="#errors"`? Typically, the form action would be a PHP page that processes the form. What is the form trying…, we have these two POST fields being passed into this PHP page, and we're using them to set the values… Re: Contact form does not working Programming Web Development by Salem … real email address from the code. https://www.php.net/manual/en/function.mail.php Some things to try. 1. Headers is… Re: Contact form does not working Programming Web Development by Dani …. Or, alternatively, you can use PHP's [filter_var()](https://www.php.net/manual/en/function.filter-var.php) function to sanitize user input.