Cyber Pro Kenya is now Qodewire. Learn more about our Evolution

Cyber Pro Kenya is now Qodewire.

Can I use Google AMP with database?
I couldn’t find any resource for that.

Now I got the reply as,
“sure its just html, any db queries you do will happen before you output html”.

But I couldn’t understand exactly, how can I do this?
I couldn’t find a source for databases.

Best Answer

Build the page in amp, test it to ensure its built properly, then echo your variables within the amp tags same as you would an html page. Put the queries within the php tags at the very top before you declare an amp page just like before declaring an html page.

All questions and answers contained herein are curated from various sources and are based on personal opinions. We do not own any content posted here.

Ask your own Question

Have any questions? Ask and get instant answers on Whatsapp for Free!

Google Rating
Based on 37 reviews