Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > TBDev
Reply
  #1  
Old 09-07-18, 07:36
BamBam0077's Avatar
BamBam0077 BamBam0077 is offline
Support
 
Join Date: Jul 2013
P2P
Posts: 261
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"];
}
?>
__________________
http://blazinscene.us
Reply With Quote
  #2  
Old 09-07-18, 11:53
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,049
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 (10-07-18)
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 00:38. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.