
ManiacDan
Staff Alumni-
Posts
2,604 -
Joined
-
Last visited
-
Days Won
10
Everything posted by ManiacDan
-
Don't use that solution, it's not unique. Use mine.
-
Don't bother counting hours, just do: if ( date('H') < 15 ) { echo $days + 1; } else { echo $days; } Your question is just "I have the right number most of the day, but after 3pm I want it to be one less." Don't bother adding hours calculations into your function, just make it one less after 3pm.
-
Yeah, we need more information. Before/after, some examples, something.
-
See where you take $name from the file info?
-
I'm not really sure how you can get to 900 posts without knowing how to echo. Learning HTML is a very critical step to knowing web development.
-
"I NEED GET LIKE THIS" Translation: Similar to this, but with extra information which fundamentally changes the nature of the query
-
if URL_T is the URL field: <td><a href="<?php echo $record['url_t'];?>">click here</a></td>
-
Is the field named "decimal"?
-
Im got no idea what you're talking about. Show what your tables look like, give us 6 rows of example data from each table. Show what your desired result looks like.
-
How To Echo Option All Lowercase With Spaces Removed.
ManiacDan replied to flavaflav37's topic in Applications
Hi, please go read my post a little more, it contains an answer as well as an explanation of why your post cannot be answered (despite me answering it) -
Take the code you have, and if today is a business day, add 1 to your result.
-
Instead of taking $name from the file info, give it a new name. uniqid produces a unique string.
-
How To Echo Option All Lowercase With Spaces Removed.
ManiacDan replied to flavaflav37's topic in Applications
That thorpe meant is that your example code of what you want makes no sense at all, you say you want to echo a string lowercase with no spaces, then show how to access an array key using a key which is lowercase with no spaces, then show code which echoes the key (instead of using it as an array key) while simultaneously overwriting the array you showed in your first example. -
How To Echo Option All Lowercase With Spaces Removed.
ManiacDan replied to flavaflav37's topic in Applications
echo strtolower(str_replace(' ', '', $data['text_skill_one'])); Maybe. Who knows. Your examples conflict. -
You're going to have to rewrite this in English, this makes no sense at all. Taking a complete shot in the dark: SELECT DISTINCT
-
I see a privacy policy link right there in your code, why do you believe it's not showing up right? Did your host not accept the files? Are you clearing your browser cache?
-
Help Please Error "unknown Column 'catagory' In 'where Clause"
ManiacDan replied to kate_rose's topic in MySQL Help
Mysql workbench never does that. If there's a setting that does that, turn it off. -
Both datetime and timestamp are valid. Timestamp is slightly smaller to store and slightly faster to calculate, but it's doubtful either of those will ever be your biggest concern. Date is not valid for this, since it doesn't include a time.
-
Help Please Error "unknown Column 'catagory' In 'where Clause"
ManiacDan replied to kate_rose's topic in MySQL Help
That's not even a little bit true. What we're saying is: If you have a column named, literally, `$catagory` that's wrong (two different ways). When you try to do it in PHP, PHP interprets "$catagory" as being an actual PHP variable called $catagory, and tried to rewrite your string. Rename your MySQL columns so there are only letters, numbers, and underscores in them. No dollar signs, no ampersands, no quotes. Just letters and numbers. That way you can be assured that your strings are being built correctly. And fix your spelling now, while your product is young. -
That's not how regular exp<b></b>ressions work. The [] construct means "any of the single characters inside this." [abc] matches a, b, or c. [51|52|53|54|55] means 5,1,2,3,4, or |. You (might) want: $pattern = "/^((51)|(52)|(53)|(54)|(55))([0-9]{14})$/"; That matches one of your 5 starting pairs, then 14 more digits
-
Is there data in the source of the page? Do you have error_reporting turned on?
-
He assigns $view1= $_GET['view'], so that's not it.
-
Describe "photos don't load." In the first page? In the second? Does the HTML work? Black image? Broken image? Your have invalid HTML in your index page, there's a >> that shouldn't be there.