Jump to content

Ner0

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Ner0's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yeh, I realised this half way through creating it and to be honest, I just wanted to get the PHP right, but I when I do my next project, I will certainly keep checking the validation of my HTML and CSS. Thanks for the feedback again
  2. Okay... Reply to 1): Its a project, I used random games I came across to fill the sections Reply to 3): When there is more than 14 games in each category, it fits in perfectly and is easily readable, I just didnt add the games because it would have taken to long doing it manually Reply to 2,4,5,6): It was more about the PHP than the HTML and CSS. When I was making this, I was more concerned about the PHP working than the HTML & CSS but I will take these comments on board, and when I go to do it again, I will check the HTML & CSS regularly to make sure its valid. Thanks for the feedback
  3. This is my very first full PHP project, I have worked hard on this for about 2 months, just learning the language and putting it together to create this, it is still in BETA, the public side of the games website is 99% finished, just a few minor adjustments need to be made to complete it, these will be added in the upcoming patches, then I will start working on the adminCP from which all the games can be added/removed/edited and other stuff etc so everything can be done via the website itself, then hopefully I can sell the license for people to use my code if it goes well. Link: http://education.byethost31.com/ Please leave your honest opinions about this, please take into consideration that only a few months ago I had no clue how to use PHP, and leave suggestions on how I could improve the site, thanks in advance.
  4. This is the input code for my search bar <form id="search" name="search" method="post" action="search.php"> <fieldset id="search"> <label id="search">Search for games <input type="text" name="search" id="search"></input> </label> </form> </fieldset> This is the search.php file <?php if( $_POST['search'] ) { mysql_pconnect("localhost","root","") or die("ERROR: Could not connect to database!"); mysql_select_db("games"); $search = addslashes( $_POST['search'] ); $result = mysql_query(" SELECT games.Name2 FROM games WHERE Name2 = \"$search\" ORDER BY occurrences DESC "); print "<h2>Search results for '".$_POST['search']."':</h2>\n"; for( $i = 1; $row = mysql_fetch_array($result); $i++ ) { print "$i. <a href='".$row['Link']."'>".$row['Name2']."</a>\n"; } } ?> This is the error I keep recieving Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\search.php on line 9 The database is called games, the table is called games and the field im searching is called Name2. Any help in getting rid of this error and getting the search bar working would be appreciated.
×
×
  • 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.