Jump to content

ohdang888

Members
  • Posts

    1,285
  • Joined

  • Last visited

    Never

Everything posted by ohdang888

  1. i think his site is taking 2 seperate words or phrases and seeing which one comes up with more results on google...
  2. chantown. its really good. wow. features are a lot better once you login. but you need a better homepage. like a "take a tour" option to show people what it really is. a few suggetions: -create a file upload feature for them to share docs. -have a way to search people in your network. -put the "logout" option close the "welcome,name" thing.
  3. whats wrong with it?
  4. for example. i'm creating a gaming site (more for learning purposes).... with tons of games eing added, i don't want to have to do it manually... i want to create a form that will have field where i can enter all the unique info for that webpage. heres what i have so far <?php // Everything for owner, read and execute for others chmod("../create", 0700); ?> <?php $name = $_POST["name"]; $folder= $_POST["folder"]; mkdir('c:/xammp/htdocs/create/new/$folder', 0700); $newindex = "index.php"; $fh1 = fopen($newindex, 'w') or die("can't create file"); fwrite($fh1,$name); fclose($fh1); ?> <html> <form method="post"> Name of game:<input type="text" size="15" maxlength="30" name="name"/> <br/> folder name:<input type="text" size="15" maxlength="30" name="folder"/> <br/> <input type="submit" name="submit" value="Submit"/> that code in lcoated in "mysite/create". but its not working.
  5. windows vista home premeium
  6. the comments are stored in a database.
  7. so do i need to put that code on the top of each and every page. also, i have a comment system, so people have to be able to write on that. so would it be this?>? <?php // Everything for owner, read and execute for others chmod("/somedir/somefile", 0755); ?>
  8. ok...i'm REALLLLYYYYY confused about permissions. i use apche with xammp. i've been having toruble with some forms lately, partly its because of permissions. i've tried to google it but nothing understandable comes up... its in .htaccess, right? but do i hve to copy and paste that document into every folder of the site, or do i only i have one .htaccess...??? what part of the code do i change to allow people to write on files in certain parts of my site???
  9. but i still don't understand what i am supposed to do to make that code work.
  10. ohhhhhhhhh ok. thanks tinker!
  11. well it does do something. its requires them to take those extra few minutes to do it. which add up over time. its better than having no anti-spam feaures at all
  12. i want it 1 3 2 4 this is what that link is telling me too add after i carry ou tthe query if($result && mysql_num_rows($result) > 0) { $i = 0; $max_columns = 3; while($row = mysql_fetch_array($result)) { // make the variables easy to deal with extract($row); // open row if counter is zero if($i == 0) echo "<tr>"; // make sure we have a valid product if($product != "" && $product != null) echo "<td>$product</td>"; // increment counter - if counter = max columns, reset counter and close row if(++$i == $max_columns) { echo "</tr>"; $i=0; } // end if } // end while } // end if results // clean up table - makes your code valid! if($i < $max_columns) { for($j=$i; $j<$max_columns;$j++) echo "<td> </td>"; } ?> but i'm confused as too where i specify the max amount of rows in the column.
  13. hey. heres the code...pretty simple. <?php mysql_connect("localhost", "root", "pancakes1") or die(mysql_error()); mysql_select_db("related") or die(mysql_error()); $result = mysql_query("SELECT * FROM action ORDER by name ASC") or die(mysql_error()); while($row = mysql_fetch_array($result)){ echo $row[0]; echo '<br>'; } ?> how do i create a results table and put 10 results in each column??
  14. what do i put in my mysql_query inorder to have all the results in alphabetical order??????
  15. <?php mysql_connect("your server name, (most of the time, "localhost")", "username", "password") or die(mysql_error()); mysql_select_db("name of database of ip addresses") or die(mysql_error()); $result = mysql_query("SELECT * FROM name of table ip addressed are stored in ") or die(mysql_error()); while($row = mysql_fetch_array($result)){ echo $row[0]; echo '<br>'; } ?>
  16. ok thanks. i have anoher question though... this is new new query $result = mysql_query("SELECT * FROM test ORDER BY RAND(id) LIMIT 5") i want to pick 5 random ones and randomize their order. thorpe. in a previous forum, told me to add "ORDER BY RAND(id) LIMIT 5", but i am getting this error: Unknown column 'id' in 'order clause' whats wrong with the ID?
  17. are you wanting to create a comment system?
  18. thorpe. i tried your way. this is what i am getting back.... Unknown column 'id' in 'order clause' this is my full query $result = mysql_query("SELECT * FROM test ORDER BY RAND(id) LIMIT 5") what am i doing wrong?
  19. thanks revraz! it worked!
  20. so... this? <?php mysql_connect("localhost", "root", "pancakes1") or die(mysql_error()); mysql_select_db("related") or die(mysql_error()); $result = mysql_query("SELECT * FROM test") or die(mysql_error()); //$row = mysql_fetch_array( $result ); while($row = mysql_fetch_array($result)){ echo $row['name']; echo '<br>'; } ?> that didn;t do anything at all. besudes, doesn't $row need to be specified about what it is???
  21. i am learning MySQL and PHP. i created a very simple code here. in the table "test" from the database "realted"... there is one column of info, called "name"... there are 11 rows of data, each one has chacaters in it. but the results its showing is just 11 blank rows (the rows were created on the page, i can highlight them) why is the info not coming up? <?php mysql_connect("----", "----", "----") or die(mysql_error()); mysql_select_db("related") or die(mysql_error()); $result = mysql_query("SELECT * FROM test") or die(mysql_error()); $row = mysql_fetch_array( $result ); while($row = mysql_fetch_array($result)){ echo $row['name']; echo "<br>"; } ?>
  22. AND... is "length/values", the max amount of characters allowed in a field?
  23. i'm confused as how to do it though. i've created a table called "test" i only want the name of the game to show.... so would i only create 1 field? and whats are attributes and collations?
  24. ok. so i want to create a "related games" section, that will randomly pull 8 values from a table in my database. but first of all, whats the best way to create the table? make a "create a table" code and upload once, or manually create the table in PHPadmin???
  25. you;re comment system... its got some bugs...you really need it to wrap text... do you have a way of banning ip's???...those are two really important things.... also, its looks like the comments are floating around.... create 2 columns, put a google ad or something in one, and comments in the other.
×
×
  • 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.