M7 Flashcards
retrieves the contents of one cell from a MySQL result set
mysql_result()
get the number of affected rows by the last SELECT, INSERT, UPDATE, REPLACE or DELETE query.
mysql_affected_rows()
retrieves the number of rows from a result set. This command is only valid for statements like SELECT or SHOW that return an actual result set.
mysql_num_rows()
syntax for file upload:
$_FILES[“file”][“index”]
attempts to create an empty file. If the file already exists, its contents won’t be disturbed, but the modification date will be updated to reflect the time at which the function executed
touch()
a function used to remove an existing file
unlink()
is used to open a file for reading, writing or appending content
fopen()
to read a line from a file
fgets()
to tell the last line of a file
feof()
to read a specified set of character in a file
fread()
to read a file per character
fgetc()
function accepts a file resource and a string, and then writes the string to the file
fwrite()
function works in exactly the same way
fputs()