If you want just information on user modifications then it would be no problem as you just need to add 2 columns Last Modified On(use date function) & No of Modifications (put int).
To see changes to the data would require use of logs. Storing changes in database is not recommended.
PHP is a server-side scripting language mainly for processing a user's data-input and generating dynamic content.
Database = Where you save your data (ex: if a user fill your registration form, entered data should be saved somewhere, that's database) Usually in PHP we use MySQL Database.
PHP is a programming language that is used to generate dynamic web pages based on user requests and other data that changes such as store inventory, current news, or time of day.
header() is a php function used to modify and set HTTP headers sent to the browser.
PHP data coding is softwares that allows or has frameworks which can make PHP input to it's own script language. So you may code programs for example with PHP, just that it has to be extended PHP because of new functions and features. It may also be application coding for the web.
If you know FPDF or simlar library which helps to make a PDF file, using PHP,you will be able to write to a PDF file out of data read from mysql tables.
Server side scripting means that all of the code is executed on the server before the data is passed to the user's browser. In the case of PHP this means that no PHP code ever reaches the user, it is instead executed and only the information it outputs is sent to the web browser.
If you will read typecasting on php, you will know more on this. <?php $str = "10"; $num = (int)$str; ?>
2 Methods: 1. You execute your php binary (in linux, make sure you have php-cli installed) and pass the script as an argument. EG ($: /usr/bin/php /home/user/script.php) 2. A sh'bang in the first line of your script, with the full path of your php executable: #!/usr/bin/php -q <?php ScriptStuff(); ?>
// Check if $_SESSION['username'] is not blank <?php Session_start(); if ($_SESSION['username'] == "") { header('location: login.php'); } else { echo " User logged in "; } ?>
Assuming you have the same table for the user-details and login. Also that you have got the login part working <?php // connection string statement // select database statement // check if user is present in db $user = 'user_name'; // put the value of username obtained from login $select = mysql_query("SELECT * FROM table_name WHERE user='$user'"); // if statement will check for single user before showing data if(($fetch = mysql_fetch_array($select))&&($select>0)&&($select<2)) { // only print the columns you want to show echo $fetch['col_1']; // where col_1 is the name of column echo $fetch['col_2']; } ?>
PHP vs ASP.NETBoth PHP and ASP.net are scripting languages designed to be used as a front-end to HTML (allowing server-side processing of web pages and user data prior to sending the HTML to the user's browser). PHP is free and broadly cross-platform (it can be installed and used on any type of server), whereas ASP.net is Microsoft-specific, and fairly expensive. However, ASP.net is somewhat faster than PHP, and works particularly well with Windows clients.ASP.NET is using an XML frontend that is similar to HTML, in order to communicate with .NET libraries..NET code is faster than PHP because it is a precompiled language, whereas PHP is an interpreted language.