Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. Of course there's a reason I started this. Would be pointless not to. I want to edit Windows.....yeah pretty blunt. Let's say in a regular explorer folder I highlight a series of files....maybe 9 or 35...doesn't matter, it's multiple files. Now when I right-click the hightlighted area I have now...I have a context menu. Say I wanted to add something to the menu, or edit something What language can I use to do such things. and when I get this language which compiler can I use with it what would I need to learn to create an icon on my desktop that opens up something box that in the background edits my context menus...everywhere.. Like for instance I wanted to create a batch rename item. im not sure if the registry editor is involved or not.....but I'm looking for a language Hopefully I'm not vague
  2. I wanted to call this thread...Name That Language! but was afraid people would think I'm starting a game. I'm not trying to start a game or anything. It's sort of a trend starter but I don't want it to end up to be just a post count upper. So what is it? There have been many times where I have looked at something and wanted to edit it. And I wanted to do it without downloading some stupid program that someone made particularly for that one little thing. Number one thing that comes to mind for an example is MySpace. People say to themselves...."I want to edit my myspace, How do I do it?" it's not long before they've bumped into things like pimpmyspace.org or lovemyflash.com. Creatively designed forms used to do all the work for you leaving you learning nothing. When really you should know that too edit anything in myspace you need to know HTML & CSS, have the source of your profile on hand, be creative. That's where I proclaim...Name that Language!....What's that Language? in order to...."play"....you need to have a really good description of what it is you're working with. Describe a scenario you might want to create with such a language. Just make sure you use your quote tags when you answer people, so everyone can tell who's answering who.
  3. mix this up a little bit if ($cnt == "0" || ($cnt % 4) == 0) { echo ""; } to this if($cnt == 0 || !($cnt % 4)) echo ""; if(($cnt % 4) != false) echo "\n";
  4. begins a new row... starts a new column you start top to bottom, left to right NEW row NEW dimension NEW dimension contents: Record 1 NEW dimension NEW dimension contents: Record 2 all the while....keep tabs on whether the Record # is divisible by 3. if(($rec_id % 3)) == false if it's true you need a new row NEW row
  5. for every count of $cnt? just echo it...it's already in the loop.... if you just echo it....it'll be echoed to the end.
  6. if ($cnt == "0" || ($cnt % 4) == 0) this has to be in a loop somewhere for $cnt to even be changing... or else it will only work as soon as it loads so to answer your question....change $cnt.
  7. I think we are on the wrong track. Let me explain the script a bit more fully: well $query = mysql_query("SELECT * FROM table"); while($row = mysql_fetch_array($query)) { $i = 0; //srand((float) microtime() * 10000000); $input = array("fun", "happy", "silly", "wacky", "cool", "lucky", "cool", "cute", "attractive", "great", "unreal", "sweet", "nice"); //$rand_keys = array_rand($input, 2); $randomtext = implode(" ", $input); //$str1 = $input[$rand_keys[0]]; //$update = mysql_query("UPDATE table set `field` = $rand WHERE `id` = {$row['id']}"); //$rand = rand(1, 9999); $update = mysql_query("UPDATE table set `field` = '{$andomtext}' WHERE `id` = {$row['id']}"); }
  8. $query = mysql_query("SELECT * FROM table"); while($row = mysql_fetch_array($query)) { $rand = rand(1, 9999); $update = mysql_query("UPDATE table set `field` = $rand WHERE `id` = {$row['id']}"); }
  9. Zane

    Fetch Zip Code

    ,[A-Z]{2}\s(\d{5}(-\d{4})?)
  10. Pretty much like steelmanron said. If you just want to learn how to make websites for a living, go to a community college. But, if one day down the road a newer..popular language comes out and you want to be able to pick it up easily with as few classes/books as possible.....go to a university. I only went to WCU for 1 year and the classes I took, I learned JAVA and Javascript. Java taught me enough to catch onto Object Oriented Programming so that when PHP5 showed it's OOP colors....I wasn't really intimidated.
  11. switch finaltotal and finalgrade ...on the calculations area
  12. glad that it worked out for you
  13. Change this `points` = '($points + $last)' WHERE to this `points` = (points + {$last}) WHERE
  14. UPDATE tableName SET colname = 'zero';
  15. indeed
  16. echo $integer." "; } else { $integer = $integer*3; $integer = $integer+1; echo $integer." "; //$integer = $integer/2; // echo $integer." "; } remove the commented lines in your code
  17. $currentdate=date("Y-m-d", strtotime("+ 5 hours 45 minutes");
  18. the easiest way is to use strtotime take your source date 03/01/08 or 03/01/2008 put it in the function strtotime("03/01/08")...which yeilds 1204952400 get the current days date 01/03/08 or 01/03/08 strtotime("01/03/08")..yeilds 1199336400 find the difference between 1199336400 and 1204952400 = 5616000 UNIX time is all in seconds so that's 5616000 seconds 5616000 seconds => 93600 minutes 93600 minutes => 1560 hours 1560 hours => 65 days 65 days which nears around 2 months or so...give or take. and what do you know...2 months or so (considering leapyear) from today it will be March 3rd
  19. try returning a new C instance function getClName() { return new C; }
  20. if you're looking for a way to put it into a visual fraction of some sort like $rating = UP/TOTAL you can just go $rating= $rs['up'] . "/" . ($rs['up']+$rs['down']); but as long as you have it the previous way.....it'll just go ahead and do the math Surely it doesn't happen every time, for debugging purposes I recommend you click the "up button" and "down button" buttons you have a few times or a hundred...just to see if it's all working EDIT: nevermind sorry you're getting that because it's always going to be a fraction....
  21. ditto dude schwew...now I have to start all over again and learn php6..lol
  22. eh...well color me old-fashioned...lol
  23. surround your variables with curly braces VALUES('{$borid}','{$user}','{$pass}','{$bfn}','{$bln}','{$tel}','{$email}','{$ssn}')";
  24. I'm not sure which SQL DB editor your using...but as far as I know there is NULL and NOT NULL If you set it to NULL...all that means is if you don't send a value...you'll get a complimentary NULL in place of whatever column you left out of your INSERT statement, or the blank strings... If you set it to NOT NULL....you'll get exactly what you sent to the database...whether you sent it a blank string or not.
  25. Well then, I'd say you should round() then echo round(9.126709098, 3);
×
×
  • 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.