Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 9th July 2018, 07:36
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default 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"];
}
?>
Reply With Quote
  #2  
Old 9th July 2018, 11:53
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
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/
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
BamBam0077 (10th July 2018)
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 22:24. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.