Hi,
I'm new to this site and PHP, of course.
I want to make sure that when multiple users update the "same" database table at the same time, their changes are not lost/do not overlap. I don't seem to find any qualifier to enforce this while opening the database connection and the table itself.
Here's what I have:
$con = mysql_connect("localhost","root","pass");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$db_open = mysql_select_db("mysql", $con);
if (!$db_open)
{
echo "Error opening database" . mysql_error();
exit;
}
$result = mysql_query("SELECT * FROM um");
if (!$result)
{
echo "Error fetching results" . mysql_error();
exit;
}