User Profile

Collapse

Profile Sidebar

Collapse
sumeetk
sumeetk
Last Activity: Feb 1 '08, 08:31 AM
Joined: Dec 30 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi,

    You can use this :

    [PHP]$timeval = date('H:i');[/PHP]

    This wil produce the time in HH:MM

    In the mysql database define the field as "time" data type

    Hope this helps

    Regards
    Sumeet
    See more | Go to post

    Leave a comment:


  • sumeetk
    replied to Setting $_SESSION in PHP 5
    in PHP
    Hi,

    I m using PHP Version 5.2.5 and it is working for, and this is what i did in every page i include

    [PHP]session_start() ;

    if ($_SESSION['username'] == '')
    {
    include "loginerror.php ";
    die;
    exit;
    break;
    }
    $username = $_SESSION['username'];[/PHP]

    My login.php has this

    [PHP]$username = $_POST[username];
    ...
    See more | Go to post

    Leave a comment:


  • sumeetk
    replied to radio button in mysql
    in PHP
    Hello,

    You may create a mysql.php file that will store your connection information and then add this file mysql.php to the guestbook.php which contains the form

    mysql.php file

    [PHP]<?

    $server = 'localhost';
    $database = 'guestbook';
    $username = 'root';
    $password = 'root';
    $connection = mysql_connect($ server,$usernam e,$password);

    if (!$connection)...
    See more | Go to post

    Leave a comment:


  • sumeetk
    replied to PHP Mail Confusion
    in PHP
    Hi,

    If you are using Windows XP or Windows 2003 you will need to install SMTP service, however if you set you ip address as 127.0.0.1 or localhost, Hotmail,Yahoo and Gmail will reject your email that is sent out from your pc

    You will find your rejected mail in

    C:\Inetpub\mail root\Badmail



    Subject: Delivery Status Notification (Failure)

    This is a MIME-formatted...
    See more | Go to post

    Leave a comment:


  • sumeetk
    replied to radio button in mysql
    in PHP
    I m not sure what "ilikephp" is after but hope this can help him

    For example :

    I have purchase table that has 4 fields :

    Id,Quantity,Pri cePerItem, TotalCost

    [PHP]<?
    $sql = "SELECT * FROM purchase order by id";
    $result = mysql_query($sq l);

    echo "<TABLE borderColor=#cc cccc cellSpacing=0 cellPadding=0 align=center border=1>...
    See more | Go to post

    Leave a comment:


  • sumeetk
    replied to Problem in concatenation
    in PHP
    So we create a variable to contain a space character as well:

    $Space = " ";

    You should note that this quite different from having an empty string. An empty string contains nothing at all, while a string with a space contains a character, albeit an invisible one. Spaces of course can be concatenated just like any other text:

    $Car = $CarType . $Space . $EngineSize;

    This would produce...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...