Jump to content

dreamwest

Members
  • Posts

    1,223
  • Joined

  • Last visited

    Never

Posts posted by dreamwest

  1. That blue text is rather large.  I would reccomend using black text unless your are using a black background (then use only white text).  The Big Blue text looks really ... ugh.

     

    I agree use 12px for text

     

    You have alot of uneeded code at the end of you page

     

    </span><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/></div></body></html>

     

    You can easily fix this with css

     

    Replace the above code with

     

     

    </span><div class="bottom_space"></div></div></body></html>

     

    And in your css file add

     

    .bottom_space {

    margin-bottom: 150px;

    }

  2. Nice logo.

     

    Ive moved away from large logo images....slows the page too much, by using css and small images repeated you can achieve a very fast and sexy site....but its up to you

     

    If you have multiple pages you might want to cache the images at least by adding this to .htaccess, you wouldnt believe the speed it increases

     

    <FilesMatch "\.(jpg|jpeg|gif|ico|png)$">
    Header set Cache-Control "max-age=604800, public"
    </FilesMatch>

     

    Your html code is nicely set out but you can halve the code by using css and caching that too with

     

    <FilesMatch "\.(css)$">
    Header set Cache-Control "max-age=172800, private, proxy-revalidate"
    </FilesMatch>

  3. Australia dosnt have too many bad crimes.......cause we dont have guns!

     

    You don't need a gun to commit a 'bad crime', which is a relative term anyway.

     

    Ppl who suffer from rage are extremely dangerous. Thats why personal guns need to be banned.....i mean buying a gun at wallmart WTF!!

     

    How many ppl do you know who flip out over minor shit??

     

    http://au.youtube.com/watch?v=7Sq-HYGfnIo

     

    Imagine if this was a gun and not an axe...

  4. Dunno how your system works, but your money won't keep you out of a Danish prison.

     

    Just to give you an example, in Australia where i am, a pedophile raped over 30+ kids over 5 years and he got 14 years with      parole after 11years. Ivan millat a serial killer, killed 40 ppl and got 20 years.

     

    Australia dosnt have too many bad crimes.......cause we dont have guns! 

  5. From my understanding (.*) means the rewrite will accept any type of input (letters, numbers, anything) If you just want letters off the top of my head I think it is ([a-z][A-Z]) but I might be wrong.

     

    If you just want index.php to be rewritten to index/ it would be

    RewriteRule ^index$ /index.php

     

    If you want a trailing slash just change ^index$ to ^index/$

     

    -Corey

     

    Thanks. A simple example is all i needed :)

  6. That depends on where you live. In Denmark you cannot bail out of prison no matter how much money you have.

     

    Sounds like one of those countries that jail you for a parking ticket

     

    Time to move to Canada - Land of the real Free!

  7. So DUI is okay until you hit someone and kill them?

     

    Thats for idiots! Rich ppl wouldnt be stupid enough to do that - except paris

     

    I have a couple of rich friends and they do/have done stuff that would have commoners behind bars

     

    Being rich == Freedom

  8. Im using a points mod in my forums where users have to post/reply to topics to see attachments - helps expand new forums rapidly.

     

    It can also be modified through paypal so ppl have to pay to see content.

     

    Anyhow, considering phpfreaks forums is desperate for funds, and are now big enough to charge ppl for answers to thier problems, say only in help forums like php,mysql, etc. You could make a "solved question" to cost the user 50cents or whatever

     

    Capitalization RULZ!!

  9. everythings legal if your rich!

     

    but seriously, who cares...have a contact form so authors can ask you to remove their content. itll only become an issue if your website becomes big enough for ppl to complain

     

    95% of the shit ppl worry about neva comes true....so why worry about shit

  10. This is mysql command:

     

    mysql_connect("localhost", "user", "pass") or die(mysql_error());
    mysql_select_db("dbname") or die(mysql_error());
    
    // Delete row where 15 from the "example" MySQL table
    mysql_query("DELETE FROM example WHERE anything='15'") 
    or die(mysql_error()); 
    
    echo "cool! all done";
    

     

    Give me a table name and column names and ill adjust this for u

  11. 2) Since I am not very knowledgable in MySQL nor how PHP interacts with it, I want to learn that as well.

     

    its friggin easy. if youve learnt .htaccess coding youll know what i mean, its about as "hard" as that

     

    ....for me my 2009 resolution is to FINALLY learn ajax......making me a full programming guru!

  12. Guy i used to know keep coming around my house at 7am EVERY F&*%ING DAY!!

     

    Knocks on my bedroom window to "chat" about crap, its really pissing me off.....but i cant tell him to rack off cause he let me store my furniture in his shed till my house was built.

     

    I know hes just bored....but im gonna flip out if he keeps buggin me like this!!!!!!!!!!

  13. SEO IS BORING!! Its so yesterday.

     

    You want top rankings its simple:

     

    Create a dynamic website (content that is changing all the time - thats CONTENT CHANGING not page changing) by rotating it with cron.

     

    *Also if your domain name has been registered less so many months google will give u shit ranking no matter what - glad all mine are more than a year old :P

  14. Um, okay . . .

     

    That's a pretty well known JavaScript function. You can also go forward in the browser history using a positive integer (assuming the user, or javascript, has gone back in the history)

     

    yeah. i was using php code to tell where the user came from.....this is simpler though

  15. Just wanted to share the best javascript for page history return.

     

    A lovely and simple line anyone can remember:

     

    <a href="javascript:history.go(-1);">previous page</a>

     

    You can set this to return to any page the user has previously browsed set "(-1)" to how far back you want the hyperlink to take you

     

     

  16. Im trying to seperate the 2 tables just in case i screw something up.

     

    Once i have the info in example2 table i can use another script to work of that table instead of the example table.

     

    Of course example2 table will have extra columns so this will make it easier when writing scripts

     

    I scrapped this idea and just addedd the extra columns to the original table

  17. I have 100 rows in column1, how can i make this transfer all rows over instead of just one.

    What are you trying to accomplish???

     

    Im trying to seperate the 2 tables just in case i screw something up.

     

    Once i have the info in example2 table i can use another script to work of that table instead of the example table.

     

    Of course example2 table will have extra columns so this will make it easier when writing scripts

  18. mysql_query("INSERT INTO example_2
    (column1, column2) VALUES($row['column1'], $row['column2']) ") 

    I think it's a problem with your $row['column1/2']; mysql values need to be in quotes.

     

    mysql_query("INSERT INTO example_2 (column1, column2)
    VALUES 
    ('".$row['column1']."', '".$row['column2']."'));

     

    Thanks that was it!

     

    Can i ask one more question about the same script...

     

    I have 100 rows in column1, how can i make this transfer all rows over instead of just one.

     

    Ive tried the while command but no luck:

     

    mysql_connect("localhost", "user", "pass") or die(mysql_error());
    mysql_select_db("dbname") or die(mysql_error());
    
    // Retrieve all the data from the "example" table
    $result = mysql_query("SELECT * FROM example")
    or die(mysql_error());
    
    echo "ok";
    
    // store the record of the "example" table into $row
    while($row = mysql_fetch_array($result))
    
    {
    
    mysql_query("INSERT INTO example_2 (column1, column2)
    VALUES 
    ('".$row['column1']."', '".$row['column2']."'));
    or die(mysql_error());
    
    }
    
    echo "ok2";

  19. im just learning mysql and im trying to use variables in the "INSERT INTO" command

     

    can anyone tell me what im doing wrong here:

     

    mysql_connect("localhost", "user", "pass") or die(mysql_error());
    mysql_select_db("dbname") or die(mysql_error());
    
    // Retrieve all the data from the "example" table
    $result = mysql_query("SELECT * FROM example")
    or die(mysql_error());
    
    echo "ok";
    
    // store the record of the "example" table into $row
    $row = mysql_fetch_array( $result );
    
    mysql_query("INSERT INTO example_2 
    (column1, column2) VALUES($row['column1'], $row['column2']) ") 
    or die(mysql_error());
    
    echo "ok 2";

     

    Im basically just transferring:

     

    Table: example
    Columns: column1 and column2
    
    TO:
    
    Table: example2
    Columns: column1 and column2

     

    any help would be appreciated......

  20. Thanks for the help...

     

    I want to take it a step further and add ifelse, i feel like im close but still chasing my tail

     

    Heres what ive got so far:

     

    $days = 2;
    $hours = 0;
    $minuets = 4:
    
    if ($days == 0) {
      echo 'Added '.$hours.' hours and '.$minutes.' minuets ago'; 
    } else {
    echo 'Added '.$days.' Days ago';
    } elseif ($hours == 0) {
      echo 'none'; 
    } else { 
    echo 'Added '.$hours.' Hours ago';
    }
    

     

    My goal is to make it so if there is "0" in any of the variables only the variables with 1 or more will display in a message

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.