Jump to content

fwbbetsy

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

fwbbetsy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I just installed this script and I am getting this error when I click on register: Fatal error: Class 'Site' not found in /home/fwbbetsy/public_html/classes/register_class.php on line 17 not sure what it means? Thanks Betsy
  2. maybe this wll help this is the file I used to input the info on the database <? class DB_Sql { var $Host = "localhost"; // Hostname of our MySQL server. var $Database = "nicevill_ptc"; // Logical database name on that server. var $User = "123"; // User und Password for login. var $Password = "123"; var $Link_ID =0; // Result of mysql_connect(). var $Query_ID =0; // Result of most recent mysql_query(). var $Record = array(); // current mysql_fetch_array()-result. var $Row; // current row number. var $Errno = 0; // error state of query... var $Error = ""; var $num_queries = 0; function halt($msg) { printf("</td></tr></table><b>Database error:</b> %s<br>\n", $msg); printf("<b>MySQL Error</b>: %s (%s)<br>\n", $this->Errno, $this->Error); die("Session halted."); } function free_result($sql) { $this->free_result($sql); } function connect() { if ( 0 == $this->Link_ID ) { $this->Link_ID=mysql_connect($this->Host, $this->User, $this->Password); if (!$this->Link_ID) { $this->halt("Link-ID == false, connect failed"); } if (!mysql_query(sprintf("use %s",$this->Database),$this->Link_ID)) { $this->halt("cannot use database ".$this->Database); } } } function fetch_array($query_id=-1,$query_string="") { if ($query_id!=-1) { $this->query_id=$query_id; } if ( isset($this->query_id) ) { $this->record = mysql_fetch_array($this->query_id); } else { if ( !empty($query_string) ) { $this->halt("Invalid query id (".$this->query_id.") on this query: $query_string"); } else { $this->halt("Invalid query id ".$this->query_id." specified"); } } return $this->record; } function query($Query_String) { // $this->connect(); $this->num_queries++; #printf("<br><font color=red><b>Debug: query = %s</b></font><br>", $Query_String); // Use for debugging $this->Query_ID = mysql_query($Query_String,$this->Link_ID); $this->Row = 0; $this->Errno = mysql_errno(); $this->Error = mysql_error(); if (!$this->Query_ID) { $this->halt("Invalid SQL: ".$Query_String); } return $this->Query_ID; } function next_record() { $this->Record = mysql_fetch_array($this->Query_ID); $this->Row += 1; $this->Errno = mysql_errno(); $this->Error = mysql_error(); $stat = is_array($this->Record); if (!$stat) { mysql_free_result($this->Query_ID); $this->Query_ID = 0; } return $stat; } function seek($pos) { $status = mysql_data_seek($this->Query_ID, $pos); if ($status) $this->Row = $pos; return; } function num_rows() { return mysql_num_rows($this->Query_ID); } function num_fields() { return mysql_num_fields($this->Query_ID); } function f($Name) { return $this->Record[$Name]; } function p($Name) { print $this->Record[$Name]; } function affected_rows() { return @mysql_affected_rows($this->Link_ID); } function get_temps() { while ($row = mysql_fetch_array($this->Query_ID)) { $templ[$row["id"]] = $row['con']; } echo "$templ[1]<br>$templ[2]"; } function get_temp() { return mysql_fetch_array($this->Query_ID); } function query_first($query_string) { // does a query and returns first row $query_id = $this->query($query_string); $returnarray=$this->fetch_array($query_id, $query_string); $this->free_result($query_id); return $returnarray; } function sql_close() { if($this->db_connect_id) { if($this->query_result) { @mysql_free_result($this->query_result); } $result = @mysql_close($this->db_connect_id); return $result; } else { return false; } } } ?>
  3. i have set up a site and I have an error and the site won't load becuase of an error ... This is the error: arning: mysql_connect() [function.mysql-connect]: Access denied for user 'nicevill_fwbbets'@'localhost' (using password: YES) in /home/nicevill/public_html/includes/mysql.php on line 35 Database error: Link-ID == false, connect failed MySQL Error: 0 () Session halted. I am not sure what kind of information you might need to help me so just let me know. Thanks Betsy
  4. I have created a table that gets the user and there referrals but I need it to get the members who have the most referrals here is what I have so far: <?php // Make a MySQL Connection mysql_connect("localhost", "cr4tpuu9_man", "abc123") or die(mysql_error()); mysql_select_db("cr4tpuu9_man") or die(mysql_error()); //Get all the data from the "user" table $result = mysql_query("SELECT * FROM user") or die(mysql_error()); echo "<table border='1'>"; echo "<tr> <th>Name</th> <th>Referral</th> </tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row into a table echo "<tr><td>"; echo $row['name']; echo "</td><td>"; echo $row['ref']; echo "</td></tr>"; } echo "</table>"; ?> Here is the link of what it looks like: http://www.emeraldcoasttraffic.com/contest.php can someone help me out? Thanks Betsy
  5. what do you need to see???  a certain file?  there is a vars file would that help? Betsy
  6. Here is 16-19   $res = mysql_query("select content from html where type='head1'");     $hf = mysql_result($res, 0, "content");     echo("<html><head>\n<script language=\"javascript1.2\" type=\"text/javascript\">\nfunction TestURL()\n{\n var URL = document.nu.url.value;\n if(URL== \"\") {\n alert(\"You must provide an URL before testing!\");\n document.nu.url.focus();\n return false;\n }\n var URL = 'urltest.php?url='+URL;\n window.open(URL, '_blank' );\n return false;\n}\n</script></head>\n");     echo($hf);
  7. <?php include($DOCUMENT_ROOT . '/vars.php'); include($DOCUMENT_ROOT . '/headfoot.php'); mysql_connect($db_host, $db_user, $db_pwd); mysql_select_db($db_name); if ($QUERY_STRING == 'terms') {     uheader();     echo("<div align=center class=\"big\">Terms and Conditions</div>\n");     $res = mysql_query("select content from html where type='terms'");     $terms = mysql_result($res, 0, "content");     echo($terms);     ufooter(); } else {     $langs = array("English" => "English", "Arabic" => "Arabic", "Chinese" => "Chinese", "Czech" => "Czech", "Danish" => "Danish", "Dutch" => "Dutch", "Estonian" => "Estonian", "Finnish" => "Finnish", "French" => "French", "German" => "German", "Greek" => "Greek", "Hebrew" => "Hebrew", "Hungarian" => "Hungarian", "Icelandic" => "Icelandic", "Italian" => "Italian", "Japanese" => "Japanese", "Korean" => "Korean", "Latvian" => "Latvian", "Lithuanian" => "Lithuanian", "Norwegian" => "Norwegian", "Polish" => "Polish", "Portuguese" => "Portuguese", "Romanian" => "Romanian", "Russian" => "Russian", "Spanish" => "Spanish", "Swedish" => "Swedish", "Turkish" => "Turkish");     $res = mysql_query("select content from html where type='head1'");
  8. yes but it won't let me ... must be to big can I send it to your email? Betsy
  9. I am trying to set up a new site but keep getting errors on it ... Here is one of the errors I am getting: Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/cr4tpuu9/public_html/signup.php on line 16 If anyone can help me I would appriciate it. Thanks betsy
  10. in the admin area says to set the cron job to 1 ... so I did that and it sends me an e-mail says /bin/sh: 1: command not found Betsy
  11. /usr/bin/php /home/CHangeme/public_html/cronner/clickcontest.cron.act.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/promocontest.cron.act.php >/dev/null ( RAN MONTHLY ) /usr/bin/php /home/CHangeme/public_html/cronner/inactivity.60daydelete.cron.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/inactivity.daily.cron.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/todaysurfpromo.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/classmode.act.php.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/Scheduled_Email_Sender.cron.php >/dev/null ( RUN NEWSLETTER HOW EVER OFTEN YOU WANT IT TO RUN ) /usr/bin/php /home/CHangeme/public_html/cronner/movecredits.cron.act.php >/dev/null ( RAN DAILY ) ##################### #### Surf 4 Cash ############# /usr/bin/php /home/CHangeme/public_html/cronner/admincash4surfpay_silverm.cron.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/admincash4surfpay_goldm.cron.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/admincash4surfpay_freem.cron.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/admincash4surfpay_bronzem.cron.php >/dev/null ( RAN DAILY ) does this help at all Betsy
  12. I am having trouble with some settings but don't know how to fix them if someone could help me with this please let me know and I will send you what ever you need... I have another message called need help with script. thanks Betsy
  13. I have a website and it has a surfing compition and is suppose to have daily results but it is not doing this.  I did find a txt file and wondered if this might be the problem.  If anyone has some time to help me out please let me know here is the file: /usr/bin/php /home/CHangeme/public_html/cronner/clickcontest.cron.act.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/promocontest.cron.act.php >/dev/null ( RAN MONTHLY  ) /usr/bin/php /home/CHangeme/public_html/cronner/inactivity.60daydelete.cron.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/inactivity.daily.cron.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/todaysurfpromo.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/classmode.act.php.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/Scheduled_Email_Sender.cron.php >/dev/null ( RUN NEWSLETTER  HOW EVER OFTEN YOU WANT IT TO RUN  ) /usr/bin/php /home/CHangeme/public_html/cronner/movecredits.cron.act.php >/dev/null ( RAN DAILY ) ##################### #### Surf 4 Cash ############# /usr/bin/php /home/CHangeme/public_html/cronner/admincash4surfpay_silverm.cron.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/admincash4surfpay_goldm.cron.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/admincash4surfpay_freem.cron.php >/dev/null ( RAN DAILY ) /usr/bin/php /home/CHangeme/public_html/cronner/admincash4surfpay_bronzem.cron.php >/dev/null ( RAN DAILY ) ####### end ################## Or you can set them up like so : wget -q http://www.CHangeme.com/cronner/movecredits.cron.act.php >/dev/null
  14. I changed it: <? $hostnm = "localhost"; $usernm = "emeraldc_ustraff"; $pwd = "emeraldc_ustraff"; $dbName = "emeraldc_dbtraff"; $site1="http://www.emeraldcoasttraffic.com"; $data = mysql_query("SELECT * FROM user) or die(mysql_error()); print "<table border cellpadding=3>"; while($info = mysql_fetch_array( $data )) { print "<tr>"; print "<th>Name:</th> <td>".$info['name'] . "</td> "; print "<th>Credits:</th> <td>".$info['credits'] . " </td></tr>"; } print "</table>"; ?> still getting an error but a different one: Parse error: parse error, unexpected T_STRING in /home/emeraldc/public_html/test.php on line 12 thanks Betsy
  15. I am trying to get this code to work but keep getting errors: <? $hostnm = "localhost"; $usernm = "emeraldc_ustraff"; $pwd = "emeraldc_ustraff"; $dbName = "emeraldc_dbtraff"; $site1="http://www.emeraldcoasttraffic.com"; $data = mysql_query("SELECT * FROM "user") or die(mysql_error()); Print "<table border cellpadding=3>"; while($info = mysql_fetch_array( $data )) { Print "<tr>"; Print "<th>Name:</th> <td>".$info['name'] . "</td> "; Print "<th>Credits:</th> <td>".$info['credits'] . " </td></tr>"; } Print "</table>"; ?> The error I get is: Parse error: parse error, unexpected T_STRING in /home/emeraldc/public_html/test.php on line 10 Any help would be appricated. thanks Betsy
×
×
  • 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.