We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62549da commit 3f84ad6Copy full SHA for 3f84ad6
index.php
@@ -1,7 +1,7 @@
1
<?php
2
require_once("jate.php");
3
4
- //CLASSI
+ //CLASSES
5
$connection = new Connection(
6
$_GLOBAL["config"]["connection"]["server"],
7
$_GLOBAL["config"]["connection"]["database"],
jate/function/query.php
@@ -19,7 +19,7 @@ function c_query( $_q, $_err ) {
19
var_dump($connection->database->errorInfo());
20
exit(0);
21
}
22
- return $query->fetchAll();
+ return $query->fetchAll(PDO::FETCH_ASSOC);
23
24
function c_insert( $_q, $_err ) {
25
global $connection;
@@ -28,5 +28,5 @@ function c_insert( $_q, $_err ) {
28
$result = $query->execute();
29
return $result;
30
31
-
+
32
?>
0 commit comments