Jump to content

Tazerenix

Members
  • Posts

    232
  • Joined

  • Last visited

    Never

Everything posted by Tazerenix

  1. You could do what kayne west is doing and just make your teeth diamonds.
  2. another possible solution would be to use mod_rewrite and rewrite the example.com/demo to example.com/project-details.php?p=demo so then you dont have to maintain a redirect page and google will index it as example.com/demo.
  3. HTML5 isn't so much an RIA in itself, <canvas> needs javascript to do anything truly fancy as far as i know.
  4. Well if your looking for a high performance laptop you should have a look at alienware, its done by dell, who's main range of laptops is also fairly decent.
  5. if $_GET['quantity'] has a value of '1' then its not an array type, which means that a foreach loop can't execute on it.
  6. hmm, looks good, i'll look into it, thanks.
  7. I'm currently making an offline recreation of http://www.instantblueprint.com in C#. I was wondering if there is any way to run python scripts in the .NET environment? I want to be able to execute the zen-coding system in my application. Any help is appreciated.
  8. hmm, you should be using || instead of | when checking for those $_POST values
  9. I agree, the font on this site is dreadful, and some of the information is somewhat condescending. Try and lighten the mood a bit, give interesting and valid reasons for why they should update their browser, not just saying that its bad.
  10. <?php error_reporting(E_ALL); // Connects to your Database mysql_connect("//", "//", "//") or die(mysql_error()); mysql_select_db("//") or die(mysql_error()); //This code runs if the form has been submitted if (isset($_POST['submit'])) { //This makes sure they did not leave any fields blank if (!$_POST['username'] | !$_POST['pass'] | !$_POST['pass2'] ) { die('You did not complete all of the required fields'); } // checks if the username is in use if (!get_magic_quotes_gpc()) { $_POST['username'] = addslashes($_POST['username']); } $usercheck = $_POST['username']; $check = mysql_query("SELECT username FROM users WHERE username = '$usercheck'") or die(mysql_error()); $check2 = mysql_num_rows($check); //if the name exists it gives an error if ($check2 != 0) { die('Sorry, the username '.$_POST['username'].' is already in use.'); } // this makes sure both passwords entered match if ($_POST['pass'] != $_POST['pass']) { die('Your passwords did not match. '); } // here we encrypt the password and add slashes if needed $_POST['pass'] = md5($_POST['pass']); if (!get_magic_quotes_gpc()) { $_POST['pass'] = addslashes($_POST['pass']); $_POST['username'] = addslashes($_POST['username']); $_POST['pass2'] = addslashes($_POST['pass2']); } // now we insert it into the database $insert = "INSERT INTO users (username, password, Human-Readable) VALUES ('".$_POST['username']."', '".$_POST['pass']."', '".$_POST['pass2']."')"; if (!@mysql_query($insert)) { echo mysql_error(); exit; } ?> <h1>Registered</h1> <p>Thank you, you have registered - you may now login</a>.</p> <?php } else { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table border="0"> <tr><td>Username:</td><td> <input type="text" name="username" maxlength="60"> </td></tr> <tr><td>Password:</td><td> <input type="password" name="pass" maxlength="10"> </td></tr> <tr><td>HR:</td><td> <input type="password" name="pass2" maxlength="10"> </td></tr> <tr><th colspan=2><input type="submit" name="submit" value="Register"></th></tr> </table> </form> <?php } ?> Run that and see what error you are getting in your query, then fix it accordingly.
  11. You could code your own system, I can't imagine it would be very difficult. A Login script, an admin with user selection and upload, and a user section with links to uploaded files.
  12. like above, WOAH, this site took me a very very long time to load, the images are way to many, look into making sprite sheets to decrease load time However, the design of the website itself is actually not too bad, i like it Fix that loading though
  13. oh right, change $row['path'] to $row['filepath']
  14. that doesn't matter, as long as path in your mysql entry contains the name of the file which you wish to leave out of the list.
  15. $row['path'] should be the name of the file you wish to exclude from the list
  16. <?php $dir = "/uploads/"; $mp3FileList = glob("{$dir}*.mp3"); array_walk($mp3FileList, 'basename'); $query = "SELECT filename FROM dj_pool"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_assoc($result)) { if(in_array($row['path'], $mp3FileList)) { unset($mp3FileList[array_search($row['path'], $mp3FileList)]); } else { echo "File not Found in List: " . $row['path'] . "<br />"; } } echo '<select name="mp3">'; foreach ($mp3FileList as $file) { echo '<option value="' . $file . '">' . $file . '</option>\n'; } echo '</select>'; ?> Give that a try and see what the output is. There might be something wrong with $row['path'] or how its checking $mp3FileList.
  17. alright, try this: <?php $dir = "/uploads/"; $mp3FileList = glob("{$dir}*.mp3"); array_walk($mp3FileList, 'basename'); $query = "SELECT filename FROM dj_pool"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_assoc($result)) { if(in_array($row['path'], $mp3FileList)) { unset($mp3FileList[array_search($row['path'], $mp3FileList)]); } } echo '<select name="mp3">'; foreach ($mp3FileList as $file) { echo '<option value="' . $file . '">' . $file . '</option>'; } echo '</select>'; ?>
  18. So there are non .mp3 files in the list? what is the contents of the dj_pool.path field in the mysql?
  19. is it being removed from the directory when you run this script? it shouldn't be
  20. <?php $dir = "/uploads/"; $mp3FileList = glob("{$dir}*.mp3"); $query = "SELECT filename FROM dj_pool"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_assoc($result)) { if(in_array($row['path'], $mp3FileList)) { unset($mp3FileList[array_search($row['path'], $mp3FileList)]); } } echo '<select name="mp3">'; foreach ($mp3FileList as $file) { $file = basename($file); echo '<option value="' . $file . '">' . $file . '</option>'; } echo '</select>'; ?> That should print it as a dropdown with only the filename
  21. Firstly, the page takes a very long time to load all the images. Try using some sort of sprite effect, i mean http://servergrabber.com/images/ is pretty ridiculous. The part in the center with all the tabs looks nice. You might want to consider adding an ajax effect to that, when i clicked on the button i expected a quick change but what i got was a whole other page reload (with all those images). All in all though i think its a good looking site.
  22. SMF is very easy to hook with your current website using the SSI.php file. MyBB is very good as a board and offers a plugin framework for easy plugin installation. I suggest one of those two.
  23. Thought up my name for a game called Endless Online (which has since died and i stopped playing it about a year ago). My original name was going to be Overmind (from starcraft) but i thought it to be too common so i thought up this. My name is actually a cross between Tassadar, Raynor and Fenix (from starcraft) but Taserenix sounded strange so i changed the s to a z. Thanks for reading xD
  24. Search Engine is good, you can actually make the back end of it with PHP also, however it would probably require a bit more work.
×
×
  • 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.