I am using MySQL Query in filling PHP matrix, but it was unable to work properly.
Below is the code I used:
I'm not sure, but it seems that I am filling the array wrong.
Any help is appreciated.
Thanks.
Error on filling PHP Matrix on MySQL Query
Hello,
Your code above does not have a script for posting or inserting into the php matrix. But if you want the matrix content to be displayed from a MySQL database, you will need to provide a connection path to where the database is located and where the contents are stored. A simple MySQL connection code is as shown below:
$con=mysql_connect("Your_Host","database_user","database_password");
 mysql_select_db("your_database");
you can also checkn if there is an error and correct as uplinetype=’2’;
Thank you.