function select ($link, $display, $table, $where){
if (empty($table)){ $select="SELECT $display ";
}elseif (empty($where)){ $select="SELECT $display FROM $table";
}else{ $select="SELECT $display FROM $table WHERE $where";
}
# echo "Select:" . $select . " \n";
$result = mysqli_query($link, $select) or die("
No such data, Please refresh your browser");#please don't use the back button. Select the page from the drop down menu.
.");
// Printing results in HTML
return $result;
}
function delete ($link, $what, $values, $other)
{
$delete="delete from $what where $values $other";
# echo "Delete:" . $delete . " \n";
$result = mysqli_query($link, $delete) or die("No such user in the table: $delete");
// Printing results in HTML
return $result;
}
function insert ($link, $what, $values)
{
$insert="INSERT INTO $what VALUES $values";
# echo "Insert:" . $insert . "
\n";
$result = mysqli_query($link, $insert) or die("No such user in the table: $insert");
// Printing results in HTML
return $result;
}
function update ($link, $table, $what, $values)
{
$insert="UPDATE $table SET $what WHERE $values";
# echo "UPDATE: " . $insert . "
\n";
$result = mysqli_query($link, $insert) or die("No such user in the table: $insert");
// Printing results in HTML
return $result;
}
function create ($link, $string)
{
$creation = "CREATE TEMPORARY TABLE tmp $string";
# echo "creation: ". $creation . " ";
$result = mysqli_query($link, $creation) or die("No such user in the table: $creation");
// Printing results in HTML
return $result;
}
function drop ($link )
{
$drop = "DROP TABLE tmp";
# echo "drop: ". $drop . " ";
$result = mysqli_query($link, $drop) or die("No such user in the table: $drop");
// Printing results in HTML
return $result;
}
function select_join ($link, $display, $table, $union, $ON, $other){
if (empty($other)){ $select="SELECT $display FROM $table INNER JOIN $union ON $ON";
}else{ $select="SELECT $display FROM $table INNER JOIN $union ON $ON $other";
}
# echo "Select:" . $select . " \n";
$result = mysqli_query($link, $select) or die("
No such data, Please refresh your browser");#please don't use the back button. Select the page from the drop down menu.
.");
// Printing results in HTML
return $result;
}
?>
Page to Limit Device Usage Fatal error: Uncaught Error: Call to undefined function select() in /home/philippe/public_html/Time/header.php:48
Stack trace:
#0 /home/philippe/public_html/Time/index.php(3): include()
#1 {main}
thrown in /home/philippe/public_html/Time/header.php on line 48