Jump to content

dreamwest

Members
  • Posts

    1,223
  • Joined

  • Last visited

    Never

Everything posted by dreamwest

  1. 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. 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. Your "pay" would be the recognition. Anyway the amount would/should only cover server expenses and a little profit for phpfreaks owners
  5. 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!
  6. Thanks. A simple example is all i needed
  7. echo "<a href=images/applications/\".$info[picname].\" rel=lightbox>"; Variable needs to be in <?php ?> tags
  8. Sounds like one of those countries that jail you for a parking ticket Time to move to Canada - Land of the real Free!
  9. 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
  10. 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!!
  11. 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
  12. Figure of speech.....its all coding in my opinion.
  13. 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
  14. 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!
  15. Is there such a thing as php hacking...never heard of it! And using php to affect a database isnt php hacking its DATABASE HACKING duhhhhhhhhh!!
  16. 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!!!!!!!!!!
  17. Ajax ahhh yes, my last language ive yet to learn....
  18. 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
  19. yeah. i was using php code to tell where the user came from.....this is simpler though
  20. 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
  21. I scrapped this idea and just addedd the extra columns to the original table
  22. 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
  23. 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";
  24. 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......
  25. 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.