Jump to content

rhasan_82

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rhasan_82's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You can modify your header.php by replacing <link rel="stylesheet" href="style.css" type="text/css" media="all"> with <link rel="stylesheet" href="<?php echo $css_path ?>" type="text/css" media="all"> and then in index.php use an extra line $css_path = "style.css"; and in products/page1.php you should write $css_path = "../style.css"; include ('../header.php');
  2. missing string concatenation in echo replace echo"Count#" $sent "\ BY echo"Count#" .$sent ."\ It will just remove the error. but will not solve your actual problem(count by 5 from zero to 100 displaying each count as it goes) Rakib
  3. This actually depends on what you want to do. Yeah, I also prefer the second one. Think for a code like this class A { public $var; function set_var ( $data) { $this -> var = $data; } } You can simply call the function like $obj -> set_var ( $val ) ; Later you changed your mind to write the set function like this function set_var ( $data) { if ( $data) $this -> var = $data; // or $this -> var = $data * 10; } So though the internal structure of set function has changed, still your calling code will be the same as before and you don't need to change it. But with $object->variable = "Something"; you have to change each place you set the value.
×
×
  • 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.