PunjabHaker
-
Posts
33 -
Joined
-
Last visited
Never
Posts posted by PunjabHaker
-
-
Thank you man
-
Hello
i have the column "accesed"
in first row i have number "4"
in second row i have number "5"
how can i count the total numbers from rows ?
please help
-
i want to make a script that tell users how many minutes ago was the page updated.
any idea please share ?
-
try
mysql_connect("localhost",$user,$password);
not
mysql_connect(localhost,$user,$password);
-
the time is now 100 (minutes)
in the database the last updated time is 102 (minutes)
the last update time will be 102-100 = 2 (minutes)
again
the time is now 100 (minutes)
in the database the last updated time is 2 (minutes)
the last update time will be 2-100 = -198(minutes)
how can i make a last updated time script ?
any idea please ?
thanks
-
print "<td width='10%' align='right' valign='top'
onmouseover = this.style.background = 'red'
style='border: 1px solid #7F8FA9; background-color:$colors'><center>";
when mouse is over i want it to change the cell color
where am i wrong ?
-
still can't fucking understand why it doesn't work
could it be from the php ?
i have php5 installed
-
man please do not reply if you don't know how to do it
thanks for understanding
-
set cookie in login page
setcookie("logged", $userid, time()+3600);
in all pages include this line
if (isset($_COOKIE['logged'])){
//code
}
-
how what ?
i need to make a back link
-
no
so i want in s.php to make a link that sent me to back page
how can i do that ?
-
$myip = getenv("REMOTE_ADDR");
that ?
-
no
in index.php i have: $_SESSION['backlink'] = "eo.php";
in s.php i have a back link
<a href='".$_SESSION['backlink']."'>Go Back</a>
and i want it to go to back page, this mean index.php
-
both files s.php and index.php start with that code
i can't understand why it doesn't work
-
because i use some session variables to print something
in index.php i have
$_SESSION['word'] = "Hello";
and i want to print it in s.php
like print $_SESSION['word'];
please help
-
the files index.php and s.php start with the same lines
i start the session
<?php
session_start();
?>
in the file s.php i got that error
what can be wrong ?
the code is just html codes with images, etc
where can be the error ?
-
i have 2 files: index.php and s.php
the first lines in both files are:
<?php
session_start();
?>
in the file s.php i got this error:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\Web Design\clothes store\accesories.php:1) in D:\Web Design\clothes store\s.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\Web Design\clothes store\accesories.php:1) in D:\Web Design\clothes store\s.php on line 2
please help
where am i wrong ?
-
if the string value is "2"
i want to write 2 strings like "string1, string2"
if the string value is "3"
i want to write 3 strings like "string1, string2, string3"
how can i do this ?
please help urgently
thanks
-
<?php
$string = "string1, string2";
list($string1, $string2) = split(",", $string);
echo "$string1, $string2";
?>
-
string1, string2
i need to make 2 checkboxes, first is string1 and second is string2
i need to split them by coma ","
how can i do that ?
thanks in advance
-
That's great
Just on thing:
instead of:
[code]$query = "SELECT price FROM cart";[/code]
should be
[code]$query = "SELECT * FROM cart";[/code]
thank you very much
works perfect now -
Hey guys, one thing more please
If i have another row, "quantity"
If quantity =2 and the price is 240, i want the total price to be 480$.
Please help me this time,
i want it to print the total price for products including quantity, please help me.
the code that prinf gave me is very good but i want it to show me the total price including quantity.
thanks you very much -
That code works,
guys i can't believe that, i solved it in less than 1 minute. ahahahaha
Thank you very much guys -
I got the same error
Warning: Invalid argument supplied for foreach() in E:\Web Design\rolex\test.php on line 9
Warning: Invalid argument supplied for foreach() in E:\Web Design\rolex\test.php on line 9
Warning: Invalid argument supplied for foreach() in E:\Web Design\rolex\test.php on line 9
0
:(
back link problem
in PHP Coding Help
Posted
i need a back link like
a href="../index.php">link</a>
but it doesn't work
i am in c:\web\site
the file is in c:\web\index.php
how can i make a link
../index.php - doesn't work
please help