Jump to content

razorsese

Members
  • Posts

    66
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

razorsese's Achievements

Member

Member (2/5)

0

Reputation

  1. Have you tried replacing the statement if($i == 5) with if($i % 5 ==0 ) so at every 5 item its creating a new tr?
  2. How I can replace the white line whit something else Example: simple sentence simple sentence simple sentence simple sentence simple sentence simple sentence to something like this $replaced simple sentence simple sentence simple sentence $replaced $replaced simple sentence simple sentence simple sentence $replaced
  3. Why when i'm doing something like in index.php: require("x/y.php") Y is found but when I do something like: index.php require("z.php") z.php require("x/y.php") Isn't working?
  4. Yep. return $this->{ $this->y }(); Actually return the function with name Y.
  5. I have the following code: My question is how i can return both the y and the z in magic function.( works with y alone) class X{ private y; private z; public function __construct($y,$z) { $this->y = $y; $this->z = $z; } public function magic() { return $this->{ $this->y }(); //need to return both Y & Z } }
  6. How I do ajax request in MVC pattern? For example if I send ajax request to index--controller how I can returned it back to ajax because all my data is echoed in index--view.
  7. So i got the following url format localhost:8080/test now i have 1 link named LI if i click on it it becomes: http://localhost:8080/TST/il and in it i have a list of links if i click on one of them it becomes: http://localhost:8080/TST/item/view/19 but now if I want to go back to that list if i click on LI it dosen't go back to http://localhost:8080/TST/il but instead it go to http://localhost:8080/TST/item/view/il the html code for the link is the following <a href="il">LI</a> and my .htaccess is the following : RewriteRule ^([a-zA-Z]*)/?([a-zA-Z]*)?/?([a-zA-Z0-9]*)?/?$ index.php?controller=$1&action=$2&id=$3 [NC]
  8. I dunno if I should use fullscreen for js youtube player.I've heard that are some security problems with it
  9. Hello to everyone!! I just messed around with javascript and I build this : Just search for a video and click it and then it will go into playlist.Playlist stay saved even if you quit browser!! http://crispo.tk Any critics will be appreciate!! P.S : I know it dosen't work with IE( sucks) and is heavly depedent on javascript!
  10. I can't because i use 960 GS
  11. How I can achieve a full screen width div? Currently i'm using this code but when i scroll whit mouse wheel button on the right of the screen the div is not hidden; body{ overflow-x:hidden; } div { margin: 0px -2000px; padding: 0px 2000px; }
  12. I have the following code which works perfectly "<a href=".$t[$key]->title." />"; but if i change it to "<a href="$t[$key]->title" />"; it's appearing Catchable fatal error: Object of class product could not be converted to string in My question is can someone explain why that error pop-up?!
  13. First thanks for answer And second isn't there any work around to put column names from a variable?!
  14. Yes because when i remove the pdo from mysql statement it's working perfectly whit that value And my error report are on
  15. Sorry for my late reply!! The $word value is a value entered by user I always use "honey" for test
×
×
  • 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.