Add php script to wordpress
-
I have made a php script with a database connection and I want to add this to a page.
But for some reason the script stops after:Does anyone know what I am doing wrong?
This is the script I made
$connection2 = new wpdb( "jcsl123456", "123456", "table", "localhost" ); ?></div>query($qry)) { echo 'Fout in query: '.$connection2->error; }else while($list = $result->fetch_assoc()){ $main .='</a>'; } echo $main; ?> </div> </div> </div> </div> -
This is WordPress.COM support. It is not WordPress.ORG support. If you are referring to a site hosted by WordPress.COM what you want to do cannot be done. If you are referring to a WordPress.ORG software install you are posting to the wrong support forum.
WordPress.COM users have code restrictions. No JavaScript, no form codes, except these https://en.support.wordpress.com/forms/contact-form https://en.support.wordpress.com/forms/, no tracking codes, no advertising codes, and no unsupported embeds of iframes can be used on any wordpress.COM hosted sites.
Please read:
https://en.support.wordpress.com/code/
allowed HTML tags list – https://en.support.wordpress.com/code/#html-tags
https://en.support.wordpress.com/code/#javascript
https://en.support.wordpress.com/code/#flash-and-other-embedsWe do not provide support for local installs of WordPress.ORG software, or for WordPress.ORG software installs on paid hosting, linked to WordPress.COM accounts with the Jetpack plugin so they display on the My Sites WordPress.COM account page.
WordPress.COM and WordPress.ORG are completely separate and have different username accounts, logins, features, run different versions of some themes with the same names, and have separate support documentation and separate support forums. Read the differences here http://en.support.wordpress.com/com-vs-org/
The wordpress.ORG support forum is at http://wordpress.org/support. The wordpress.ORG login link is here https://login.wordpress.org/ If you do not have an account yet then click Create an account https://login.wordpress.org/register/ and if you have lost an account password click Lost password? https://login.wordpress.org/lostpassword/
WordPress.org support docs are at https://codex.wordpress.org/Main_Page
See also https://apps.wordpress.org/support/ for app support. -
Ok sorry for this topic, never new that there were 2 companies witth this name.
Thank you for sharing this information -
- The topic ‘Add php script to wordpress’ is closed to new replies.