<M/> 170 Why so serious? Featured Poster

Sorry if its too late and your interests have moved on..

Nope... same question, just multiple parts to the question ;D

@pixelsoul, ummm... not exactly zebra stripes. I was refering to the fact that if a number in the table is even, make it red and if a number is odd make it blue.

@JorgeM, i will play around with your snippet of code. I will update you on the progress in approximately 30 minutes (I have to take my dogs out for a walk...)

<M/> 170 Why so serious? Featured Poster

Oh I know they are no good, I just ignore that and keep drinking them lol. I do need to stop drinking them though.

I wish you luck :D

<M/> 170 Why so serious? Featured Poster

@diafol, i was trying to add something like this into the table you provided:

                    $table .= "<td>" . mt_rand(9,99) . "</td>"; 
                        if ($x % 2 !=0)
                            {
                            $x = $even;
                            }
                            else 
                            {
                            $x = $odd; 
                            }

Can you explain to me the proper way in highlighting even and odd numbers (such as make evens blue and odds red?)

Sorry if i am asking a lot of questions.... i will admit, i am a very curious person :D

<M/> 170 Why so serious? Featured Poster

Out of curiosity what the hell are you trying to do?

hehe, i knew i would get this question at some point.

Well anyways, i am trying to enhance my skills with php and mysql so that i get good at working with databases and eventually create something great such as a property search (what i am aiming towards atm), ecommerce stores, and so on. Problem is that i forgot some of the tricks i learned about a year ago due to lack of practice and so on...

Eventually i will be considered as being "good" in the next 2 years.

Does that make sense, or at least what i am aiming at?

<M/> 170 Why so serious? Featured Poster

Another question of curiosity, how do i set up my if statement so that if a number (for example) has the number 5 in it, put a asterisk next to it?

<M/> 170 Why so serious? Featured Poster

oh okay, now i see what i was forgetting to do. thanks you guys!

A quick question of curiousity, how does one make each column unique from the other? In other words, how does one make column A have random numbers, column B has sorted numbers, C has random letters, C has sorted letters, etc.

<M/> 170 Why so serious? Featured Poster

Monster Energy Zero Ultra. I am addicted to these :-\

Those Monster Energy drinks are any good for you... you should try to lose the addiction on them ;)

Try reading the ingredients and see how many of the ingredients are not chemicals.

<M/> 170 Why so serious? Featured Poster

.

<M/> 170 Why so serious? Featured Poster

I am trying to create a table that I can customize completely with php. I will admit, i have forgotten some of the materials due to lack of practice and "accidentally" deleting my original files that "should" answer my question.

Well anyways, how do you create a table that (by only using php) has an alphabetical header, each individual column gets manipulated by a loop, and all gets displayed in a csv.

So far, i have created this, pretty simple table:

<?php 
$rows = 100 ; // define number of rows
$cols = 27;// define number of columns

echo "<table border='1'>"; 

for($tr=1;$tr<=$rows;$tr++){ 

    echo "<tr>"; 
        for($td=1;$td<=$cols;$td++){ 
               echo "<td>".$tr." &nbsp; ".$td."</td>"; 
        } 
    echo "</tr>"; 
} 

echo "</table>"; 

?>

It is a pretty simple table so far...

For the header, i am trying to achieve this:

#   a   b   c   d   ------>   x   y   z
1   
2
3
4
5
6
7
8
9
10

Each column has a unique bit of content, such as: a random letter, random number, etc.

Sorry guys, i am not asking you to create this for me, i am just looking for some advice/technique/resource/snippets to help me solve the problem.

<M/> 170 Why so serious? Featured Poster

Welcome!

<M/> 170 Why so serious? Featured Poster

Welcome!

Pardon my curiosity, but where did you hear about us from? :)

Probably from when i spammed stackoverflow... either that or she probably saw an ad... or her colleague told her

Dani commented: You spammer!!!!! +0
<M/> 170 Why so serious? Featured Poster

Apparently you can invade other countries and kill a few million Jews (and others) as long as you don't dis the Pope.

why would anyone want to do either one (other than hitler)

The average pay for a programmer:
India $10,000
Russia $20,000
USA $90,000

Those numbers are pretty crazy.

<M/> 170 Why so serious? Featured Poster

@stuvart, or it can 16x16 (i believe)...

<M/> 170 Why so serious? Featured Poster

Choc lab, and a dane/hound

Yep... that "little" fella is going to give you a good cardio workout in the morning ;) and congratz on your 18th pet!

<M/> 170 Why so serious? Featured Poster

@Dani, if you want a good workout for someone who works at home on the computer, try my all time favorite workout. I call it sitting :D The only way you feel the benefit of it is if you put your legs on top of your desk and apply tension to your core/abdominal muscles. Believe it or not, that was the original reason on why I got my six pack in the start of middle school :D

You can also try standing when you do your work....

<M/> 170 Why so serious? Featured Poster

So... random question to you guys (i haven't seen anyone ask this yet).

What workouts/excercises/etc. do you Daniwebbers do to stay in shape? Normally I hear that people on the computer are normally really feeble geeks with point dexters but no one ever mentions a muscular programmer. So, what do you guys do to stay in shape?

For me, my all time favorite workout is sitting (yes i said it, and i will explain if necessary) and my other favorites are pullups (wide grip and with leg raises to go with each rep plus hold for 1-3 seconds), benchpress, sprinting, squats (normally with 2 45'lb plates on each side of 45'lb bar doing high reps (around 25-35)), rowing, plyometric workouts, etc.

So... what are your favorite workouts?

<M/> 170 Why so serious? Featured Poster

why the hell do you guys want avatars like old bits of carpet?

Are you refering to the gravatar?

<M/> 170 Why so serious? Featured Poster

mhmmm

<M/> 170 Why so serious? Featured Poster

The Wizard of Oz

<M/> 170 Why so serious? Featured Poster

... and the question is?

<M/> 170 Why so serious? Featured Poster

yeah.

<M/> 170 Why so serious? Featured Poster

hey guys for some reason my favicon decided to show up on both web browsers today :)

I don't think it just randomly appeared... but anyways, do you understand why it worked and if you did, did we help answer your question?

<M/> 170 Why so serious? Featured Poster

@diafol, how about a site like this test your sites: http://litmus.com/page-tests

<M/> 170 Why so serious? Featured Poster

You have to take helpf from the stackoverflow.com. You will found more information regarding your coding errors.

Why are you redirecting the op to stackoverflow? You do realize he is asking this on the forum and his question is technically answered. Also, stackoverflow competes with daniweb... so please never bring up stackoverflow as if you want the op to ditch this site and go them (their site sucks fyi...).

<M/> 170 Why so serious? Featured Poster

Really Sue... you had to bring up w3schools like the last few dozen people...

diafol commented: he he +14
<M/> 170 Why so serious? Featured Poster

you sure?

<M/> 170 Why so serious? Featured Poster
daino commented: good find +3
<M/> 170 Why so serious? Featured Poster

How about Coda 2 or Dreamweaver? Ever tried those? You can customize the screens on them.

<M/> 170 Why so serious? Featured Poster

is this the only thread you post in?

<M/> 170 Why so serious? Featured Poster

oblivian

<M/> 170 Why so serious? Featured Poster

The &thinsp; entity should indeed create a space, but a "thin" space, which is shorter than a normal space. How short would depend on the browser, but it could be significantly shorter.

A standard space can be added in HTML using the &nbsp; entity. I'd recommend that instead, since its' more or less "the" space entity in HTML, supported in every browser ever made. (Support for &thinsp; isn't as widespread.)

Ah, now i remember &nbsp;... i am surprised how it slipped past my mind... espicially when i was using it an hour prior to responding to this thread the first time :D

<M/> 170 Why so serious? Featured Poster

no problem.

<M/> 170 Why so serious? Featured Poster

iTunes is better than Google Play but iTune sucks when it comes to obtaining music... its why we have spotify ;D

<M/> 170 Why so serious? Featured Poster

If I recall (i am sorry if i am wrong) but you can use &thinsp; to create a space (as far as i am aware of, this works in html to create a single space).

You are asking for a single space right?

<M/> 170 Why so serious? Featured Poster

@Reverend Jim, the link you provided is quite interesting... i never thought i would see underwear with that message.

<M/> 170 Why so serious? Featured Poster

I read somewhere that Google gets 15 thousand job applications a week. So good luck!

I thought that was Yahoo!?

<M/> 170 Why so serious? Featured Poster

Syria was a French colony for 20 years and the occupation was brutal. Strange that these are the only folks who want to join us in bombing the place.

Lets not be surprised.... they WERE a french colony so of course the french want to join us.

<M/> 170 Why so serious? Featured Poster

You know it really beat the purpose of creating from scratch but it's a nice link and very useful.

It is just fun to stand out :D

<M/> 170 Why so serious? Featured Poster

How about something like this to convert your png's into ico's:

http://www.convertico.com

LastMitch commented: Nice Research! +12
<M/> 170 Why so serious? Featured Poster

if you want a little more info, read this by w3c: http://www.w3.org/2005/10/howto-favicon

<M/> 170 Why so serious? Featured Poster

Well... all i can say is that not very many people have said Google ;)

<M/> 170 Why so serious? Featured Poster

@diafol, why not just close this thread? Most of the users here are saying w3schools anyways...

<M/> 170 Why so serious? Featured Poster

i am playing around with the snippet and i still don't see any success. what did i forget to do?

<M/> 170 Why so serious? Featured Poster

Ok... i tried testing the code, so far it isn't working successfully :( It doesn't do anything. Am i missing something?

<M/> 170 Why so serious? Featured Poster

Oh ok, i see now. One last question, should i apply that snippet to my webpage (index.php) or to the cms (moodle editor) i am using to display the page?

<M/> 170 Why so serious? Featured Poster

I'm pretty out of date. What is a facepalm? I'm getting old.

Basically it is just your palm to your face... kinda like this: http://www.taylorclark.co/wp-content/uploads/2013/04/picard.jpg :D

can you post the code of how your iframe pop up? It should be in javascript.

All i did was this:

<iframe src="http://mywebsite.com/" width="100%" height="745"></iframe>

Also, i was using a cms called moodle (don't ask how i got it ;)), could the cms have anything to do with the problem?

<M/> 170 Why so serious? Featured Poster

iframes usually works for all browsers. It's what inside the iframe might not display. What data are you trying to display. It has be appropriate.

I am trying to display a webpage, the problem is that the webpage displays properly by itself on all browsers but doesn't display on most browsers when i use iframe.

Dani should give you a bonus. Just lecture Micheal.

... (facepalm)

<M/> 170 Why so serious? Featured Poster

I am so confused why anyone still bothers to ask questions like this... at least post it in the right place!

<M/> 170 Why so serious? Featured Poster

Click on the 'Forums' link in the footer toolbar.

Forums link? how long has that been there! man... i have forgot a lot in my 2 months absence... :(

<M/> 170 Why so serious? Featured Poster

well, with an ios you can simply just click on the menu item and the dropdown opens but in your case (Android) just memorize the URL http://www.daniweb.com/web-development/php/17 ;)

Maybe Dani will come up with an update soon for android users?