Jump to content

maxic0

Members
  • Posts

    70
  • Joined

  • Last visited

    Never

Everything posted by maxic0

  1. Well sorry, it was one little question. I think he got the answer he wanted anyway.
  2. Can someone explain this line to me please? $pattern = '/\[quote\].*\[\\\quote]/'; Whats with all the \\\ ? Thanks
  3. Maybe your getting an error because your missing the last ' after $location
  4. what do you want "CONVERT(_utf8 \'%%%%-04-17\' USING latin1) COLLATE latin1_swedish_ci" to do? I havent much experiance in PHP and havent seen this before lol.
  5. Change $result = mysql_query($query) or die(mysql_error()); To $result = mysql_query($sql) or die(mysql_error());
  6. Hmm.. well.. its kinda boring.. Think you should have some rollover buttons, with a bit of effort put into them, not just CAPITAL LETTERS. Maybe have a different banner aswell, not just writing.
  7. Its not too bad, think you should change the font, dunno why, just dont really like it I think the banner would be better if it had a border, not just bevel and embos it. Other than that, gj.
  8. on line whatever? what line is it lol?
  9. I like it! Not to sure about the green border round it, other than that its nice The loading speed is really fast.
  10. Can someone explain to me what this means please: |^[\d]{6}\z| thanks
  11. Looks complicated lol, thanks!
  12. Hi, im creating a simple login script and i dont have a problem yet but im wondering if there is a way that i can improve this bit of code, this is what i have for validating the fields... <?php if (!isset($username) { echo "Username is a required field. <BR/> Please go <A HREF='register.php'>back</A> and fill it in."; } ?> I have four of these bits of code for validating the username, password, confirm password and email. If there a way that i could use one if statement to validate all the fields then if one or more fields are left blank, it will say that they are required fields and say what ones they have missed out? Thanks.
  13. I was looking up and learning about functions, and i was given this example to create a random password. <?php function rand_pass() { $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz"; $thepass = ''; for($i=0;$i<10;$i++) { $thepass .= $chars{rand() % 39}; } return $thepass; } $password= rand_pass(); echo $password; ?> I understand it all apart from the $thepass .= $chars{rand() % 39}; What does the "% 39" bit mean? Thanks.
  14. Hi, i was just wondering how.. When you see an input box and it allready has writing in it. eg "Write your comment here." when you click on the input box the text disappears, then if you havent typed anything in and you click away, that text appears again. How do i do that? Thanks
  15. Hi, i think your site needs a bit of work man.. - I dont really like the rollover from black to red. - Its a little plain you should add some pictures. - Dont really like the text. - For a web designing/ Programming site you should make it look as best you can to get customers. Max
  16. Quite a nice simple site. Two Suggestions.. 1. I think you should change the skin for the forum. 2. On the "Contact Us" page i dont really like the border around the form, you should get rid of that or change it. Max
  17. You can see all the fields that you might want to show on your page.. You can see them all by doin this.. <?php define('IN_PHPBB', true); $phpbb_root_path = './forum/'; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.' . $phpEx); $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); while (list ($value, $key) = each ($userdata)) { echo $value; echo " "; echo $key; echo "</BR>"; } ?> So if you want to show their email then you can do this.. <?php echo $userdata['user_viewemail']; ?> If you wanted to show a page then you can do this.. <?php if ($userdata['username'] != "Anonymous") { include ('page.php'); }else{ echo "You Must Be Logged In To View This Page!"; } ?> Hope this helps!
  18. Works fine for me and it looks really nice. Good job!
×
×
  • 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.