Jump to content

PunjabHaker

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Everything posted by PunjabHaker

  1. 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
  2. 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
  3. i want to make a script that tell users how many minutes ago was the page updated. any idea please share ?
  4. try mysql_connect("localhost",$user,$password); not mysql_connect(localhost,$user,$password);
  5. 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
  6. 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 ?
  7. still can't fucking understand why it doesn't work could it be from the php ? i have php5 installed
  8. man please do not reply if you don't know how to do it thanks for understanding
  9. set cookie in login page setcookie("logged", $userid, time()+3600); in all pages include this line if (isset($_COOKIE['logged'])){ //code }
  10. no so i want in s.php to make a link that sent me to back page how can i do that ?
  11. 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
  12. both files s.php and index.php start with that code i can't understand why it doesn't work
  13. 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
  14. 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 ?
  15. 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 ?
  16. 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
  17. <?php $string = "string1, string2"; list($string1, $string2) = split(",", $string); echo "$string1, $string2"; ?>
  18. 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
  19. 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
  20. 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
  21. That code works, guys i can't believe that, i solved it in less than 1 minute. ahahahaha Thank you very much guys
  22. 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 :(
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.