Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //erreur
- Notice: Undefined variable: db in C:\wamp\www\touchyourmusic.free.fr\blue1ce\jbtools.php on line 15
- Fatal error: Call to a member function query() on a non-object in C:\wamp\www\touchyourmusic.free.fr\blue1ce\jbtools.php on line 15
- //mysqlconnect.php
- try
- {
- $db = new PDO('mysql:host=localhost;dbname=blue1ce', 'root', '');
- }
- catch (Exception $e)
- {
- die('Error : ' . $e->getMessage());
- }
- //jbtools.php
- include("scripts/mysqlconnect.php");
- function versionfetch($tool)
- {
- global $db; // et comme ca ?
- $table = $db->query('SELECT * FROM jbtoolsversions'); // <--- LIGNE 15
- do{
- $data = $table->fetch();
- } while($data['tool'] != $tool);
- $table->closeCursor();
- return $data['version'];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement