Jump to content

PHP - Function SELECT create_time FROM db


Recommended Posts

  • Gold

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
Share on other sites

  • Gold
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! 👊 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.