Jump to content

Recommended Posts

Posted
 
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    Location
1    0.0010    137048    {main}( )    ..\index.php:0
2    0.0010    150776    include( 'C:\wamp\www\includes\config.php' )    ..\index.php:2
3    0.0049    153552    include( 'C:\wamp\www\includes\connection.php' )    ..\config.php:3
4    0.0049    153736    mysql_connect ( )    ..\connection.php:2


    La table 'vortex.players' n'existe pas

connection.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', '');*/


?>

 

 
Posted (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 by Fainosag
  • 1 year later...
Posted

'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.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

moduri samp