|
#1
|
|||
|
|||
Is this right?
Code:
<?php $con = mysqli_connect("localhost", "root", ""); // if statement with connection failed if (!$con) { die("Could not connect: " . mysql_error()); } return $con; $sql = 'SELECT * FROM config'; $result = sql_query($dbcon, $sql); while($row = mysqli_fetch_assoc($result)){ $tbdev["sitename"] = $row["sitename"]; } ?> |
#2
|
||||
|
||||
no $dbcon needs to be $con
$result = sql_query($dbcon, $sql);
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent Do not ask me to make a mod for any other source Do not Ask me to setup your site. I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum My Current Demo is here http://demo.btmanager.org/ |
The Following User Says Thank You to joeroberts For This Useful Post: | ||
BamBam0077 (10th July 2018)
|
|
|