First  |  Prev |  Next  |  Last
Pages: 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
Integers
Hi again I'm trying to learn about octal numbers and I don't understand this: Binary: 001000101111 breakdown: (001)= 1 (000)= 0 (101)=5 (111)=7 I know it's similar to unix permissions, but I'm not understanding where for example: 111 = 7 wikipedia has got me all confused. -- Blessings, David M. ... 1 Jul 2010 12:14
php processing name vs. id field
Hello, I've got a php form processing question. I've got a text field like so: <div> <label for="txtname">Name*:</label> <input type="text" name="name" id="name" size="30" value="<?php echo htmlspecialchars($_POST['name']), ENT_QUOTES, UTF-8; ?>" /> <br /> </div> My question is what is the purpose of the id ... 2 Jul 2010 14:39
Past discussion
Hi everyone, I have been searching the archives for a past discussion where some software that some folks use to (I think) save code snippets from e-mails for future references or something of such. Does anyone remember that discussion? I am trying to figure out a good way to create my own "wiki" type thing... 2 Jul 2010 12:26
PHP Trick or Not - You Be the Judge
Hello guys, i was just doing some testing and was wondring if echo is faster than print or print_r. I think since echo is a language construct and print_r is a function, echo is faster. Please let me know. Thanks -- A Brandon_R Production ... 30 Jun 2010 14:16
Is this a bug with date() ?
I understand that technically there are more than 52 weeks in a year. Well at least google says 1 year = 52.177457 weeks. So I run the command: php > echo date('W' , mktime(0, 0, 0, 1, 1, date('Y'))); 53 As you can see the result is 53. Any thoughts on this? Mike ... 30 Jun 2010 19:50
Regular Expression to get the whole Comma Separated String in Array Key
Hi All, Need help in resolving the below problem- I would like to get the whole comma separated string into an array value- 1. $postText = "chapters 5, 6, 7, 8"; OR 2. $postText = "chapters 5, 6; OR 3. $postText = "chapters 5, 6, 7"; What i have done so far is- preg_match('/chapter[s]*[ ]*(\d+, \d+, ... 1 Jul 2010 04:32
form validation code
Hello, I've been looking at this to long, and am not seeing the issue. When i had the below php code set to !empty instead of !isset as it is now I got the value of the name variable echoed back, yet on sql insert that field, along with all others are empty, though no error is generated, just a bogus record is ins... 30 Jun 2010 10:54
Array form processing
I am trying to process a form where the user uses checkboxes: <input type="checkbox" name="painDesc[]" value="1" />Sharp <input type="checkbox" name="painDesc[]" value="2" />Stabbing <input type="checkbox" name="painDesc[]" value="3" />Jabbing When I do: foreach($_REQUEST as $key => $val) { $$key = $... 30 Jun 2010 10:54
file_get_contents limit
I�ve got a file with only one line 21917 characters long but when I read this file using $varData = file_get_contents("file.txt") it gets only 21504 characters. Anyone would know why does it happen? Thanks in advance. -- Jo�o C�ndido de Souza Neto ... 29 Jun 2010 17:25
Login form + User level access
Hello everyone. I have this question: I'm developing a login system but what I need is to do is access levels I mean, in my database I have this users: Admin Superusers sales purchase etc So, What I do basically need is, when a user from sales log in.. I want him to see just the menu from SALES, H... 30 Jun 2010 10:54
First  |  Prev |  Next  |  Last
Pages: 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43