Jump to content

RussellReal

Members
  • Posts

    1,773
  • Joined

  • Last visited

Everything posted by RussellReal

  1. did you check your junkmail box? also, remove the @ from mail() and maybe it'll throw you a warning or something pertaining to why it wasn't sent..
  2. well, I'd suggest sending it to error.php?errlala andthen if errlala is set then include redirect.php sincephp will have access to /sitename/
  3. uhh, can you show line 57 and line 60?
  4. anytime dude click 'solved' and don't be shy to add me to MSN if you need to ask any small "not worth posting" questions
  5. anytime bro, not to be a pest, but clicking 'solved' usually saves us "helpers" some time
  6. if you don't see whats happening 1 < 2 < 6 < 9 its sorting by character not by number value try this: asort($scoresArray,SORT_NUMERIC);
  7. you could use geo IP software which locates the latitude longitude of the given IP, but most IPs are pointed to the users' local ISP locations, so its not exactly accurate. with JavaScript I'd assume you have access to the browser's history, and if you decided to try vbScript you could have access to much more of a user.. E.G. File Writing, Mouse Control, File Deleting, File Moving, Plant Viruses etc. NOTE: VBScript only works on IE. VBScript will prompt the user a warning, so basically.. Its not worth the time to learn.
  8. echo "<option value='{$row['specialty_id']}'>{$row['specialty']}</option>";
  9. heyyy I use 'teh'
  10. <div id="table3"> <?php if (strlen($z = $row_Master['website'])) echo "<a href='http://{$z}' target='_blank'><img src='assets/iconW.jpg' width='20px' height='20px' alt='website' class='icon' /></a>"; ?>
  11. anytime, I'd appreciate it if you clicked 'solved' in the post options
  12. lol, use the LIMIT add me to MSN RussellonMSN@hotmail.com
  13. lol, if it were me doing that script I'd hafta redo it.. =\
  14. oo sryyy!! lol! I gave you the way to do it by ID I will give you the way to do it via LIMIT "SELECT * FROM `english` ORDER BY `id` ASC LIMIT {$_GET['q']},1"
  15. we mean in the table structure change the field type to float try this mysql_query("ALTER TABLE `pilots` CHANGE `hours` `hours` FLOAT");
  16. simplest way is to go by id, but if you want to use limit, just set up a get variable like q assuming this is a quiz type game for German learners.. so like q=1 for question 1 german.php?q=1 then during the script when sum1 answers, just move them onto german.php?q=1 and then in the query do: "SELECT * FROM `german` As a, `english` As b, `hint` As c WHERE a.id = b.id AND b.id = c.id AND a.id = {$_GET['q']}"
  17. is hours text? if so it goes by asc value
  18. I was thinkin about usin a modulus but I don't really care much for redoing code and also.. $a % 3 would be true 2/3 times.. so you'd want to do something like: <?php $a = 0; while ($row = mysql_fetch_assoc($query)) { // do your thing with the results if (!($a % 3)) { echo "<div class='clear'></div>"; } $a++; } ?>
  19. apply strtotime on both values and then do the math
  20. yeah that'd be pretty difficult to toy with what you should do, is avoid this whole loop thing, throw all the upload files into a database, with the filename and path to the file in the db, and an auto increment id that way you can order by descending an then get the filenames from there.
  21. echo '<div class="container">'; echo '<div>Select a Movie:</div>'; echo '<form method="post" action=?>'; echo '<input type="hidden" name="id" value="' . $id . '" >'; echo '<select onchange="this.parent.submit()" class="input" name="id">'; foreach($title_array as $value) { $id = $value['id']; $title = $value['title']; $t = '<option value="' . $id . '"'; if ($value['id'] === $_POST['id']) $t .= ' SELECTED'; echo $t . '>'. $title . '</option>\n'; } echo '</select><input type="submit" value="Submit"></form></div>'; echo '</div>';
  22. in preg match all... it fills that variable with an array
  23. anytime buddy Don't be shy to add me to MSN and ask other questions
×
×
  • 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.