Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Can someone explain this code to me?

Go to solution Solved by LTTfan2006,
17 minutes ago, Emil_Loenneberg SE said:

Can you explain to me the effect of this code?

image.thumb.png.bf95d080b59c2db8703a416d4de624a9.png

This seems to be a MySQL Database command.

"User" seems to be the table name.

The code is basically looking for the rows where the "userid" column matches the value of the variable "id". On the rows that match, it then updates the values of the column "navn" and "adresse" with the respective variables. After that, it redirects to index.php

Hope this helps.

You don't need to make another thread, you could have posted in the original thread. You can also offer more information, like what navn and addresse mean.

 

I assume that it's Danish. It tells the MySQL database to update the user's name and address. It then redirects to index.php.

Link to post
Share on other sites
17 minutes ago, Emil_Loenneberg SE said:

Can you explain to me the effect of this code?

image.thumb.png.bf95d080b59c2db8703a416d4de624a9.png

This seems to be a MySQL Database command.

"User" seems to be the table name.

The code is basically looking for the rows where the "userid" column matches the value of the variable "id". On the rows that match, it then updates the values of the column "navn" and "adresse" with the respective variables. After that, it redirects to index.php

Hope this helps.

I AM NOT A PROFESSIONAL! I'll try not to make mistakes, but if I do, sorry! Most of my responses are based on past experiences, or just plain guesses. If a post solves your issue, do mark it as solution, so as to help other people having the same issue who stumble upon your thread.

VPN Server Guide

Link to post
Share on other sites
On 5/15/2021 at 4:49 PM, LTTfan2006 said:

This seems to be a MySQL Database command.

"User" seems to be the table name.

The code is basically looking for the rows where the "userid" column matches the value of the variable "id". On the rows that match, it then updates the values of the column "navn" and "adresse" with the respective variables. After that, it redirects to index.php

Hope this helps.

Thanks, and yes it did.

Link to post
Share on other sites
20 minutes ago, Emil_Loenneberg SE said:

Thanks, and yes it did.

Glad to hear I could help you 🙂

Perhaps consider marking the answer as solution? That'll help other people who have a similar question and stumble across this thread.

I AM NOT A PROFESSIONAL! I'll try not to make mistakes, but if I do, sorry! Most of my responses are based on past experiences, or just plain guesses. If a post solves your issue, do mark it as solution, so as to help other people having the same issue who stumble upon your thread.

VPN Server Guide

Link to post
Share on other sites
Just now, LTTfan2006 said:

Glad to hear I could help you 🙂

Perhaps consider marking the answer as solution? That'll help other people who have a similar question and stumble across this thread.

Of course!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×