Jump to content

tribal

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by tribal

  1. hi, i got a DB field that is a DATETIME format and is automatically entered when a user registers. how do i change format from 2003-10-22 10:05:06

     

    to something like 10/22/2003 10:05 ??

     

    can i modify the existing mysql format?

  2. hi guys got a quick ??

     

    i have a database with 4 columns: username, real_name, age and sex

     

    the user logs into the site and does an automatic query of his information

     

    i need to display to the user an output report which looks something like this:

     

    Welcome <? $username ?> //username variable comes from login session

     

    Your real name is <? $real_name ?>

    Your age is <? $age ?>

    etc..

     

    all these variables are from the database query // Select * from users where username = $username

     

    how do i assign the query results to the output variables ? thanks

×
×
  • Create New...

Important Information

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.