Jump to content

roadmap

Members
  • Posts

    152
  • Joined

  • Last visited

Everything posted by roadmap

  1. Hello, I am getting an error in my script and I was wondering if someone could view the code and possibly spply a solution. The error is below and the entire code. The error line is bold and underlined also. Thank in advance. >Fatal error: Cannot access empty property in (MY PATH) db_mysql.php on line 129 <?php class sqldb { var $scriptname = ""; //nama script ni var $user=""; var $pass=""; var $server=""; var $database=""; var $query_id = 0; // query id var $query_counter = 0; var $link_id = 0; var $use_persistent = "0"; var $insert_into = ""; var $insert_data = array(); /* ----------------------------------------------------------- */ function start($server,$user,$password,$database) { $this->server = $server; $this->user = $user; $this->pass = $password; $this->database = $database; $this->connect(); } function connect() { if ($this->use_persistent == 0) { $this->link_id = mysql_connect($this->server,$this->user,$this->pass); } else { $this->link_id = mysql_pconnect($this->server,$this->user,$this->pass); } if (!$this->link_id) { $this->error("Connection to Database ".$this->database." Failed"); } if(!@mysql_select_db($this->database, $this->link_id)) { $this->error("This database (".$this->database.",)cannot be used"); } unset ($this->password); } function show_all() { return "<br /><br /><b> Debug Mode - All Queries :</b><hr size=1> ".$this->query_show."<br />"; } function query($string) { if (trim($string != "")) { $this->query_counter++; $this->query_show .= stripslashes($string)."<hr size='1'>"; $this->query_id = mysql_query($string); } if (!$this->query_id) { $this->error("mySQL Error on Query : ".$string); } return $this->query_id; } function query_insert() { if ( $this->insert_into && (is_array($this->insert_data)) ) { $this->query_counter++; $this->query_show .= stripslashes($string)."<hr size='1'>"; foreach ($this->insert_data as $key => $val) { $value .= $key."='".$val."',"; } if ( (substr($value,-1)) == "," ) { $value = substr($value,0,-1); } $this->query_id = mysql_query("INSERT INTO ".$this->insert_into." SET $value"); } if (!$this->query_id) { $this->error("mySQL Error on Query : ".$string); } return $this->query_id; } function fetch_array($query_id=-1) { if ($query_id != -1) { $this->query_id = $query_id; } $this->result = mysql_fetch_array($this->query_id); return $this->result; } function free_result($query_id=-1) { if ($query_id != -1) { $this->query_id = $query_id; } return @mysql_free_result($this->query_id); } function query_once($query_string) { $this->query($query_string); $get = $this->fetch_array($this->query_id); $this->free_result($this->$query_id); return $get; } function num_rows($query_id=-1) { if ($quert_id != -1) { $this->query_id=$query_id; } return mysql_num_rows($this->query_id); } function insert_id() { return mysql_insert_id($this->link_id); } function get_errordesc() { $this->error=mysql_error(); return $this->error; } function get_error_no() { $this->errorno=mysql_errno(); return $this->errorno; } function close() { mysql_close(); } function error($msg) { global $HTTP_SERVER_VARS,$root; $this->error_desc=mysql_error(); $this->error_no=mysql_errno(); $the_error = "<b>WARNING!</b><br />"; $the_error .= "DB Error $this->scriptname: $msg <br /> Some more usefull information you might want to know: <br />"; $the_error .= "<li> Mysql Error : $this->error_desc"; $the_error .= "<li> Mysql Error no # : $this->error_no"; $the_error .= "<li> Date : ".date("F j, Y, g:i a"); $the_error .= "<li> Referer: ".$HTTP_SERVER_VARS['HTTP_REFERER']; $the_error .= "<li>Script: ".$HTTP_SERVER_VARS['REQUEST_URI']; echo $the_error; die(); } } // end of class ?>
  2. I have been adding a few different scripts to my new site lately, some have gone well others contain errors. Here is the error i'm getting for my rating script: Here is the rate php below. The line in question is "$rate = round($lpoints / $lvotes,3);" if i'm not mistaken. I've tried changeing the number 3 to other numbers but that didn't fix it. Another one in my admin section is: Note: "mysiteusername" is actually correct and not mysiteusername. Here is a site with the script running: http://pickme.3x.ro/about.php
  3. I tried that also but it didn't work.
  4. Thanks for your help guys but it just isn't working. I've done everything the 2nd post said.
  5. Here's one in action: http://www.ratemykitten.com/
  6. Here is the error: It's suppose to create the database but won't. I've tried to do it with a db and then tried creating on then running it. Neither seems to work.
  7. Thanks for the quick response. The values entered are the defaults and will be changed to the correct info.
  8. Can someone show me how to properly set that up? Also, i'm suppose to run a installer but how can I set the db name if it hasn't been created yet?
  9. D-Ring README
  10. Hello, I have this webring script I need some help in changing. I'm trying to get it to ask people who sign-up for it to ask for 468x60 banners and have the script display it. Can anyone figure this out for me? I don't know what to do. Here are the codes: config.php functions.php getcode.php goring.php index.php smtpmail
  11. No, I messed up. I want the google info out and I want the bottom script in. The bottom banner rotation javascript would be in the block instead.
  12. Below I have 2 scripts, I was wondering if some one could write the second script into the first one? I've tried but each attempt fails. The first is a google ad block for 468x60 ads the second is a javascript ad rotator.
  13. Im using ipb 2.0 I checked the mods threads from the place I got it from. No one else had been having the problem. On one of my other boards I get the code when I try to post sometimes. That's a different site but it's hosted on TCH. Maybe it's a browser problem or something?
  14. I was testing out my "toplist" mod for my forums and got that error.
  15. I have been getting Error 406 - Not Acceptable mesages when trying to post at 2 of my forums. Whats it the probably cause and hoe can I remedy this situation?
  16. thanks yo You know what though, I never had the nameserver info in, I just fowared the domains to my primary domain. Do I still need to do the above in order to completely mask my domain names or will it do it automaticlly.
  17. Hello, I would like to know how can I change the primary domain name I used to get an account with TCH to a new one more fitting for my sites content? Also if I do change it and keep the old one pointing at the site will I have problems with my databases, mysql, paths etc?
  18. I have run across this little program what do you all think? http://www.siteinteractive.com/acctman/
  19. Thanks to all, I will give those a look.
  20. Hello my Dear Saints, I am looking for a script that will allow someone to download a product from my site once they have paid. Do any of you have any suggestions or ideas about this type of script? Or maybe you have seen one described above used elsewhere? Please post any information you may have here and thank you!
  21. oscommerce does, here's a thread; http://forums.oscommerce.com/index.php?showforum=21 They have a module you can download and add but be warned alot of people are having problems getting this to work. I just came here looking for more help to get mine working right.
  22. I'm running on osCommerce version osCommerce 2.2-MS2 and I want to add the "PayPal Website Payments Pro OSCommerce Payment Module", can this be done using 2.2-MS2 or do we need to upgrade to a newer version? You guys have osCommerce 2.2-MS2 as the default so I installed it.
  23. I had to re-install it and start over but thanks for the quick response.
×
×
  • Create New...