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...
Type: Posts; User: ravi951; Keyword(s):
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...
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...
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...
whats the difference $_POST['username'] and $r['username']
make
in line $r = mysql_fetch_array($result);
the variable $r is never used any where in the code u posted
thank you it helped me a lot
hi please tell me how to modify the code as u mentioned
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()"); ...
then what is the difference between session_destroy() and session_unset()
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
when session_start() itself creates session then why again u explicitly
created session as below
// Create session.
$_SESSION['session_name'] = "content";
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...
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....
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...
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();...
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()");...
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.......
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...
i have modified like below
if(!isset($_SESSION["last_activity"]) || time() - $_SESSION["last_activity"] > LIMIT )
{
session_destroy();
header("Location:logout.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...
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...
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...
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)...
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...
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...