| @@ 95-108 (lines=14) @@ | ||
| 92 | return $res; |
|
| 93 | } |
|
| 94 | ||
| 95 | function tableExists($tablename, $database = false) |
|
| 96 | { |
|
| 97 | global $dbTmp; |
|
| 98 | ||
| 99 | $res = mysqli_query($dbTmp, |
|
| 100 | "SELECT COUNT(*) as count |
|
| 101 | FROM information_schema.tables |
|
| 102 | WHERE table_schema = '".$_SESSION['database']."' |
|
| 103 | AND table_name = '$tablename'" |
|
| 104 | ); |
|
| 105 | ||
| 106 | if ($res > 0) { |
|
| 107 | return true; |
|
| 108 | } else { |
|
| 109 | return false; |
|
| 110 | } |
|
| 111 | } |
|
| @@ 98-111 (lines=14) @@ | ||
| 95 | return $res; |
|
| 96 | } |
|
| 97 | ||
| 98 | function tableExists($tablename, $database = false) |
|
| 99 | { |
|
| 100 | global $dbTmp; |
|
| 101 | ||
| 102 | $res = mysqli_query($dbTmp, |
|
| 103 | "SELECT COUNT(*) as count |
|
| 104 | FROM information_schema.tables |
|
| 105 | WHERE table_schema = '".$_SESSION['db_bdd']."' |
|
| 106 | AND table_name = '$tablename'" |
|
| 107 | ); |
|
| 108 | ||
| 109 | if ($res > 0) { |
|
| 110 | return true; |
|
| 111 | } else { |
|
| 112 | return false; |
|
| 113 | } |
|
| 114 | } |
|
| @@ 78-91 (lines=14) @@ | ||
| 75 | return $res; |
|
| 76 | } |
|
| 77 | ||
| 78 | function tableExists($tablename, $database = false) |
|
| 79 | { |
|
| 80 | global $dbTmp; |
|
| 81 | ||
| 82 | $res = mysqli_query($dbTmp, |
|
| 83 | "SELECT COUNT(*) as count |
|
| 84 | FROM information_schema.tables |
|
| 85 | WHERE table_schema = '".$_SESSION['db_bdd']."' |
|
| 86 | AND table_name = '$tablename'" |
|
| 87 | ); |
|
| 88 | ||
| 89 | if ($res > 0) { |
|
| 90 | return true; |
|
| 91 | } else { |
|
| 92 | return false; |
|
| 93 | } |
|
| 94 | } |
|
| @@ 84-97 (lines=14) @@ | ||
| 81 | return $res; |
|
| 82 | } |
|
| 83 | ||
| 84 | function tableExists($tablename, $database = false) |
|
| 85 | { |
|
| 86 | global $dbTmp; |
|
| 87 | ||
| 88 | $res = mysqli_query($dbTmp, |
|
| 89 | "SELECT COUNT(*) as count |
|
| 90 | FROM information_schema.tables |
|
| 91 | WHERE table_schema = '".$_SESSION['database']."' |
|
| 92 | AND table_name = '$tablename'" |
|
| 93 | ); |
|
| 94 | ||
| 95 | if ($res > 0) { |
|
| 96 | return true; |
|
| 97 | } else { |
|
| 98 | return false; |
|
| 99 | } |
|
| 100 | } |
|