Hyperix Posted August 16, 2014 Posted August 16, 2014 Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\wamp\www\includes\connection.php on line 2# Time Memory Function Location1 0.0010 137048 {main}( ) ..\index.php:02 0.0010 150776 include( 'C:\wamp\www\includes\config.php' ) ..\index.php:23 0.0049 153552 include( 'C:\wamp\www\includes\connection.php' ) ..\config.php:34 0.0049 153736 mysql_connect ( ) ..\connection.php:2 La table 'vortex.players' n'existe pasconnection.php:<?php$link = mysql_connect('localhost', 'root', '') or die("Nu se poate efectua conexiunea MYSQL");mysql_select_db('vortex', $link);$dbh = new PDO('mysql:host=localhost;dbname=vortex;charset=utf8', 'root', '');/*$link = mysql_connect('localhost', 'root', '') or die("wrong user pass mysql");mysql_select_db('vortex', $link);$dbh = new PDO('mysql:host=localhost;dbname=vortex;charset=utf8', 'root', '');*/?>
Fainosag Posted August 16, 2014 Posted August 16, 2014 (edited) nu exista tabela vortex.players.. nu e clar? de asta urasc eu php-ul e nasol, iti recomand JAVA pentru partea de backend la site-uri, mai sigur si mai usor de scris un cod frumos. Edited August 16, 2014 by Fainosag
Mohammadkz Posted June 22, 2016 Posted June 22, 2016 'vortex' is default db_name at you have downloaded ucp. You must replace 'vortex' db_name with that you have db_name. Note: It's not only it. search other place of the ucp folder you have, because in that ucp folder you have more files needed to edit. Insert '@' before mysql_connect like this (@mysql_connect) for resolve other warnings, Havefun.
Recommended Posts