answersLogoWhite

0

How can you make in php to see which user has modify his data and how?

Updated: 8/19/2019
User Avatar

DanaFischer

Lvl 1
11y ago

Best Answer

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.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you make in php to see which user has modify his data and how?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the PHP programming language?

PHP is a server-side scripting language mainly for processing a user's data-input and generating dynamic content.


What is a database in PHP?

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.


What is PHP used for?

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.


What is header in php?

header() is a php function used to modify and set HTTP headers sent to the browser.


What is PHP data coding?

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.


How can you export data from MySQL to PDF using PHP?

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.


What is server side scripting explain with illustration?

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.


How you can change data type in PHPwrite a script in PHP that change the string data type in numeric data type?

If you will read typecasting on php, you will know more on this. <?php $str = "10"; $num = (int)$str; ?>


How can you execute a PHP script using command line?

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(); ?>


How do you check user is login or not in php?

// Check if $_SESSION['username'] is not blank <?php Session_start(); if ($_SESSION['username'] == "") { header('location: login.php'); } else { echo " User logged in "; } ?>


How do you select data associated with a logged in user from your sql davabase using php?

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']; } ?>


What is the difference between PHP and ASP.net?

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.