Search:

Type: Posts; User: ravi951; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,391

    email and phone no using alert box

    in my below code there is an alert message for only the name i.e..
    customer after shopping he is supposed to enter his details so in my below code only name
    is mandatory but i want both the email...
  2. Replies
    0
    Views
    1,195

    not taking items in database

    hi all,
    i am doing a shopping cart example.after the shopping is complete it is mandatory for the user
    to fill his details.so that it will go in to database.
    i have written my both php and...
  3. Replies
    18
    Views
    7,309

    reply

    hi,
    in the else part below
    else
    {
    $_SESSION['username']= time();
    header("Location:products.php");
    }
    this will be reached when both the username and password not matched.right..
    my question...
  4. Replies
    18
    Views
    7,309

    reply

    whats the difference $_POST['username'] and $r['username']
    make
  5. Replies
    18
    Views
    7,309

    in line $r = mysql_fetch_array($result); the...

    in line $r = mysql_fetch_array($result);
    the variable $r is never used any where in the code u posted
  6. Replies
    18
    Views
    7,309

    reeply

    thank you it helped me a lot
  7. Replies
    18
    Views
    7,309

    reply

    hi please tell me how to modify the code as u mentioned
  8. Replies
    18
    Views
    7,309

    hi tell me whether this code is correct or not...

    hi
    tell me whether this code is correct or not


    <?php
    session_start();
    mysql_connect("localhost","root","") or die("mysql_error()");
    mysql_select_db("shopping") or die("mysql_error()"); ...
  9. Replies
    18
    Views
    7,309

    reply

    then what is the difference between session_destroy() and session_unset()
  10. Replies
    18
    Views
    7,309

    reply

    when we write a code as
    <?php
    session_start();
    //program continue
    //
    ?>
    then we will be in the session only till we close the window or when we
    explicitly declare session_destroy()
    right
  11. Replies
    18
    Views
    7,309

    reply

    when session_start() itself creates session then why again u explicitly
    created session as below
    // Create session.
    $_SESSION['session_name'] = "content";
  12. Replies
    18
    Views
    7,309

    regarding php session

    tell me how to do
    1)check session is present or not
    2)until there is a session then it must redirect to page "products.php"
    3)if there is no session also create one session and then redirect to...
  13. Replies
    12
    Views
    5,424

    reply

    first when the session has started he need to go to the "products.php" page
    using the session name(here using time()).here username is the output of time()
    that should be stored in the database....
  14. Replies
    12
    Views
    5,424

    reply

    below is my modified script. but it is not redirecting to the
    page "products.php"
    what went wrong here....


    <?php
    session_start();
    mysql_connect("localhost","root","") or...
  15. Replies
    0
    Views
    1,817

    assigning a session to user

    hi all,
    i have written a code in php that will check whether the session exists
    or not and it will generate the session id.
    below is the code.....


    <?php
    session_start();...
  16. Replies
    12
    Views
    5,424

    reply

    hi
    i am making it simple
    below is the code i have written to check the session exists or not...


    <?php
    session_start();
    mysql_connect("localhost","root","") or die("mysql_error()");...
  17. Replies
    12
    Views
    5,424

    reply

    k let me explain clearly.
    first i want to check whether session exists or not.
    if not exists then create a session by giving a random no to it..
    thats it how to do that.......
  18. Replies
    12
    Views
    5,424

    check whether there is session

    how to check whether there is session in the code if there is a session
    then using that session (means using time) he has to enter
    or else
    if there is no session then create the new session and...
  19. Replies
    12
    Views
    5,424

    reply

    i have modified like below


    if(!isset($_SESSION["last_activity"]) || time() - $_SESSION["last_activity"] > LIMIT )
    {
    session_destroy();
    header("Location:logout.php");

    ...
  20. Replies
    12
    Views
    5,424

    parse error in php

    hi all,
    i have written a code using php for sessions.it will checks whether the
    user is new or already registered...
    i am getting the error as
    Parse error: syntax error, unexpected...
  21. Replies
    0
    Views
    1,196

    login using time

    hi all,
    i have database namely shopping for login with 3 fields
    namely id,username and password as shown below


    create table login(id auto increment primary key,username...
  22. Replies
    1
    Views
    12,939

    shopping cart using jquery

    hi all,
    i have written a code for simple shopping cart using javascript.now i want to
    do it using jquery.i have created database with 4 tables as shown below as

    below is my database...
  23. Replies
    5
    Views
    7,971

    storing images in database

    hi all,
    i want to store an image in MYSQL database.please tell me whether the below sql syntax i have written is correct or not.


    CREATE TABLE IF NOT EXISTS `products`(
    `serial` int(11)...
  24. Replies
    7
    Views
    3,478

    reply

    hi,
    in the above program i have been using links for adding a new record and for deleting.
    is it possible to use button with name as "submit" there.
    whether we have to use javascript or with out...
  25. Replies
    7
    Views
    3,478

    deleting records in php

    hi all,
    i have created one form for inserting and deletion.
    my database name is "test" table name is "emp" which contains three fields
    namely empno,empname,desig.
    i have inserted some 4 to 5...
Results 1 to 25 of 58
Page 1 of 3 1 2 3