From cd1d33034cc1c52ad5d845d530f7b4ab5f50c1d1 Mon Sep 17 00:00:00 2001 From: Jayakumar Sadhasivam Date: Thu, 3 Sep 2020 16:07:02 +0530 Subject: [PATCH] PHP MYSQL FILES --- Code/PHP MySQL - ALTER TABLE -1.php | 23 +++++++ Code/PHP MySQL - ALTER TABLE -2.php | 23 +++++++ Code/PHP MySQL - ALTER TABLE -3.php | 23 +++++++ Code/PHP MySQL - BETWEEN.php | 60 +++++++++++++++++++ Code/PHP MySQL - CREATE DATABASE.php | 22 +++++++ Code/PHP MySQL - CREATE TABLE.php | 30 ++++++++++ Code/PHP MySQL - Create DB Connection.php | 2 +- Code/PHP MySQL - DELETE.php | 23 +++++++ ...PHP MySQL - INSERT INTO TABLE via FORM.php | 29 +++++++++ Code/PHP MySQL - INSERT INTO TABLE.php | 35 +++++++++++ Code/PHP MySQL - LIKE FUNCTION -1.php | 48 +++++++++++++++ Code/PHP MySQL - LIKE FUNCTION -2.php | 48 +++++++++++++++ Code/PHP MySQL - LIKE FUNCTION -3.php | 48 +++++++++++++++ Code/PHP MySQL - MYSQL_AFFECTED_ROWS.php | 12 ++++ Code/PHP MySQL - MYSQL_ERROR.php | 16 +++++ Code/PHP MySQL - MYSQL_FETCH_ARRAY.php | 21 +++++++ Code/PHP MySQL - MYSQL_FETCH_ASSOC.php | 20 +++++++ Code/PHP MySQL - MYSQL_FETCH_FIELD.php | 26 ++++++++ Code/PHP MySQL - MYSQL_FETCH_OBJECT.php | 14 +++++ Code/PHP MySQL - MYSQL_FETCH_ROW.php | 18 ++++++ Code/PHP MySQL - MYSQL_FREE_RESULT.php | 22 +++++++ Code/PHP MySQL - MYSQL_GET_CLIENT_INFO.php | 3 + Code/PHP MySQL - MYSQL_GET_RESOURCE_TYPE.php | 10 ++++ Code/PHP MySQL - MYSQL_GET_SERVER_INFO.php | 4 ++ Code/PHP MySQL - MYSQL_LIST_DBS.php | 13 ++++ Code/PHP MySQL - MYSQL_NUM_FIELDS.php | 16 +++++ Code/PHP MySQL - MYSQL_NUM_ROWS.php | 7 +++ Code/PHP MySQL - Multiple Database.php | 12 ++++ Code/PHP MySQL - ORDER BY DESC.php | 27 +++++++++ Code/PHP MySQL - ORDER BY.php | 27 +++++++++ Code/PHP MySQL - SELECT DATA - WHERE -1.php | 28 +++++++++ Code/PHP MySQL - SELECT DATA-1.php | 27 +++++++++ Code/PHP MySQL - SELECT DATA-2.php | 27 +++++++++ Code/PHP MySQL - SELECT DATABASE.php | 6 ++ Code/PHP MySQL - TRUNCATE.php | 23 +++++++ Code/PHP MySQL - UPDATE.php | 23 +++++++ 36 files changed, 815 insertions(+), 1 deletion(-) create mode 100644 Code/PHP MySQL - ALTER TABLE -1.php create mode 100644 Code/PHP MySQL - ALTER TABLE -2.php create mode 100644 Code/PHP MySQL - ALTER TABLE -3.php create mode 100644 Code/PHP MySQL - BETWEEN.php create mode 100644 Code/PHP MySQL - CREATE DATABASE.php create mode 100644 Code/PHP MySQL - CREATE TABLE.php create mode 100644 Code/PHP MySQL - DELETE.php create mode 100644 Code/PHP MySQL - INSERT INTO TABLE via FORM.php create mode 100644 Code/PHP MySQL - INSERT INTO TABLE.php create mode 100644 Code/PHP MySQL - LIKE FUNCTION -1.php create mode 100644 Code/PHP MySQL - LIKE FUNCTION -2.php create mode 100644 Code/PHP MySQL - LIKE FUNCTION -3.php create mode 100644 Code/PHP MySQL - MYSQL_AFFECTED_ROWS.php create mode 100644 Code/PHP MySQL - MYSQL_ERROR.php create mode 100644 Code/PHP MySQL - MYSQL_FETCH_ARRAY.php create mode 100644 Code/PHP MySQL - MYSQL_FETCH_ASSOC.php create mode 100644 Code/PHP MySQL - MYSQL_FETCH_FIELD.php create mode 100644 Code/PHP MySQL - MYSQL_FETCH_OBJECT.php create mode 100644 Code/PHP MySQL - MYSQL_FETCH_ROW.php create mode 100644 Code/PHP MySQL - MYSQL_FREE_RESULT.php create mode 100644 Code/PHP MySQL - MYSQL_GET_CLIENT_INFO.php create mode 100644 Code/PHP MySQL - MYSQL_GET_RESOURCE_TYPE.php create mode 100644 Code/PHP MySQL - MYSQL_GET_SERVER_INFO.php create mode 100644 Code/PHP MySQL - MYSQL_LIST_DBS.php create mode 100644 Code/PHP MySQL - MYSQL_NUM_FIELDS.php create mode 100644 Code/PHP MySQL - MYSQL_NUM_ROWS.php create mode 100644 Code/PHP MySQL - Multiple Database.php create mode 100644 Code/PHP MySQL - ORDER BY DESC.php create mode 100644 Code/PHP MySQL - ORDER BY.php create mode 100644 Code/PHP MySQL - SELECT DATA - WHERE -1.php create mode 100644 Code/PHP MySQL - SELECT DATA-1.php create mode 100644 Code/PHP MySQL - SELECT DATA-2.php create mode 100644 Code/PHP MySQL - SELECT DATABASE.php create mode 100644 Code/PHP MySQL - TRUNCATE.php create mode 100644 Code/PHP MySQL - UPDATE.php diff --git a/Code/PHP MySQL - ALTER TABLE -1.php b/Code/PHP MySQL - ALTER TABLE -1.php new file mode 100644 index 0000000..c47074f --- /dev/null +++ b/Code/PHP MySQL - ALTER TABLE -1.php @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - ALTER TABLE -2.php b/Code/PHP MySQL - ALTER TABLE -2.php new file mode 100644 index 0000000..10c7f3e --- /dev/null +++ b/Code/PHP MySQL - ALTER TABLE -2.php @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - ALTER TABLE -3.php b/Code/PHP MySQL - ALTER TABLE -3.php new file mode 100644 index 0000000..5a801a0 --- /dev/null +++ b/Code/PHP MySQL - ALTER TABLE -3.php @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - BETWEEN.php b/Code/PHP MySQL - BETWEEN.php new file mode 100644 index 0000000..a7b1f4c --- /dev/null +++ b/Code/PHP MySQL - BETWEEN.php @@ -0,0 +1,60 @@ + BETWEEN "; + +$sql = "SELECT firstname FROM MyGuests WHERE ID BETWEEN 10 AND 100"; +$result = mysqli_query($conn, $sql); + +if (mysqli_num_rows($result) > 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "Name : " . $row["firstname"]."
"; + } +} else { + echo "0 results"; +} + +echo "
"; + +$sql = "SELECT id,firstname FROM MyGuests WHERE ID BETWEEN 10 AND 100"; +$result = mysqli_query($conn, $sql); + +if (mysqli_num_rows($result) > 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "id : " . $row["id"]. " - Name : " . $row["firstname"]."
"; + } +} else { + echo "0 results"; +} + +echo "
"; +echo "

NOT BETWEEN

"; + +$sql = "SELECT id,firstname FROM MyGuests WHERE ID NOT BETWEEN 10 AND 100"; +$result = mysqli_query($conn, $sql); + +if (mysqli_num_rows($result) > 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "id : " . $row["id"]. " - Name : " . $row["firstname"]."
"; + } +} else { + echo "0 results"; +} + + + + +mysqli_close($conn); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - CREATE DATABASE.php b/Code/PHP MySQL - CREATE DATABASE.php new file mode 100644 index 0000000..acd8abe --- /dev/null +++ b/Code/PHP MySQL - CREATE DATABASE.php @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - CREATE TABLE.php b/Code/PHP MySQL - CREATE TABLE.php new file mode 100644 index 0000000..fda795e --- /dev/null +++ b/Code/PHP MySQL - CREATE TABLE.php @@ -0,0 +1,30 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - Create DB Connection.php b/Code/PHP MySQL - Create DB Connection.php index dbc7dec..96a814f 100644 --- a/Code/PHP MySQL - Create DB Connection.php +++ b/Code/PHP MySQL - Create DB Connection.php @@ -6,4 +6,4 @@ else{ echo "Connected successfully"; } -?> +?> \ No newline at end of file diff --git a/Code/PHP MySQL - DELETE.php b/Code/PHP MySQL - DELETE.php new file mode 100644 index 0000000..19f09ec --- /dev/null +++ b/Code/PHP MySQL - DELETE.php @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - INSERT INTO TABLE via FORM.php b/Code/PHP MySQL - INSERT INTO TABLE via FORM.php new file mode 100644 index 0000000..fb1b256 --- /dev/null +++ b/Code/PHP MySQL - INSERT INTO TABLE via FORM.php @@ -0,0 +1,29 @@ +INSERT INTO TABLE FORM + + + +
+ firstname: + lastname: + Age: + +
+ + + + +// INSERT INTO TABLE PHP + \ No newline at end of file diff --git a/Code/PHP MySQL - INSERT INTO TABLE.php b/Code/PHP MySQL - INSERT INTO TABLE.php new file mode 100644 index 0000000..7f86106 --- /dev/null +++ b/Code/PHP MySQL - INSERT INTO TABLE.php @@ -0,0 +1,35 @@ +" . mysqli_error($conn); +} + +mysqli_query($conn,$sql1); +mysqli_query($conn,$sql2); + + +mysqli_close($conn); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - LIKE FUNCTION -1.php b/Code/PHP MySQL - LIKE FUNCTION -1.php new file mode 100644 index 0000000..1c6d47a --- /dev/null +++ b/Code/PHP MySQL - LIKE FUNCTION -1.php @@ -0,0 +1,48 @@ + Like Function with Starting "; + +$sql = "SELECT * FROM MyGuests where firstname like 'm%'"; +$result = mysqli_query($conn, $sql); + +if (mysqli_num_rows($result) > 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "Name : " . $row["firstname"]."
"; + } +} else { + echo "0 results"; +} + + +echo "
"; +echo "

Like Function with Ending

"; + +$sql = "SELECT * FROM MyGuests where firstname like '%y'"; +$result = mysqli_query($conn, $sql); + +if (mysqli_num_rows($result) > 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "Name : " . $row["firstname"]."
"; + } +} else { + echo "0 results"; +} + + + + +mysqli_close($conn); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - LIKE FUNCTION -2.php b/Code/PHP MySQL - LIKE FUNCTION -2.php new file mode 100644 index 0000000..dd54615 --- /dev/null +++ b/Code/PHP MySQL - LIKE FUNCTION -2.php @@ -0,0 +1,48 @@ + NOT Like Function with Starting "; + +$sql = "SELECT * FROM MyGuests where firstname NOT like 'm%'"; +$result = mysqli_query($conn, $sql); + +if (mysqli_num_rows($result) > 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "Name : " . $row["firstname"]."
"; + } +} else { + echo "0 results"; +} + + +echo "
"; +echo "

NOT Like Function with Ending

"; + +$sql = "SELECT * FROM MyGuests where firstname NOT like '%y'"; +$result = mysqli_query($conn, $sql); + +if (mysqli_num_rows($result) > 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "Name : " . $row["firstname"]."
"; + } +} else { + echo "0 results"; +} + + + + +mysqli_close($conn); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - LIKE FUNCTION -3.php b/Code/PHP MySQL - LIKE FUNCTION -3.php new file mode 100644 index 0000000..33fee6e --- /dev/null +++ b/Code/PHP MySQL - LIKE FUNCTION -3.php @@ -0,0 +1,48 @@ + UNDERSCORE Function "; + +$sql = "SELECT * FROM MyGuests where firstname like 'M__E'"; +$result = mysqli_query($conn, $sql); + +if (mysqli_num_rows($result) > 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "Name : " . $row["firstname"]."
"; + } +} else { + echo "0 results"; +} + + +echo "
"; +echo "

NOT UNDERSCORE Function

"; + +$sql = "SELECT * FROM MyGuests where firstname NOT like 'M__E'"; +$result = mysqli_query($conn, $sql); + +if (mysqli_num_rows($result) > 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "Name : " . $row["firstname"]."
"; + } +} else { + echo "0 results"; +} + + + + +mysqli_close($conn); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_AFFECTED_ROWS.php b/Code/PHP MySQL - MYSQL_AFFECTED_ROWS.php new file mode 100644 index 0000000..bca7430 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_AFFECTED_ROWS.php @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_ERROR.php b/Code/PHP MySQL - MYSQL_ERROR.php new file mode 100644 index 0000000..a8d5e54 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_ERROR.php @@ -0,0 +1,16 @@ + Errorcode: " . mysqli_errno($con)); +} + +mysqli_close($con); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_FETCH_ARRAY.php b/Code/PHP MySQL - MYSQL_FETCH_ARRAY.php new file mode 100644 index 0000000..b6995a8 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_FETCH_ARRAY.php @@ -0,0 +1,21 @@ +"); +print_r(mysqli_fetch_array($result)); +print ("
"); +while ($row = mysqli_fetch_array($result, MYSQL_NUM)) +{ + printf("student_ID: %u name: %s batch: %s course: %s", $row[0], $row[1], $row[2],$row[3]); + print("
"); +} +mysqli_close($con); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_FETCH_ASSOC.php b/Code/PHP MySQL - MYSQL_FETCH_ASSOC.php new file mode 100644 index 0000000..b636e57 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_FETCH_ASSOC.php @@ -0,0 +1,20 @@ +"; +echo $row[batch]; +?> \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_FETCH_FIELD.php b/Code/PHP MySQL - MYSQL_FETCH_FIELD.php new file mode 100644 index 0000000..e70e698 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_FETCH_FIELD.php @@ -0,0 +1,26 @@ +name . "
"; + echo "Table name: " . $property->table . "
"; + echo "Default value: " . $property->def . "
"; + echo "Max length: " . $property->max_length . "
"; + echo "Not NULL: " . $property->not_null . "
"; + echo "Primary Key: " . $property->primary_key . "
"; + echo "Unique Key: " . $property->unique_key . "
"; + echo "Mutliple Key: " . $property->multiple_key . "
"; + echo "Numeric Field: " . $property->numeric . "
"; + echo "BLOB: " . $property->blob . "
"; + echo "Field Type: " . $property->type . "
"; + echo "Unsigned: " . $property->unsigned . "
"; + echo "Zero-filled: " . $property->zerofill . "

"; +} +mysqli_close($con); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_FETCH_OBJECT.php b/Code/PHP MySQL - MYSQL_FETCH_OBJECT.php new file mode 100644 index 0000000..27cfc54 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_FETCH_OBJECT.php @@ -0,0 +1,14 @@ +name . "
"; +} +mysqli_close($con); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_FETCH_ROW.php b/Code/PHP MySQL - MYSQL_FETCH_ROW.php new file mode 100644 index 0000000..5195fad --- /dev/null +++ b/Code/PHP MySQL - MYSQL_FETCH_ROW.php @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_FREE_RESULT.php b/Code/PHP MySQL - MYSQL_FREE_RESULT.php new file mode 100644 index 0000000..3aa886d --- /dev/null +++ b/Code/PHP MySQL - MYSQL_FREE_RESULT.php @@ -0,0 +1,22 @@ +"); +// Free memory +mysqli_free_result($result); +print(mysqli_num_rows($result)); +$db_selected = mysqli_select_db("asection",$con); +$sql = "SELECT * from student"; +$result = mysqli_query($sql,$con); +print_r(mysqli_fetch_row($result)); //mysqli_free_result($result); +print ("
"); +print(mysqli_num_rows($result)); +mysqli_close($con); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_GET_CLIENT_INFO.php b/Code/PHP MySQL - MYSQL_GET_CLIENT_INFO.php new file mode 100644 index 0000000..8b52b48 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_GET_CLIENT_INFO.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_GET_RESOURCE_TYPE.php b/Code/PHP MySQL - MYSQL_GET_RESOURCE_TYPE.php new file mode 100644 index 0000000..05befb3 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_GET_RESOURCE_TYPE.php @@ -0,0 +1,10 @@ +"; +// prints: file +$fp = fopen("foo", "w"); +echo $fp; +echo get_resource_type($fp) ; +?> \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_GET_SERVER_INFO.php b/Code/PHP MySQL - MYSQL_GET_SERVER_INFO.php new file mode 100644 index 0000000..a912830 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_GET_SERVER_INFO.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_LIST_DBS.php b/Code/PHP MySQL - MYSQL_LIST_DBS.php new file mode 100644 index 0000000..655e0fe --- /dev/null +++ b/Code/PHP MySQL - MYSQL_LIST_DBS.php @@ -0,0 +1,13 @@ +Database . "
"; +} +mysqli_close($con); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_NUM_FIELDS.php b/Code/PHP MySQL - MYSQL_NUM_FIELDS.php new file mode 100644 index 0000000..cb30c66 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_NUM_FIELDS.php @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - MYSQL_NUM_ROWS.php b/Code/PHP MySQL - MYSQL_NUM_ROWS.php new file mode 100644 index 0000000..e8e1472 --- /dev/null +++ b/Code/PHP MySQL - MYSQL_NUM_ROWS.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - Multiple Database.php b/Code/PHP MySQL - Multiple Database.php new file mode 100644 index 0000000..0bcdbb5 --- /dev/null +++ b/Code/PHP MySQL - Multiple Database.php @@ -0,0 +1,12 @@ +//Multiple databases can be used at a time. + + \ No newline at end of file diff --git a/Code/PHP MySQL - ORDER BY DESC.php b/Code/PHP MySQL - ORDER BY DESC.php new file mode 100644 index 0000000..8826137 --- /dev/null +++ b/Code/PHP MySQL - ORDER BY DESC.php @@ -0,0 +1,27 @@ + 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. " " . $row["lastname"]. "
"; + } +} else { + echo "0 results"; +} + +mysqli_close($conn); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - ORDER BY.php b/Code/PHP MySQL - ORDER BY.php new file mode 100644 index 0000000..b994bb8 --- /dev/null +++ b/Code/PHP MySQL - ORDER BY.php @@ -0,0 +1,27 @@ + 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. " " . $row["lastname"]. "
"; + } +} else { + echo "0 results"; +} + +mysqli_close($conn); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - SELECT DATA - WHERE -1.php b/Code/PHP MySQL - SELECT DATA - WHERE -1.php new file mode 100644 index 0000000..c514631 --- /dev/null +++ b/Code/PHP MySQL - SELECT DATA - WHERE -1.php @@ -0,0 +1,28 @@ + connect_error) { + die("Connection failed: " . $conn->connect_error); +} + +$sql = "SELECT id, firstname, lastname FROM MyGuests WHERE lastname='JACK'"; +$result = $conn->query($sql); + +if ($result->num_rows > 0) { + // output data of each row + while($row = $result->fetch_assoc()) { + echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. " " . $row["lastname"]. "
"; + } +} else { + echo "0 results"; +} +$conn->close(); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - SELECT DATA-1.php b/Code/PHP MySQL - SELECT DATA-1.php new file mode 100644 index 0000000..5f517ed --- /dev/null +++ b/Code/PHP MySQL - SELECT DATA-1.php @@ -0,0 +1,27 @@ + 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "id : " . $row["id"]. " - Name : " . $row["firstname"]. " -eMail ID : " . $row["email"]. "
"; + } +} else { + echo "0 results"; +} + +mysqli_close($conn); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - SELECT DATA-2.php b/Code/PHP MySQL - SELECT DATA-2.php new file mode 100644 index 0000000..ec67fbb --- /dev/null +++ b/Code/PHP MySQL - SELECT DATA-2.php @@ -0,0 +1,27 @@ + 0) { + // output data of each row + while($row = mysqli_fetch_assoc($result)) { + echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. "
"; + } +} else { + echo "0 results"; +} + +mysqli_close($conn); +?> \ No newline at end of file diff --git a/Code/PHP MySQL - SELECT DATABASE.php b/Code/PHP MySQL - SELECT DATABASE.php new file mode 100644 index 0000000..b100191 --- /dev/null +++ b/Code/PHP MySQL - SELECT DATABASE.php @@ -0,0 +1,6 @@ + Database was selected"; +?> \ No newline at end of file diff --git a/Code/PHP MySQL - TRUNCATE.php b/Code/PHP MySQL - TRUNCATE.php new file mode 100644 index 0000000..d533d3d --- /dev/null +++ b/Code/PHP MySQL - TRUNCATE.php @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/Code/PHP MySQL - UPDATE.php b/Code/PHP MySQL - UPDATE.php new file mode 100644 index 0000000..eea4038 --- /dev/null +++ b/Code/PHP MySQL - UPDATE.php @@ -0,0 +1,23 @@ + \ No newline at end of file