Jump to content

Recommended Posts

  • Active+ Member

Hi guys,

I have problem with select column from database. I need to add to web a function which show create_time of account in user panel. I tried this but it didn't work:

$selectTime = "SELECT create_time FROM account.account WHERE id=2";

I got this error: mysql table is empty

Can someone help me with that?

Thanks for answers!

Regards,

ReFresh

I'll be always helpful!  😉

Link to comment
https://metin2.dev/topic/14599-php-function-select-create_time-from-db/
Share on other sites

  • Active+ Member
3 minutes ago, metin2team said:

rather than adding a new query you should add create_time to the login query
 with that you'll get the create_time without have to add a new query.

 

Can you show me an example?

I'll be always helpful!  😉

you should add your login query or the login.php file.

showing an example won't help if you don't have any good background in PHP.

$mysql->query("SELECT id, login, email, create_time FROM account.account WHERE id='x'");

 

  • Love 1
  • Active+ Member
35 minutes ago, metin2team said:

you should add your login query or the login.php file.

showing an example won't help if you don't have any good background in PHP.


$mysql->query("SELECT id, login, email, create_time FROM account.account WHERE id='x'");

 

I tried this, but it still says: query was empty

$sqlSelect = "SELECT id, login, email, create_time FROM account.account WHERE id='".$_SESSION['user_id']."'";

$account = mysql_query($sqlSelect);

I'll be always helpful!  😉

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.