1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
php.freak
Last Activity:
Aug 18, 2013
Joined:
Oct 29, 2009
Messages:
183
Likes Received:
0
Best Answers:
0
Trophy Points:
26
Gender:
Male
Location:
Sint Truiden Belgium
Occupation:
Php Developer

php.freak

Member, Male, from Sint Truiden Belgium

Married Apr 3, 2013

Last seen:
Aug 18, 2013
    1. php.freak
    2. ziya
      ziya
      Can you send me your config.php please ?
    3. php.freak
      php.freak
      <?php
      require_once("config.php");

      class MySQLDatabase {

      private $connection;

      function __construct() {
      $this->open_connection();
      }

      public function open_connection() {
      $this->connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS);
      if (!$this->connection) {
      die("Database connection failed: " . mysql_error());
      } else {
      $db_select = mysql_select_db(DB_NAME, $this->connection);
      if (!$db_select) {
      die("Database selection failed: " . mysql_error());
      }
      }
      }

      public function close_connection() {
      if(isset($this->connection)) {
      mysql_close($this->connection);
      unset($this->connection);
      }
      }

      public function query($sql) {
      $result = mysql_query($sql, $this->connection);
      $this->confirm_query($result);
      return $result;
      }


      private function confirm_query($result) {
      if (!$result) {
      die("Database query failed: " . mysql_error());
      }
      }

      }

      $database = new MySQLDatabase();
      $db =& $database;

      ?>
    4. php.freak
      php.freak
      Hi every one,

      Anybody help me out to configure fckeditor in php.? I have following error...

      The requested URL /FCKeditor/editor/fckeditor.html was not found on this server.

      Thanks,

      Hamid Raza
  • Loading...
  • Loading...
  • About

    Gender:
    Male
    Location:
    Sint Truiden Belgium
    Occupation:
    Php Developer
    Interests:
    Music,Cricket
    29 year old php developer.

    Interact

  • Loading...
  • Loading...
  • Loading...