Jump to content

Mr. R

Members
  • Posts

    78
  • Joined

  • Last visited

    Never

Everything posted by Mr. R

  1. Well when i first got it there was windows 2000 on it, its a dell, old, quite crap thing. I have the windows 2000 re-installation disk i think. But because my computer has messed up so many times iv just reinstalled windows and now if i go to my computer and then the C: thing there are loads of "MAX-(random number)" showing each time iv reinstalled it and they are still taking up memory. Should i just get a new computer, its not tht good anyway? Thanks guys.
  2. Hi. All i want to do is completely delete everything off my computer and reset it so its back to when i first got it if possible? But i want XP left on there so i can still do stuff. I dont have an XP installation disk or anything tho. Does anyone know if this can be done and if so how please? Thanks!
  3. Hi, iv got some films on my laptop tht i wanna put on dvd so i can play them on my other computer cus the sound is crap on my laptop.. I can copy them on fine but they wont play on my computer, after iv copied it onto the disk do i need to end the session or something like tht? or should i just be able to put it in my computer and it play? Please help, thanks.
  4. Mr. R

    makin cd's

    The CD has 4.6GB space.
  5. Mr. R

    makin cd's

    Hi, iv copied a few cd's before, i just burned the songs onto the cd then took it out and could play it. Im tryin to do it on a 4.6GB cd. I dont wanna fill the cd but get more songs than usual, i can burn them on but when i take it out i cant play it, do i have to like close it or something, so you can copy more things to it? if so, how? Thanks!
  6. sorry line 38 is... $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM pages"),0); made a mistake. Please help now!
  7. Hi, iv just used the pagination script from this site, but i get an error.. Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\wamp\www\blaaah\adforms.php on line 38 This is the code.. <?php include 'connect.php'; if(!isset($_GET['page'])){ $page = 1; } else { $page = $_GET['page']; } $max_results = 10; $from = (($page * $max_results) - $max_results); // Perform MySQL query on only the current page number's results $sql = mysql_query("SELECT * FROM advertising LIMIT $from, $max_results"); while($row = mysql_fetch_array($sql)){ echo $row['username']."<br />"; echo $row['email']."<br />"; echo $row['website']."<br />"; echo $row['shortd']."<br /><br /><br />"; } // Figure out the total number of results in DB: $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM pages"),0); // Figure out the total number of pages. Always round up using ceil() $total_pages = ceil($total_results / $max_results); // Build Page Number Hyperlinks echo "<center>Select a Page<br />"; // Build Previous Link if($page > 1){ $prev = ($page - 1); echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$prev\"><<Previous</a> "; } for($i = 1; $i <= $total_pages; $i++){ if(($page) == $i){ echo "$i "; } else { echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$i\">$i</a> "; } } // Build Next Link if($page < $total_pages){ $next = ($page + 1); echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$next\">Next>></a>"; } echo "</center>"; ?> and line 38 is $result = mysql_query("SELECT rank FROM users WHERE username = '$username'"); Please help, Thanks!
  8. Yes! it works, thanks a lot mate, its been annoying me for ages.
  9. Hi, i have this annoying little problem when trying to see the rank of a user, this is the simple bit of code im using... $result = (mysql_query("SELECT rank FROM users WHERE username = '$username'")); if ($result == "admin") { echo "You are an admin."; }else{ echo "You are not an admin"; echo $result; } Even though the user is an admin, the output i get is... "You are not an adminResource id #5" Can anyone help me? Thanks
  10. yeah, googled it, didnt find much..
  11. hi, im gonna start an apprenticeship as an electrician soon and i dont really know a lot about it, does anyone know a website that will tell me the basics of being an electrician, like wiring a house and stuff like that? thanks
  12. Quite a nice site... The only thing i don't like is the dotted border at the sides.. Not really a problem though, other than that i like it. Good job.
  13. where is the foreach bit? for a if statement, like you have, you dont need the "do" bit.
  14. Mr. R

    IPOD

    Ok i have another problem.. I found this "Sharepod" program that is free and it will do the job for me.. (all the others i have to pay for) http://www.sturm.net.nz/website.php?Section=iPod+Programs&Page=SharePod#download i get an error when running it, it says i need the COMDLG32.OCX file, on the sharepod site it says that this error might come up and it allows you to download this file but i dont know where to save it, anyone have any idea? Thanks EDIT, im using windows vista, dont know if this would make a difference..?
  15. Mr. R

    IPOD

    Thanks for the quick reply, i'll have a look
  16. Nice work, Looks good Cant really think of anything to complain about... Maybe some rollover buttons?
  17. Mr. R

    IPOD

    Hi, how do i get all my songs from my ipod to another computers itunes, so when i plug it in, they all automatically compy to the itunes? Please help, thanks!
  18. Ok thanks . How would i go about stripping out characters then? then displaying their username after doing so? thanks
  19. Right.. i was looking at this and just wanted to ask a question.. When people register on my site i dont want them to use any characters that could be a problem, like <,>,/.... <?php $str = "A 'quote' is <b>bold</b>"; // Outputs: A 'quote' is <b>bold</b> echo htmlentities($str); ?> (Taken from PHP site) so if i used this on there username and then entered this into the database then wouldn't there username be changed to something that they didnt want? if they wanted to register as the name "<blah>", i want to enter "blah" into the database. is there a function i can use to output their username after changing it to what is suitable, and only output the changed username if it was actually changed? Thanks, hope you understand what i want to know.
  20. Yeah i think that looks better, matches with the titles now
  21. ok ^^ When iv made a website i'll put your link on there
  22. Hi Loading Time - The website loaded really fast for me. Layout - The layout is nice and simple, easy to look around and looks quite professional. Design - Design is good.. i dont really like the font of the navigation buttons, but its ok. Colours - The colours are ok, i think it would be better if the navigation buttons turned dark read, the same as the titles, instead of green. Content -Its allll good, but.. the contact buton didnt do anything and when you go to the news page the navigation disappears, i know at the bottom it says "back to podja" but i think the navigation should still be there. Bye
  23. I think you must make a time field, then when you enter the data use the timestamp function and enter it in, then when you select it, order it by its time entered.
×
×
  • 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.