Jump to content

3raser

Members
  • Posts

    815
  • Joined

  • Last visited

Everything posted by 3raser

  1. How can I require a page from a different website, with the file's permissions being 777? I want to use it to shutdown sites that use my script, that are breaking the TOS/Rules via a secret way.
  2. I've tried this: Going into the Xampp/Apache folder and installing it manually with the batch file. I get this: Installing Apache as a service Installing service "apache"... Can't create service "Apache2.2". Service "apache" is not installed. Starting service "apache"... Can't start service "Apache2.2". Service "apache" is not started. Press any key to continue . . . And when I click Start now, it says this: WARNING: terminating worker thread 0 Apache started And when I go to file:///C:/xampp/htdocs/index.php it says this: Something is wrong with the XAMPP installation :-(
  3. Apache still isn't working.
  4. I'm fucking pissed off now. Why is it everytime I go to the .php file it wants to fucking download it instead of display it?!?!?!?!?!~!!!!!!!!!!!!!!!!!!!!!!!fhdugo
  5. I'm not sure if I'm posting this in the correct section. Anyways, I know XAMPP is the biggest tool used for PHP developers and programmers, and I'm giving my first go at it. Everything is installed. But one problem. I have MySQL running, but when I install APACHE by clicking the checkbox, then click 'Start', my Control Panel just freezes and at the bottom it says; Apache service started... Busy... Why does it do this?
  6. Ah, thank you for pointing that out. Simple mistakes.
  7. Current code; <?php require "global_navigation.php"; ?> <?php //deleting //connect to database $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $delete_id = $_POST['iddelete']; if (!$delete_id) { } else { //write mysql_query("DELETE FROM posts WHERE id='$delete_id'") or die(mysql_error()); echo "<span style='color:green'>Successfully deleted post ID $delete_id.</span>"; } ?> <?php //user-editing //connect to database $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $name = $_SESSION['username']; //extract $extract = mysql_query("SELECT * FROM users WHERE username='$name'"); $numrows = mysql_num_rows($extract); while ($row = mysql_fetch_assoc($extract)) { $staffcheck = $row[staff]; } if ($staffcheck==2) { $user_edit = $_GET['user']; if (!$user_edit) { } else { //display data $get = mysql_query("SELECT * FROM users WHERE username='$user_edit'"); while ($row = mysql_fetch_assoc($get)) { // get data $points_c = $row['points']; $posts_c = $row['postcount']; $user_uname_c = $row['username']; $points = $_POST['points']; $posts = $_POST['posts']; $user_uname = $_POST['username']; if(!isset($points, $posts, $user_uname)) { die("<form action='acp.php?user=". $user_edit ."' method='POSTA'>Username: <input type='text' name='username' value='". $user_uname_c ."'><br>Posts: <input type='text' name='POST' value='". $posts_c ."'><br> Points: <input type='text' name='points' value='". $points_c ."'><br><input type='submit' value='Update user: ". $user_edit ."'></form><br><br>Make sure all fields are filled out!"); } else { //update everything mysql_query("UPDATE users SET points='$points' WHERE username='$user_edit'") or die(mysql_error()); mysql_query("UPDATE users SET posts='$posts' WHERE username='$user_edit'") or die(mysql_error()); mysql_query("UPDATE users SET username='$user_uname' WHERE username='$user_edit'") or die(mysql_error()); echo "User updated!"; } } } } else exit ?> <?php //promoting //connect to database $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $userw = $_POST['userw']; if (!$userw) { } else { //write mysql_query("UPDATE users SET staff='2' WHERE username='$userw'") or die(mysql_error()); echo "<span style='color:green'>Successfully promoted ". $userw ." to admin!</span>"; } ?> <?php //promoting //connect to database $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $userd = $_POST['userd']; if (!$userd) { } else { //write mysql_query("UPDATE users SET staff='0' WHERE username='$userd'") or die(mysql_error()); echo "<span style='color:green'>Successfully demoted ". $userd ." to a user!</span>"; } ?> <?php //banning //connect to database $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $ban = $_POST['ban_id']; if (!$ban) { } else { //extract $extract2 = mysql_query("SELECT * FROM users WHERE username='$ban'"); $numrows2 = mysql_num_rows($extract2); while ($row2 = mysql_fetch_assoc($extract2)) { $staffcheck2 = $row2[staff]; } if ($staffcheck2 ==1 || $staffcheck2 == 2) { echo "<span style='color:red'>You can't ban staff!</span>"; } else { //banning the account $banuser = mysql_query("UPDATE users SET banned='1' WHERE username='$ban'"); echo "<span style='color:green'>The user ".$ban." has successfully been banned!</span>"; } } ?> <?php //unbanning //connect to database $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $uban = $_POST['unban_id']; if (!$uban) { } else { //extract $extract3 = mysql_query("SELECT * FROM users WHERE username='$uban'"); $numrows3 = mysql_num_rows($extract3); while ($row3 = mysql_fetch_assoc($extract3)) { $staffcheck3 = $row3[staff]; } //unbanning the account mysql_query("UPDATE users SET banned='0' WHERE username='$uban'"); echo "<span style='color:green'>The user ".$uban." has successfully been unbanned!</span>"; } ?> <?php $name = $_SESSION['username']; //extract $extract = mysql_query("SELECT * FROM users WHERE username='$name'"); $numrows = mysql_num_rows($extract); while ($row = mysql_fetch_assoc($extract)) { $staffcheck = $row[staff]; } if ($staffcheck==2) { echo " <a href='view_reports.php'>View reports</a> <h3>Promote a user to ADMIN</h3> <form action='acp.php' method='POST'> Username: <input type='text' name='userw'> <input type='submit' value='Promote'> <hr> </form> <h3>Demote a user</h3> <form action='acp.php' method='POST'> Username: <input type='text' name='userd'> <input type='submit' value='Demote'> <hr> </form> <div class='box'> <h3>Delete a post</h3> <form action='acp.php' method='POST'> Message ID: <input type='text' name='iddelete'><input type='submit' value='Delete'><hr> </form> <h3>Ban Account</h3> <form action='acp.php' method='post'> Username: <input type='text' name='ban_id'> <input type='submit' value='Ban User'><hr></form> <h3>Unban Account</h3> <form action='acp.php' method='POST'> Username: <input type='text' name='unban_id'> <input type='submit' value='Unban User'><hr> </form> </div> "; } else { echo "<center><b><span style='color:red'>Only admins can enter this area!</span></b>"; } ?> <?php require("global_footer.php") ?>
  8. Doesn't help either. It just sends me to acp.php
  9. I don't think that that's my error. I need it to display that the user has been updated. And it's not, every time I fill out the information and click Update user, it just brings me right back to the form. It doesn't display: "User has been updated!" or anything like that.
  10. After filling out the information, why doesn't it say "User updated!"? <?php //user-editing //connect to database $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $name = $_SESSION['username']; //extract $extract = mysql_query("SELECT * FROM users WHERE username='$name'"); $numrows = mysql_num_rows($extract); while ($row = mysql_fetch_assoc($extract)) { $staffcheck = $row[staff]; } if ($staffcheck==2) { $user_edit = $_GET['user']; if (!$user_edit) { } else { //display data $get = mysql_query("SELECT * FROM users WHERE username='$user_edit'"); while ($row = mysql_fetch_assoc($get)) { // get data $points_c = $row['points']; $posts_c = $row['postcount']; $user_uname_c = $row['username']; $points = $_POST['points']; $posts = $_POST['posts']; $user_uname = $_POST['username']; if (!$points || !$posts || !$user_uname) { die("<form action='acp.php?user=". $user_edit ."' method='POSTA'>Username: <input type='text' name='username' value='". $user_uname_c ."'><br>Posts: <input type='text' name='POST' value='". $posts_c ."'><br> Points: <input type='text' name='points' value='". $points_c ."'><br><input type='submit' value='Update user: ". $user_edit ."'></form><br><br>Make sure all fields are filled out!"); } else { //update everything mysql_query("UPDATE users SET points='$points' WHERE username='$user_edit'") or die(mysql_error()); mysql_query("UPDATE users SET posts='$posts' WHERE username='$user_edit'") or die(mysql_error()); mysql_query("UPDATE users SET username='$user_uname' WHERE username='$user_edit'") or die(mysql_error()); echo "User updated!"; } } } } else exit ?>
  11. Thank you! It works!
  12. On my site, http://domination.comyr.com/progress/login.php, it's accepting any password. Why is it doing that? <?php require "global_navigation.php"; ?> <?php session_start(); $username = $_POST['username']; $password = $_POST['password']; $secret_password = md5("password"); if ($_SESSION['username']) die("You're currently logged in already! <a href='index.php'>Return home</a>"); if (!$username) die(" <font face='arial' size='2'> <html><center><br /><br /><h3>Login</h3> <form action='login.php' method='POST'> <div class='box'>Username: <input type='text' name='username'></div> <div class='box'>Password: <input type='password' name='password'></div> <div class='box'><input type='submit' value='Login'></div> </form></center> "); //protection $before = array('(', ')', '^', '<', '>', '`', '*', '<script>', '</script>', ';DROP TABLE users;', 'users', 'DROP', 'TABLE'); $after = array('', '', '', '', '', '', '', '', '', '', '', '', ''); $output = str_replace($before, $after, $username); if ($username&&$password) { $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $query = mysql_query("SELECT * FROM users WHERE username='$output'"); $numrows = mysql_num_rows($query); if ($numrows!=0) { while ($row = mysql_fetch_assoc($query)) { $dbusername = $row['username']; $dbpassword = $row['password']; } if ($output==$dbusername&&$secret_password==$dbpassword) { echo "<div class='box'>Successfully logged in! <a href='index.php'>Return home</a></div>"; $_SESSION['username']=$output; } else echo "<div class='box'><span style='color:red'>Incorrect password!</span></div>"; } else die("<div class='box'><span style='color:red'>That user doesn't exist!</span></div>"); } else die("<div class='box'><span style='color:red'>Please enter a username and password</span></div>"); ?><?php require("global_footer.php") ?>
  13. Bump
  14. Why isn't anything showing up? http://domination.comyr.com/progress/search_input.php (The search by name feature) <?php require "global_navigation.php"; ?> <?php $id = $_POST['id']; $name = $_POST['username']; //connect to database $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); //extract $extract = mysql_query("SELECT * FROM posts WHERE name='$name'"); $numrows = mysql_num_rows($extract); while ($row = mysql_fetch_assoc($extract)) { $construct = "SELECT * FROM posts WHERE name='$name'"; $run = mysql_query($construct); $foundnum = (mysql_num_rows($run)); if ($foundnum ==0) { echo "This user hasn't posted!"; } $id = $row[id]; $message = $row[message]; echo "<hr><font face='arial' size='3'><center>($id) Posted by: <b>$name</b></img><br><br><b>$message</b><br /><br /></center><hr>"; } ?><?php require("global_footer.php"); ?>
  15. Alright, I updated my code and fixed a few things you mentioned. <?php $ip = $_SERVER[REMOTE_ADDR]; $action = $_GET['a']; //prosses of getting the numbers for users $construct = "SELECT * FROM agreedusers WHERE ip='$ip'"; $run = mysql_query($construct); $foundnum = (mysql_num_rows($run)); if ($foundnum ==0) die("You have not yet agreed to the TOS! TOS content goes here. <a href='index.php?a=yes'>I agree</a>- If you don't agree, leave this page now."); if ($action =="yes") { echo "You've agreed to the TOS.<br><a href='index.php'>Back</a>"; mysql_query("INSERT INTO agreedusers VALUES ('$ip')") or die(mysql_error()); } else { echo "You've agreed to the TOS."; } ?> Now, when I click the agree link it doesn't do anything.
  16. <?php mysql_connect("", "", "") or die("Error connecting to the MySQL database!"); mysql_select_db("") or die("Error connecting to the selected database!"); $ip = $_SERVER[REMOTE_ADDR]; $action = $_GET['a']; //prosses of getting the numbers for users $construct = "SELECT * FROM agreedusers WHERE ip='$ip'"; $run = mysql_query($construct); $foundnum = (mysql_num_rows($run)); if ($foundnum ==1) die("You have not yet agreed to the TOS! TOS content goes here. <a href='?a=yes'>I agree</a>- If you don't agree, leave this page now."); if ($action =="yes") { echo "You've agreed to the TOS.<br><a href='index.php'>Back</a>"; mysql_query("INSERT INTO agreedusers ('$ip')") or die(mysql_error()); } else { echo "You've agreed to the TOS."; } ?> http://sawthememusic.comli.com/ It says you've agreed when you really haven't, and it says I have an error in my SQL syntax at http://sawthememusic.comli.com/?a=yes
  17. <html> <head><title>Dooms day vote - What do you think will happen?...</title> <style> body { text-align:center; font-family:arial; } h1 { color:red; } </style> <body> <h1>Dooms day vote</h1> <?php $vote = $_GET['vote']; $ip = $_SERVER['REMOTE_ADDR']; //prosses of getting the numbers for users $construct = "SELECT * FROM votes WHERE ip='$ip'"; $run = mysql_query($construct); $foundnum = (mysql_num_rows($run)); $count_my_page1 = ("yescount.txt"); $hits1 = file($count_my_page1); $fp1 = fopen($count_my_page1 , "w"); fputs($fp1 , "$hits[0]"); fclose($fp1); $count_my_page = ("nocount.txt"); $hits = file($count_my_page); $fp = fopen($count_my_page , "w"); fputs($fp , "$hits[0]"); fclose($fp); if ($foundnum ==1) die("Already voted! Stats: <b>". $hits[0] ."</b> voted yes! <b>". $hits1[0] ."</b> voted no!"); if (!$vote) die("<a href='index.php?vote=yes'>It's going to happen! RUN!</a> || <a href='index.php?vote=no'>It's not going to happen! DUH!</a>"); if ($vote =="yes") { $count_my_page1 = ("yescount.txt"); $hits1 = file($count_my_page1); $hits1[0] ++; $fp1 = fopen($count_my_page1 , "w"); fputs($fp1, "$hits1[0]"); fclose($fp1); echo "A total of ".$hits1[0]." people have voted it's going to happen!"; $write_their_vote = mysql_query("INSERT INTO votes VALUES ('$ip')") or die(mysql_error()); } if ($vote =="no") { $count_my_page = ("nocount.txt"); $hits = file($count_my_page); $hits[0] ++; $fp = fopen($count_my_page , "w"); fputs($fp , "$hits[0]"); fclose($fp); echo "A total of ".$hits[0]." people have voted it's not going to happen!"; $write_their_vote = mysql_query("INSERT INTO votes VALUES ('$ip')") or die(mysql_error()); } ?> </body> </html>
  18. I don't understand what you mean...
  19. It wont say if the nospam code is correct... :/ <?php require "global_navigation.php"; ?> <head><script language="javascript" type="text/javascript"> /*This is the location of your PHP script*/ var url = "register.php?param="; function updateName() { document.getElementById('checked').innerHTML = "Verifying..."; var name = document.getElementById("anti").value; http.open("GET", url + escape(name), true); http.onreadystatechange = handleHttpResponse; http.send(null); } function handleHttpResponse() { if (http.readyState == 4) { results = http.responseText; /* Again, we're assuming your username input ID is "username" */ var name = document.getElementById("anti").value; /* If the username is available, Print this message: */ if(results == "<?php echo $anti1; ?>") results = "<font color=\"green\"><i>"+name+"</i> is correct!</font>"; document.getElementById('checked').innerHTML = results; } } function getHTTPObject() { var xmlhttp; if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } return xmlhttp; } var http = getHTTPObject(); </script></head> <?php $username = $_POST['username']; $password = $_POST['password']; $signature = $_POST['signature']; $email = $_POST['email']; $anti = $_POST['anti']; if (!$username || !$password) die (" <form action='register.php' method='POST'> <b>Please note that the following characters: `*<>() will be removed upon registering.</b><br /><br /> * Username: <input type='text' name='username' maxlength='10'><br /><br /> * Anti-spam verification (Code=nospam54): <input type='text' name='anti' onblur='updateName();><div name='checked' id='checked'><br /><br /> * Password: <input type='password' name='password' maxlength='15'></div><br /><br /> Signature:<br /> <textarea maxlength='230' name='signature' rows='10' cols='40'></textarea><br /><br /> Email: <input type='text' name='email' max='50'> <input type='submit' value='Register'> </form>"); $u = addslashes($_GET['param']); $checked = strtolower($checked); $u2 = strtolower($u); if($u2 == $anti1) { echo "$u is correct!"; } if (!$anti) die ("You didn't enter in the anti-spam verification code!"); if ($anti=="$anti1") { if (strlen($password)<=$passmax) { echo "Password must be more then $passmax characters long! <a href='register.php'> << Back </a>"; } else { if (strlen($username)<=$usermax) { echo "Username must be more then $usermax characters long! <a href='register.php'> << Back </a>"; } else { $ip = $_SERVER['REMOTE_ADDR']; //protection $before = array('(', ')', '^', '<', '>', '`', '*', '<script>', '</script>', ';DROP TABLE users;', 'users', 'DROP', 'TABLE'); $after = array('', '', '', '', '', '', '', '', '', '', '', '', ''); $output = str_replace($before, $after, $username); //protection $output3 = str_replace($before, $after, $password); //protection $output4 = str_replace($before, $after, $email); //protection $output2 = str_replace($before, $after, $signature); $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $query = mysql_query("SELECT * FROM users WHERE username='$output'"); $numrows = mysql_num_rows($query); if ($numrows!=0) { echo "This username already exists!"; } else { //write $write = mysql_query("INSERT INTO users VALUES ('','$output','$output3','$output4','$ip','$output2', '', '0', '0', '0', '$email')") or die(mysql_error()); echo "<div class='box'>Thank you for registering $output! Login <a href='login.php'>here</a>!</div>"; } } } } else { echo "You entered the incorrect anti-spam verification code!"; } ?><?php require("global_footer.php"); ?> http://www.commentbb.site11.com
  20. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/a2861422/public_html/index.php on line 64 <html> <head> <title>Testing</title> <script language="javascript" type="text/javascript"> /*This is the location of your PHP script*/ var url = "register.php?nospam="; function updateName() { document.getElementById('checked').innerHTML = "Verifying..."; var name = document.getElementById("nospam").value; http.open("GET", url + escape(name), true); http.onreadystatechange = handleHttpResponse; http.send(null); } function handleHttpResponse() { if (http.readyState == 4) { results = http.responseText; /* Again, we're assuming your username input ID is "username" */ var name = document.getElementById("nospam").value; /* If the username is available, Print this message: */ if(results == "") results = "<font color=\"green\"><i>"+name+"</i> is correct!</font>"; document.getElementById('checked').innerHTML = results; } } function getHTTPObject() { var xmlhttp; if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } return xmlhttp; } var http = getHTTPObject(); </script> </head> <body> <?php //// Change these to reflect your database details: /////////////////// $dbhost = ''; $dbuser = ''; $dbpass = ''; $dbname = ''; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die("Error connecting to mysql"); mysql_select_db($dbname); $u = addslashes($_GET['param']); //// Change these to reflect your database details too: ////////////////// $query = "SELECT username FROM users WHERE username='$u'; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $checked = $row['username']; } //// Now we’ll make the requested comparison in lowercase so that it’s correct: /////////////////// $checked = strtolower($checked); $u2 = strtolower($u); //// Message to Print if the username is taken: /////////////////// if($u2 == $checked) { echo "$u is Taken!"; } mysql_close($conn); ?> <form> <h1>AJAX Username Availability Checker DEMO</h1> <p>Elliott, Joey, and Sam are taken...</p> <table> <tr> <td align="right">Username:</td><td><input name="username" type="text" id="username" onblur="updateName();" /></td><td><div name="checked" id="checked"></div></td> </tr> <tr> <td align="right">Password:</td><td colspan="2"><input type="password" name="pass" id="pass" /></td> </tr> <tr> <td> </td><td align="right"><input type="submit" value="Submit" /></td><td> </td> </tr> </table> </form> </body> </html>
  21. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/merchant/public_html/services/global_navigation.php:3) in /home/merchant/public_html/services/global_navigation.php on line 3 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><!-- start: portal --> <?php session_start(); ?> <?php require "global_settings.php"; ?> <title><?php echo $sitetitle; ?></title> <!-- start: headerinclude --> <link rel="alternate" type="application/rss+xml" title="Latest Threads (RSS 2.0)" href="http://www.commentbb.com/forum/syndication.php"> <link rel="alternate" type="application/atom+xml" title="Latest Threads (Atom 1.0)" href="http://www.commentbb.com/forum/syndication.php?type=atom1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <script type="text/javascript" src="ind_files/prototype.js"></script> <script type="text/javascript" src="ind_files/general.js"></script> <script type="text/javascript" src="ind_files/popup_menu.js"></script> <link type="text/css" rel="stylesheet" href="ind_files/css.css"> <script type="text/javascript"> <!-- var cookieDomain = ".www.commentbb.com"; var cookiePath = "/forum/"; var cookiePrefix = ""; var deleteevent_confirm = "Are you sure you want to delete this event?"; var removeattach_confirm = "Are you sure you want to remove the selected attachment from this post?"; var loading_text = 'Loading. <br />Please Wait..'; var saving_changes = 'Saving changes..'; var use_xmlhttprequest = "1"; var my_post_key = "951c436f73edbe96296e725eb77fda57"; var imagepath = "images/Majestic"; // --> </script> <!-- end: headerinclude --> </head><body> <!-- start: header --> <a name="top" id="top"></a> <div id="header"> <div class="logo"> <div class="pname"><font face="Trebuchet MS"><!-- start: nav_bit_active --> <span class="active"><?php echo $sitetitle; ?></i></span></font></div> <ul><font face="Trebuchet MS"><!-- links are in reverse order --> </font> <li><font face="Trebuchet MS"><a href="http://www.commentbb.com/"><span>Nav 10</span></a></font></li> <li><font face="Trebuchet MS"><a href="http://www.commentbb.com"><span>Nav 11</span></a></font></li> <li><font face="Trebuchet MS"><a href="http://www.commentbb.com/"><span>Nav 12</span></a></font></li> <li><font face="Trebuchet MS"><a href="http://www.commentbb.com/"><span>Nav 13</span></a></font></li> </ul> </div> <div class="menu"> <font face="Trebuchet MS"> <!-- start: nav --> </font> <div class="pname"><font face="Trebuchet MS"><!-- start: nav_bit_active --> <span class="active"><?php echo $sitetitle; ?></i></span></font></div> </div> <div id="panel"> <font face="Trebuchet MS"> <!-- start: header_welcomeblock_member --> </font> <span class="welcome"></span><font face="Trebuchet MS"> </font><span class="links"><font face="Trebuchet MS"><a href="http://www.commentbb.com/"><span>Nav 1</span></a> <!-- start: header_welcomeblock_member_moderator --> <a href="http://www.commentbb.com/"><span>Nav 2</span></a> <!-- end: header_welcomeblock_member_moderator --> <!-- start: header_welcomeblock_member_admin --> <a href="http://www.commentbb.com/"><span>Nav 3</span></a> <!-- end: header_welcomeblock_member_admin --> </font> <span class="float_right"> </span><font face="Trebuchet MS"><a href="http://www.commentbb.com/"><span>Nav 4</span></a> <!-- start: header_welcomeblock_member_moderator --> <a href="http://www.commentbb.com/"><span>Nav 5</span></a> <!-- end: header_welcomeblock_member_moderator --> <!-- start: header_welcomeblock_member_admin --> <a href="http://www.commentbb.com"><span> Nav 6</span></a> <!-- end: header_welcomeblock_member_admin --> </font> <span class="float_right"> </span><font face="Trebuchet MS"><a href="http://www.commentbb.com/"><span> Nav 7</span></a> <!-- start: header_welcomeblock_member_moderator --> <a href="http://www.commentbb.com/"><span>Nav 8</span></a> <!-- end: header_welcomeblock_member_moderator --> <!-- start: header_welcomeblock_member_admin --> </font> <span class="float_right"></span> <font face="Trebuchet MS"> <a href="http://www.commentbb.com/"><span>Nav 9</span></a><br> </font></span></div> <table align="center" border="0" cellpadding="4" cellspacing="0" width="52%"> <tbody> <tr> <td valign="top"> <font face="Trebuchet MS"> <!-- start: portal_announcement --> </font> <table class="tborder" cellpadding="4" cellspacing="1"> <tbody> <tr> <td class="thead"><font face="Trebuchet MS"><strong> <a href="index.php"><?php echo $sitetitle; ?></a></strong></font></td> </tr> <tr> <center> <td class="trow1"> <table border="0" cellpadding="4" width="100%"> <tbody> <tr> <td class="trow1"> <p align="center"> <b> <font size="4" color="#009EC0" face="Trebuchet MS">
  22. This is starting to piss me off. Column count doesn't match value count at row 1 $write = mysql_query("INSERT INTO posts VALUES ('','$ownername','$ownerpassword', '$ip', '', '', '', '', '2', '')") or die(mysql_error()); id int(11) No auto_increment username varchar(10) latin1_general_ci No password varchar(32) latin1_general_ci No ip varchar(30) latin1_general_ci No signature longtext latin1_general_ci No postcount int(11) No points int(11) No banned int(11) No staff int(11) No email varchar(50) latin1_general_ci No
  23. I SERIOUSLY think someone else should help then.
  24. I SERIOUSLY don't understand what you mean...any examples you could give me? Here is my vote.php page: <?php require("style.css"); $dbhost = $dbuser = $dbpassword = $db = $ip = $_SERVER['REMOTE_ADDR']; $pname = $_GET[project]; //connecting to the database $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $query = mysql_query("SELECT * FROM info WHERE pname='$pname'"); $numrows = mysql_num_rows($query); if ($numrows!=1) die("<content>Project does not exist!</content>"); $points = mysql_query("UPDATE info SET numbers = numbers + 1 WHERE pname='$pname'"); echo "Voted for $pname! <br /><br />"; ?> Forum BBCode: <br /><br /><textarea rows="10" cols="32">[url=http://"http://www.webmasters.webatu.com/vote.php?project=<?php echo $pname; ?>"][img=http://www.webmasters.webatu.com/testing.php?pname=<?php echo $pname; ?>][/url]</textarea>
  25. I can do that, but my question is, how? I have more then one voting things. http://www.webmasters.webatu.com - How do I store IP's in just one row?...
×
×
  • 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.