PHP including, the other program languages almost all have OOP structure. That has certain reasons. For example; You are software engineer in a company. Suppose you write codes in this company without OOP. (Another name of this is spaghetti coding). If after a while you will leave work, the new software engineer will have difficulty... Continue Reading →
PHP Delete Multiple Records
Github: https://github.com/Furkan-Gulsen/PHP-Projects/tree/master/PHP%20Delete%20multiple%20records index.php <?php require_once('connect.php') ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" type="text/css" href="./style.css"> <title>Delete Multiple Records</title> </head> <body> <?php $query = $dataConnect->prepare('SELECT * FROM people'); $query->execute(); $peopleCount = $query->rowCount(); $record = $query->fetchAll(PDO::FETCH_ASSOC); ?> <form action='result.php' method='post'> <table id="customers"> <th>ID</th> <th>NAME</th> <th>SURNAME</th> <th>DELETE</th> <?php foreach($record... Continue Reading →
PHP – Contact and Email System
Github: https://github.com/Furkan-Gulsen/PHP-Projects/tree/master/PHP%20Send%20Mail index.php <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" type="text/css" href="./form.css"> <title>PHP Email</title> </head> <body> <form action="result.php" method='post'> <div class="container"> <div class="row"> <h1>contact us</h1> </div> <div class="row"> <h4 style="text-align:center">We'd love to hear from you!</h4> </div> <div class="row input-container"> <div class="col-xs-12"> <div class="styled-input wide"> <input type="text"... Continue Reading →
PHP Simple Mail System
Github: https://github.com/Furkan-Gulsen/phpEmailSystem phpEmailSystem Simple PHP Email System Used technologies: HTMLCSSJAVASCRIPTPHPMYSQL I designed a simple mail system from this project. In this mail system, I checked the features of adding, deleting and changing data via mysql using PHP's PDO structure. I made this project while learning php. So I may have a certain mistake. You can... Continue Reading →
PHP var_dumb()
var_dump (): Used to access all structure and information of any variable. Example 1 $Value = "true codes .org"; var_dump($Value); string(15) "true codes .org" Example 2 $Value = 2019; var_dump($Value); int(2019) Example 3 $Value = 18.81; var_dump($Value); float(18.81) Example 4 $Value = true; var_dump($Value); bool(true) Example 5 $Value = null; var_dump($Value); NULL Example 6 $Value... Continue Reading →
Value operations for data types in PHP
boolval () : Returns the boolean data type value of any variable content. intval () : Returns the integer data type value of any variable content. floatval () : Returns the double data type value of any variable content. doubleval () : Returns the value of the double data type of the contents of any... Continue Reading →
PHP Array Functions: current() and pos()
current() and pos()
PHP Array Functions: key()
PHP Array Functions: key()
PHP Array Functions: array_shift() and array_pop()
PHP Array Functions: array_shift() and array_pop()