How to change or edit data team names?

Asked By 30 points N/A Posted on -
qa-featured

Hello experts,

How to change or edit data team names? I have my basketball team system for all the people wants to join the team here in our place for this coming fiesta, I am using java programming language and mysql server database. How will I change or edit data team names?

Thanks.

SHARE
Answered By 5 points N/A #174804

How to change or edit data team names?

qa-featured

 

Hi Jessica Allen,

To change or update you have to use a programming code which will allow the particular logged in use to change the name which he or she assign for. First you have to offer a login system, then profile where they can update their name and other information and then the update option. If you need to update them by yourself then you need to make a own admin panel. Below is the code for MySQL update:

It updates data in "Persons" table:

<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("my_db", $con);

mysql_query("UPDATE Persons SET Age=36
WHERE FirstName='Peter' AND LastName='Griffin'");

mysql_close($con);
?>

 

Hope it will help you. Thanks

Related Questions