Category : mysql

Im using the following to generate a list of data from the SQL database which allows me to link to an individual page containing a full breakdown of the data output (view.php). // change the user_name and password mysql_connect("localhost","user","pass"); // change the database_name mysql_select_db("database", $con); // change the table_name $result = mysql_query("SELECT * FROM table_name"); ..

Read more

I’m getting a Notice: Uninitialized string offset: 0 This is a mu-plugin that is supposed to show social sharing buttons and the only problem is happening with pinterest. Since it’s not connected to my own database, I don’t know why it’s returning that error. My full code: <?php // Source: https://wpvkp.com/add-social-media-sharing-buttons-to-wordpress-without-plugin/ // Function to handle ..

Read more