Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
There were probably 0 rows returned. Echo the query then run it in mysql/phpMyAdmin to check. You can also check mysql_num_rows. (You should be using mysqli, btw).
-
Yeah I agree you should just try it on a live server.
-
If you send mail to that address from an outside address does it arrive?
-
This will produce errors with strict error reporting. You can shorten it a lot. I also think it has some bugs. if $seen > 60, then within that loop if $seen > 24?? Maybe use clearer variable names. What is the $more for? This is not tested. $seen = floor((time("now")-$row['time'])/60); $more = false; $seen_str = ""; if($seen > 60) { $more = true; $hours = floor($seen/60); $minutes = $seen-($hours*60); if($seen > 24) { // I think you mean to use $hours here? $days = floor(($seen/60)/24); // and here $hours = floor($seen/60)-($days*24); // and probably in here too. $seen_str = "$days day".($days==1?'':'s').", "; } $seen_str .= "$hours hour".($hours==1:'':'s').", "; } $seen_str .= "$minutes minute".($minutes==1?'':'s').' ago';
-
senddetails.php doesn't output anything. If you've added that if/else block, it should. If you see nothing then, you need to enable error reporting.
-
I don't understand what you're saying. When I go between my phone and my computer, the phone stays mobile and the computer stays desktop.
-
And the problem is?
-
There is no echo in your code.
-
Try this? tr>th ~ tr>td{ }
-
Okay, I don't believe CSS can do that. I understand what you mean now though, let me think/look around. Maybe someone else will know too.
-
No, it won't. It will select all tds within a th within a table. (Which is invalid, I thought you were talking tr, not th.) What are you REALLY TRYING TO DO? all th within a table is: table th{} That's it.
-
table th td{ style here } However, if your HTML is valid, EVERY td will be a child of a TH. That's the same as just doing td{} I meant tr, not th. What are you actually trying to do?
-
We have an hour for lunch. Leave work, 60 minutes. Get to the restaurant, now you have 50 minutes. Get seated, order, now you have 35 minutes. Get your food/drinks, now you have 25 minutes. 15 minutes to eat, pay, and leave. There's no way someone can have a drink and be okay to drive, in the amount of time we have for lunch. (When we do group lunches we tend to take 1.5 hours but still.)
-
I like them fine (most of them ) but I'm not going to drink alcohol with them. I also don't think it's appropriate to have a drink then go work. Drinking is for relaxing/celebrating, and if you are able to do your work properly after a drink, what was the point of the drink? Just have a soda. Not to mention the drinking & driving issue.
-
I don't get the drinking at lunch, let alone drinking with coworkers.
-
Sounds like decimals() is returning a string, complete with the -., rather than an actual float.
-
Oh I agree but also you do have the capability to make changes in your life to make it overall better. Like I said, I just feel better when I stand, and if that's the only benefit it's worth while. I'm not seriously worried that I will DIE because of sitting - but I know when I stand, I am overall healthier. Make sense?
-
One of the guys in our office rigged up some boxes to hold up his monitor/laptop/keyboard. If not an option, you can try it at home when you use your personal computer. If you look on lifehacker.com there are lots of articles about ways to make a standing desk. Next up, the treadmill desk.
-
Code....
-
Which article did you read? I just linked to google so I have no idea which one you looked at. You can try doing a few hours at a time. If you work from home, just put your laptop on a kitchen counter or something. You do want to find the right height for your arms to rest at the right spot for typing. What almost everyone in my office but me does is they have a bar stool type chair to take sitting breaks. It didn't take me long to adjust. Wear supportive sneakers. The only thing that ever hurts for me is my feet if I wear bad shoes.
-
@Philip - Are you drinking too much water, or enough water? Drinking too much water can kill you sure, but most of us are under hydrated. I drink 4L a day. Most people drink closer to 10-12 oz. Drinking too much water is not a risk the average person is dealing with. Whereas most people are sitting for 12+hours a day, which yes, kills you. Sitting too much is a risk that almost everyone has. Everything has risks, but the fact is almost everyone on this board is at risk of spending too much time sitting down. I doubt many people here are at risk of drinking too much water. I've lost 25 lbs since I made some changes which included standing. I feel amazing. I'm sure part of it is the standing, I feel icky when I sit for long periods. I also feel ancy when I don't get a run in every few days.
-
https://www.google.com/search?q=sitting+kills+you
-
Using Cron jobs.
-
Why would I get a backache? And I don't even understand the rest of the question, you damn Brit.