-
Posts
70 -
Joined
-
Last visited
Never
Everything posted by maxic0
-
Well sorry, it was one little question. I think he got the answer he wanted anyway.
-
hi jack other peoples posts??!
-
Can someone explain this line to me please? $pattern = '/\[quote\].*\[\\\quote]/'; Whats with all the \\\ ? Thanks
-
Maybe your getting an error because your missing the last ' after $location
-
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.
-
Change $result = mysql_query($query) or die(mysql_error()); To $result = mysql_query($sql) or die(mysql_error());
-
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.
-
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.
-
on line whatever? what line is it lol?
-
I like it! Not to sure about the green border round it, other than that its nice The loading speed is really fast.
-
Looks nice, good job lol.
-
[SOLVED] Checking if its a 6 digit random number
maxic0 replied to pouncer's topic in PHP Coding Help
Thats great. Thank you! -
[SOLVED] Checking if its a 6 digit random number
maxic0 replied to pouncer's topic in PHP Coding Help
Can someone explain to me what this means please: |^[\d]{6}\z| thanks -
Looks complicated lol, thanks!
-
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.
-
Ok, thanks wildteen88
-
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.
-
Oki thanks.
-
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
-
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
-
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
-
lol tis cool my friend!
-
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!
-
[SOLVED] Beta Test: Post comment system.
maxic0 replied to JustinM01's topic in Beta Test Your Stuff!
Works fine for me and it looks really nice. Good job!