<M/> 170 Why so serious? Featured Poster

TED was actually really funny. Enough said even though I hate family guy the movie was enjoyable :)

<M/> 170 Why so serious? Featured Poster

Not all americans are berserk like that... I mean this only happens WalMart lol

<M/> 170 Why so serious? Featured Poster

LastMitch, I'd love to hear your compositions :)

Ancient Dragon, you'll achieve your goals! your's are achievable compared to mine... :)

<M/> 170 Why so serious? Featured Poster

I am not sure if this will help you, but I found this for you... it could help you.
Click Here

<M/> 170 Why so serious? Featured Poster

Having multiple files is possible :)

<M/> 170 Why so serious? Featured Poster

Sorry guys if I am becomming annoying, I am trying to master this!

<M/> 170 Why so serious? Featured Poster

So... from my other file that populates the csv from the web data I managed to pull this

$count= count(file("main_form.csv"));                       
                        $today = date("d M Y h:i A");
                        echo $today;



$cvsData = "\n" . $count . "," . $today . "," . $first_name . "," . $last_name . "," . $email . "," . $telephone . "," . $reason . "," . $time . "," . $comment . "\n";

$fp = fopen("main_form.csv", "a" );
if($fp){
    fwrite($fp, $cvsData);
    fclose($fp);
    }                   

Could this have something to do with creating an extra line that causes the counter to go wrong?

<M/> 170 Why so serious? Featured Poster

Well, i tried adding some increment/decrement symbols on #row_count ++=1; that didn't work... do you guys know what causes the counter to go wrong? could the counter be wrong wrong due to a php file using the same csv file and overwriting the other php file?

<M/> 170 Why so serious? Featured Poster

Thanks blocblue, your resource was helpful, but the counter is still off. That's okay at the moment, I will investigate that and come right back!

<M/> 170 Why so serious? Featured Poster

Become a billionare
Be an important figure in society
Be the owner of a major company
Go to harvard (or any ivy league school)
Haj
Be applicable for young retirement, but continue working...

My bucket list is full of challenging ones, don't you guys say?

<M/> 170 Why so serious? Featured Poster

Lice?

<M/> 170 Why so serious? Featured Poster

stories to end!

<M/> 170 Why so serious? Featured Poster

"With great power comes great responsibilties" -> Spiderman 1

<M/> 170 Why so serious? Featured Poster

Chocolate -> makes you fat

SPARK PLUG -> device for delivering electric current from an ignition system to the combustion chamber of a spark-ignition engine to ignite the compressed fuel/air mixture by an electric spark

Apple

<M/> 170 Why so serious? Featured Poster

My friends and I tend to play video games on our ps3 consoles and we oftenly play Call of Duty because everyone (friends and I) has it...

<M/> 170 Why so serious? Featured Poster

Call me maybe -- Carly Rae Jepson

<M/> 170 Why so serious? Featured Poster

You should try runescape now, it has been improved!

<M/> 170 Why so serious? Featured Poster

I worry that I won't make it into an ivy league school like harvard, princeton, MIT, CalTech and maybe stanford.

<M/> 170 Why so serious? Featured Poster

Well axe does attract models... to stay away from axe users lol.

The worst part is that in a locker room, lots of people use axe and they share it! Plus they spray other for no reason even if they are girls!!!

Yes axe is commercially successful, but it's a failure to attract those with noses...

<M/> 170 Why so serious? Featured Poster

oh okay, I will experiment with what I can do :)

<M/> 170 Why so serious? Featured Poster

dani_krish, they have over a billion now. :)

<M/> 170 Why so serious? Featured Poster

This maybe a dumb question but where do you paste it in? In the header or before?

<M/> 170 Why so serious? Featured Poster

LastMitch... if that isn't true which university is the best for student's making higher by average?

BigPaw... that is just so weird interesting at the same time.

<M/> 170 Why so serious? Featured Poster

no, i don't want a blank line because it causes the counter to go wrong.

The problem is that an extra line is created that is completely blank (look on the attachment that I attached above, not the excel preview). The blank line causes it to count 1,2,4,8... and so on.
But if the extra line is removed, it would count 1,2,3,4,5... which is what i want.

<M/> 170 Why so serious? Featured Poster

Here is a snapshot of the csv viewed in excel... it skips a line in the csv, so it would skip a line as seen on the site.

I will try out your idea on commenting out line 30, probably not this very instance because its 1 am, and I have to be up at 4...

<M/> 170 Why so serious? Featured Poster

Please tell me if you need to see what it looks like with more inqueries!

<M/> 170 Why so serious? Featured Poster

... i have not been spamming...

Don't think that this is the only project i work on... but yes i do work on this one a lot... so please lose the thought of me only working on 1 project. I am not a pro, you are. I am not even an amateur, I am a beginner.

But anyways... here is an example of what I get... (view attachment)

<M/> 170 Why so serious? Featured Poster

I may need to see a snippet that would do that, I am kind of un sure of how to do this.

<M/> 170 Why so serious? Featured Poster

I have a php file that reads a csv file and pulls the data and displays it on the site. But unfortunately I don't know why it creates an extra line which sets the counter to go wrong... How do i fix that?

This is my code:

<style> table{width:100%; border-collapse:collapse; border:3px solid red; font-size: 10px;} td {font-size: 10px; border: 1px solid blue;border-collapse:collapse; text-align: left; width: 50px; padding-top: 1px; padding-left: 1px;} th {background: #ffb300; text-align: left; padding-top: 1px; padding-left: 1px; font-size: 10px;} tr:hover {color: red; font-size: 10px;} .dark {background: #ffb300;} .light {background: #ffb300;} first_name {width: 50px;} last_name {width: 50px;} email {width: 50px;} telephone {width: 50px;} reason {width: 50px;} time {width: 20px;} comment {width: 150px;} count {width: 20px;}    today {width: 30px;}</style>




<?php


echo "<html><body><table style=''>";//Table style is empty 
$f = fopen("csv.csv", "r"); //File csv.csv is openned and read only "r"
$trcount = 0; //This is just to set a counter for making sure that we have alternating rows 

while (($line = fgetcsv($f)) !== false) { //$line = the content of $f which is the content of the CSV --- First Row
        $trclass = ''; //It has a table row class formating that is set to nothing... 
        if ($trcount%2==0) 
                          { $trclass=' class="dark"'; } //if count divided by 2 has no remainder then it is even otherwise no formating and it is light.    
            echo "<tr".$trclass.">\n"; //Just echos background for the row ONLY!!!!

    $tdcount = 1; //reset to 0 for each inner loop
        foreach ($line as $cell) {
                $tdclass = ''; 
                if ($tdcount%2==0) 

                       { $tdclass='class="light"'; …
<M/> 170 Why so serious? Featured Poster

but are more user friendly and better for new developers rather than windows being for more experienced "hardcore" developers :)

<M/> 170 Why so serious? Featured Poster

Well not everyone will have the same experiences on using operating systems... I perfer max os x because windows makes me feel like I am trapped in a box that isn't user friendly but for developers i would vary on sides... :)

My vote goes to max os x over windows :) (I am a highschool freshman... of course i pick apple over microsoft)

<M/> 170 Why so serious? Featured Poster

I believe the best solution is to build your own forum because most forums have rules... I would recommend you use wordpress and look into building forums :)

<M/> 170 Why so serious? Featured Poster

I agree with all of you guys... purple is hard to change due to it being the iconic theme of this site, I am wondering why Dani hasn't participated in this yet lol :)

<M/> 170 Why so serious? Featured Poster

so using this snippet from your site:

$("input").keyup(function () {
    var txt = $("input").val();
    $.post("jquery_ajax_gethint.aspx", { strinput: txt }, function (data) {
        $("span").html(data);
    });
});

How do i plug in the city names and how is it called?

I have my city names set up like this:

<select id="citylist" name="city[]" value="Search" >
        <option value="1">Select a City</option>
        <option value="183">Acton</option>
        <option value="270">Adelanto</option>
        <option value="348">Agoura Hills</option>
        <option value="353">Agua Dulce</option>
        <option value="360">Aguanga</option>
        <option value="372">Ahwahnee</option>
        <option value="622">Alhambra</option>
        <option value="638">Aliso Viejo</option>
        <option value="699">Allensworth</option>
        <option value="791">Alpaugh</option>
        <option value="809">Alpine</option>
        <option value="888">Alta Loma</option>
        <option value="893">Altadena</option>
        <option value="974">Alturas</option>
</select>

Would it be set up like this:

$("citylist").keyup(function () {
    var txt = $("input").val();
    $.post("jquery_ajax_gethint.aspx", { strinput: txt }, function (data) {
        $("span").html(data);
    });
});

  <select id="citylist" name="city[]" value="Search" >
        <option value="1">Select a City</option>
        <option value="183">Acton</option>
        <option value="270">Adelanto</option>
        <option value="348">Agoura Hills</option>
        <option value="353">Agua Dulce</option>
        <option value="360">Aguanga</option>
        <option value="372">Ahwahnee</option>
        <option value="622">Alhambra</option>
        <option value="638">Aliso Viejo</option>
        <option value="699">Allensworth</option>
        <option value="791">Alpaugh</option>
        <option value="809">Alpine</option>
        <option value="888">Alta Loma</option>
        <option value="893">Altadena</option>
        <option value="974">Alturas</option>
</select>
<M/> 170 Why so serious? Featured Poster

JorgeM, is there a way to do this without jquery by any chance?

<M/> 170 Why so serious? Featured Poster

Sorry for not replying... i didn't see the icon change colors... (don't ask what i mean)...

Is there a way to do this in php or at least jquery?

<M/> 170 Why so serious? Featured Poster

Well it at least atracts girls in a way (from boys stand point)... but on the label of axe it never mentioned that people would become hostile and hate the person wearing the "axe" if they detect it with their noses... :)

<M/> 170 Why so serious? Featured Poster

In my high school lockerroom for athletics change out, the whole room smells like axe! So i know exactly how you feel, but you don't know what it's like to be trapped in a "small" room with over 80% of the people using axe while others use old spice... Luckily i am the only one that considers using the gilette liquid deodorant so i don't wreck someone's sense of smell...

<M/> 170 Why so serious? Featured Poster

it was on cnnfn... so i temporarily believe it :)
How come you marked it off-topic? It's something i learned?

<M/> 170 Why so serious? Featured Poster

I have learned that Princeton graduates by average make more money than most colleges...

And I learned how to setup an admin back end... Now to give it function!

<M/> 170 Why so serious? Featured Poster

I never noticed that, that should be the next tweak

<M/> 170 Why so serious? Featured Poster

All your points apply to me :) except with the last one :)

<M/> 170 Why so serious? Featured Poster

... Reverend Jim... you don't realize how much I agree with you...! :)

<M/> 170 Why so serious? Featured Poster

I see... by the way, what is <A> suppose to represent lol?

<M/> 170 Why so serious? Featured Poster

but your small changes make huge impacts...? I think I'll vote on you reporting about your updates for now on :)...

Here is a bunny for your achievement (sorry it's not physically in your hand...)

(\/)
( '.')
c('')('') <-----your bunny!

Dani commented: Thank you for my bunny. He's very cute. +0
<M/> 170 Why so serious? Featured Poster

Dani, I agree with you... I used to have the T.V. on while I learn php and mysql... now i don't keep it on because it causes me to lose my train of thought.

BigPaw... what can I say, any thing that is an advert or an alert on tv is just a HUGE PAIN! But my cat does stare at my while i use the computer (she sits right on my keyboard and refuses to move) and she also doesn't chase the cursor on the screen... what she does is she steals the keyboard and mouse entirely! (surprisingly no scratches or bite marks anywhere... :D)... I think she abducts my things now because I normally abduct her to give her a bath, except she likes water just not when I give her the bath... :(

<M/> 170 Why so serious? Featured Poster

FINALLY! Someone agrees with me about the BLUE!

Nice pick deceptikon!

<M/> 170 Why so serious? Featured Poster

I know that purple is the main scheme and it's hard to change... but what if they changed they scheme for the holidays... you know what I mean?

But yeah, purple is a great scheme that was well thought of but I think the reason why the scheme is purple is because Dani's rank is the queen of the web and nobility is represented by purple :D

<M/> 170 Why so serious? Featured Poster

Wow... I never understood why people like to spam like that or at least why people fall for it... What was the result of the 2006 hit man spam...

Don't worry Davey, your books are worth $5000 a copy (assuming that you write many books... That's a lot) :)

<M/> 170 Why so serious? Featured Poster

I found this link...

http://www.w3schools.com/jsref/prop_style_backgroundcolor.asp

Sorry for not making it a link... The ipad tablet does not feature the ribbon yet that has the link button...

Hope it helps