Simple PHP Comment Tree

User avatar
Posts: 117
Location: Holland Rotterdam

Simple PHP Comment Tree

Dear admin,

I have an comment tree but it is deprecated.
i tried to update the script but i cant gets to many errors.

Also i searching for months for an little script for comments, what works on id but can not find anything.

I hope you have something... :arrow:

I not have a comment tree script.
I have this comment script: ... ination_s2

- You can try it, or, if your script isn't to big, put it here; maybe it can be easily fixed and actualized.

I would like to update it with your help

This is my first Error

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/u790012824/public_html/Message/comments/db.php on line 25

My db.php is

Code: Select all

<?php //Please set the following variables for your mysql database: $db_hostname = ""; //usually "localhost be default" $db_username = "u790012824_gebru"; //your user name $db_pass = ""; //the password for your user $db_name = "u790012824_datab"; //the name of the database /*MYSQL DATABASE CONNECTION/ TRACKING FUNCTIONS --------------------------------------*/ // connect to database $dbh = mysql_connect ($db_hostname, $db_username, $db_pass) or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ($db_name); ?>
I tried simple to turn it into this

Code: Select all

<?php $conn=mysqli_connect("","u790012824_gebru","","u790012824_datab"); ?>
But then i get alot off errors

You have to change all mysql_ functions that get and parse data from database with their mysqli correspondent.

Similar Topics