PunjabHaker
Members-
Posts
33 -
Joined
-
Last visited
Never
Everything posted by PunjabHaker
-
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
-
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 ?
-
set cookie in login page setcookie("logged", $userid, time()+3600); in all pages include this line if (isset($_COOKIE['logged'])){ //code }
-
$myip = getenv("REMOTE_ADDR"); that ?
-
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
-
[SOLVED] How to Split string ? Please Help
PunjabHaker replied to PunjabHaker's topic in PHP Coding Help
<?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
-
[SOLVED] Total Numbers from database, Help
PunjabHaker replied to PunjabHaker's topic in PHP Coding Help
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 -
[SOLVED] Total Numbers from database, Help
PunjabHaker replied to PunjabHaker's topic in PHP Coding Help
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 -
[SOLVED] Total Numbers from database, Help
PunjabHaker replied to PunjabHaker's topic in PHP Coding Help
That code works, guys i can't believe that, i solved it in less than 1 minute. ahahahaha Thank you very much guys -
[SOLVED] Total Numbers from database, Help
PunjabHaker replied to PunjabHaker's topic in PHP Coding Help
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 :(