Jump to content

IThinkMyBrainHurts

Members
  • Posts

    51
  • Joined

  • Last visited

  • Days Won

    1

IThinkMyBrainHurts last won the day on April 20 2015

IThinkMyBrainHurts had the most liked content!

Profile Information

  • Gender
    Male

IThinkMyBrainHurts's Achievements

Newbie

Newbie (1/5)

3

Reputation

  1. I believe PHP is a progression of C++, that said C++ and Java are very similar in coding style. Also C++ uses a whole lot of the same function names as PHP, which stems from the original C libraries. Java is very portable but, mmm very slow, C++ beats it hands down, hence why the majority of games are written in C++. As Requinix say's,it depends on what you want to do. If you're writing system programs, drivers, serious number cruncher's, simulators etc then it's C++ all the way. On the other hand if you want to write something once and quickly then Java is your bag, it's more akin to a bag of tricks. This bag of tricks is very adaptable and is being used for some very adaptable applications. From having a look at the job market recently, there seems to be a whole lot more C# job adverts than Java, in my area!?
  2. Hi, I'm after compiling a list of responsive menus that only use CSS, no JS allowed!!! Ideally they're to handle at least 3 levels, but 2 levels passable Cheers and hope you lot find this list useful too...
  3. The original is simplest in my view, however a wrapper class for this specific query could look like this (untested): class my_xyz_query{ private $id = null; private $name = null; private $parms = null; public function__construct($name="",$id=""){ $this->parms=array(); $this->parms[] = array(':id',$id,PDO::PARAM_INT); $this->parms[] = array(':name',$name,PDO::PARAM_STR); } public function set_name($name){ $this->name=$name; } public function set_id($id){ $this->id=$id; } public function get_parms(){ $this->parms[0][1]=$this->id; $this->parms[1][1]=$this->name; return $this->params; } }
×
×
  • 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.