Jump to content

dreamwest

Members
  • Posts

    1,223
  • Joined

  • Last visited

    Never

Everything posted by dreamwest

  1. Table join example: $res = mysql_query("SELECT * FROM `table1` as t, `table2` as t2 WHERE t.`id`=t2.'t_id' ");
  2. Seriously this is how upper class think...you should see my friends im tame compared to them, i actually consider myself quite humble in comparison. Anyways im off to bed....and going to sleep well (with a clear conscience)
  3. A game he was playing? From your own mouth he was trying to defend you trying to shortchange him. Not only are you a dick, but you don't respect your elders. And then there's the shag thread. Man...do you ANY morals? edit: And I just realized...you tried to shortchange him for $100, same as what you pay for shagging hookers.... what'd you do, have his payment in hand and decided to use some of it on another hooker? Then thought oh fuck, now I don't have enough to pay him, I know, I'm gonna try and cheat the old fart! geez man...you keep sayin' shit like this like you're all proud of it....do you not realize that nobody around here respects that sort of thing? Fucking grow up. It had nothing to do with shortchanging - it was about power Sorry let me elaborate, it wasnt about the time or money, it was the fact as a lower class person he thought he could control an upper class person. And that is unacceptable! Its like you going and ordering your boss around.
  4. Hehe ... I did that to an engineer who took too long to draw up plans, I when to my solicitor and requested he refund $100, he dug in and said it was my fault i didn't receive the supposed plans....anyhow it cost him over $2,000 defending it .....haha, typical commoners - too stupid to back down Wow man, what a dick move. How do you sleep at night? In the U.S. if someone sues you, the burden of proof is on them, not you. Innocent until proven guilty. Sure, the defendant has to spend money defending themselves, but if they win, they can countersue for what it cost them, court fees, lawyer fees, loss of wages, etc.. and they usually always win because they won the original case. It was just a game he was playing, anyway it taught him not to screw with younger ppl. In the end i just dropped it.....but i still feel i won considering the cost to him - Game over:)
  5. Hehe ... I did that to an engineer who took too long to draw up plans, I when to my solicitor and requested he refund $100, he dug in and said it was my fault i didn't receive the supposed plans....anyhow it cost him over $2,000 defending it .....haha, typical commoners - too stupid to back down
  6. or instead of cron you can store a timestamp and match that against the current time, deleting any entries older than 5mins or whatever. You still need cron for that too. I wouldnt recommend deleting rows every time a page is called, thats bad and expensive
  7. cool! I never would have figured it out Thanks
  8. $ip = $_SERVER['REMOTE_ADDR']; if($ip){ $res = mysql_query("select from table where ip='{$ip}' limit 1"); //ip is varchar 255 if($res){ $num = mysql_num_rows($res); if($num == 0){ mysql_query("insert into table set ip='{$ip}' "); }//end if num }//end if res }//end if ip Run cron to delete ips every 5 mins or so, then just count the rows ..and they lived happily ever after.. The end
  9. Im trying to match this string, but i dont wat to match normal words like "hello world 646" $string = "2ab055843241f20044af82ae0d5ace04"; //always over 15 chars - without spaces if ( preg_match('~^[0-9\s]+$~D', $string)) { echo 'yes'; } If i can do it with preg_match that would be great
  10. Found the prob, i still needed to divide the int rate to a monthly amount: function _clean_number($input){ return (float) preg_replace('/[^0-9.]/', '', $input); } $id = 7.3; //interest rate $amount = 250000; // amount of loan $time = 30; //time in years $month_term = $time * 12; $month_rate = ($id / 100) / 12; $power = -($month_term); $denom = pow((1 + $month_rate), $power); $amount = _clean_number($amount); echo number_format($amount * ($month_rate / (1 - $denom)));
  11. Im trying to get a monthly repayment for a loan but a $250,000 loan gives repayments of $136,250 per month function _clean_number($input){ return (float) preg_replace('/[^0-9.]/', '', $input); } $id = 7.3; //interest rate $amount = 250000; // amount of loan $time = 30; //time in years $month_term = $time * 12; $month_rate = $id / 12; $power = -($month_term); $denom = pow((1 + $month_rate), $power); $amount = _clean_number($amount); echo number_format($amount * ($month_rate / (1 - $denom)));
  12. dreamwest

    Sphinx

    Has anyone got a live example of sphinx running? I want to see how fast it is, and any opinions using it
  13. Well if your young, you have two paths to follow - my suggestion (shag, get rich, retire and shagwell), or follow the pack and do what everyone else does...BUT you WILL get what everyone else gets, take a look at someone that is 5 or 10 years down the road you want to go , and see if you like what you find....i didnt like what i saw!! It takes guts to leave the pack. BTW brothels are legal in Australia, its like a candy store, in melbourne city theres nearly one in every suburb...and they are most popular with younger guys - see younger guys are waking up and not taking the word of the commoner, but looking ahead to see where theyre going - im so proud!
  14. Just last night - she was great. But no matter what opinions ppl have, i want younger guys to know that there IS an alternative, you dont have to be someone your not to impress trashy girls in your school/office, you can have the best looking girls anytime you want and i must emphasize THE BEST LOOKING GIRLS.....its the upper class way, look at American psyco movie - upper class guy with good looks gets the girls he wants (and does the things he wants) Ive converted many a unhappy man in relationships over to brothel shagging, cause NOTHING competes with it
  15. Single handedly keeping the hooking business afloat during the recent recession, good job. Yes was 95% brothels, i mean its just easier...and i like to cheat. Every other guy has to fight for chicks, i just hand over a measly hundred bucks - for a james bond model!
  16. Well its official - as of today ive had 100+ shags within the last 6 years - each time a different girl....im not going for 1000, i think its a bit much for minime and expensive. If anyone has beaten this .....do share! By the way, out of all of them - asian chicks RULE!!
  17. Reminds me of my special little friend i had a play with: http://www.phpfreaks.com/forums/index.php/topic,305079.msg1442759.html#msg1442759
  18. heres a good example: http://www.wizecho.com/nav=extra&s=bits#3
  19. Even better: mysql_query("bla bla"); $id = mysql_insert_id();
  20. Dedicated concatenation is sooooo yesterday, use braces instead itll clean up your code and it can handle arrays <?php $con = mysql_connect("localhost","",""); if (!$con){ die('Could not connect: ' . mysql_error()); } mysql_select_db("mainbase", $con); $result = mysql_query("SELECT * FROM matteroffact"); echo "<table border='0'> <tr> <th></th> </tr>"; $row = mysql_fetch_array($result) or die(mysql_error()); echo "<tr><td> <strong>{$row['question']}</strong> {$row['answer']} </td><tr> </table>"; ?>
  21. Interesting. Why so long to load video? Took 4 mins
  22. You should have done as reaction video of her....like grandma
  23. use a separate .htaccess in the real directories /.htaccess /pix/.htaccess Anyway i dont think its possible to block access to the actual images by using a redirect without the image not showing up, this only works with included files
  24. if you only had smarty, you could do this in 5 seconds {$html_keys|default:'Home page'} Now isnt that simpler....
×
×
  • 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.