-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
Same here, I only drag a blue box when there's whitespace to actually start one with. Even though there's that one little area of "whitespace pixels" sitting there to aim and click for if one so desired, I stick with good ole shift and ctrl. Also great for shift(cut) and copy(paste) too. So your fan is back to normal now? It's not randomly accelerating any more? Was this the solution all along? Perhaps it was hanging on dust at certain times and eventually pushing it out of the way and sending the fan racing to maximum velocity, only to later on be bombarded with more dust. I believe this topic is solved.
-
$str = "706.--- (555)******/////3205 . extension: 436"; echo preg_replace('#[^0-9]#','',$str); ?> Outputs: 7065553205436 Is that what your looking for? EDIT: it seems Alex beat me to it. This is basically the same as his solution.
-
IE 9 only 3 weeks old, and already increases acid test 3 results
Zane replied to nrg_alpha's topic in Miscellaneous
I just don't agree with this new Silverlight movement they're trying to make. I've refused to install until last night when I finally decided to use the Update Manager. Like everyone else I strictly use FF. Even Chrome I don't really have a use for.. -
IE 9 only 3 weeks old, and already increases acid test 3 results
Zane replied to nrg_alpha's topic in Miscellaneous
Yeah I see that. But I'd imagine all it does is use the same DLLs as IE. Surely that little app doesn't run off FTP. But I could be wrong, maybe Microsoft is just hanging onto IE for sake of .. holding on. -
Just a quick question of logic here. If your rule is to have max 3 bids, then why would you insert the 4th bid? And then turn around and try to check for it. That's just like the "honor system" with a candy jar. Putting up a sign saying "Only three pieces per person". And then having a security guard to watch by and tackle down whomever he can.. that he believes took another piece. I would simply query the database before every inserting a single bid. Run that count method I showed you earlier to check. If it's three then don't add a damned thing and give them an error message.
-
IE 9 only 3 weeks old, and already increases acid test 3 results
Zane replied to nrg_alpha's topic in Miscellaneous
I couldn't agree more. It seems they only really keep IE around as a portal for Windows Updates when they could just drop the internet browsing experience completely from IE and turn it strictly into an Updater app as they so discreetly try to do anyway. I believe their fear of new technologies comes from the possible fallacies there that may allow people to bypass the Windows Genuine checks and such. Which, in all reality, is just going to happen anyway. -
That would work.. but it's outright repetitive. no offense I'll lay it out for you. $dataOne = mysql_connect('localhost','user','pass'); $dataTwo = mysql_connect('localhost','user','pass'); //Same value as above mysql_connect('localhost','user','pass'); //Same as above too There's no point in assigning mysql_connect to a variable UNLESS you have MULTIPLE SERVERS to connect to. Say you had the login credentials for a database at yahoo.com AND you had your own personal server at localhost. THEN you would have VARIABLES. Otherwise, mysql_connect is going to connect regardless to whatever you tell it to. You said in your op that you only had to databases.. not two servers. So the question is. Are these databases hosted on the same server or not? If they are, then my solution should work just fine. If they're not, then yes, THAT (what you supplied) is exactly how you would go about posting to multiple databases on separate servers.
-
You can always specify the database explicitly in the query. But you still have to select a database to begin with no matter what. i.e. you have to use mysql_select_db AT LEAST once For example mysql_connect('localhost','user','pass'); mysql_select_db("dataOne"); $query = " INSERT into `sometable` (name) VALUES ('A name'); //Inserts into dataOne INSERT into `dataTwo`.`sometable` (name) VALUES ('A name'); //Inserts into dataTwo "; $r = mysql_query($query); This is assuming you have two databases (dataOne and dataTwo).. Each with a table called someTable.. that has a field called name. Edit: Also, assuming your database(s) or table(s) isn't named a reserved word. you can do this $query = " INSERT into sometable (name) VALUES ('A name'); //Inserts into dataOne INSERT into dataTwo.sometable (name) VALUES ('A name'); //Inserts into dataTwo ";
-
It's such a coincidence that you're having video card problems with Windows 7. My GPU fan isn't going crazy or anything like that (if it is I haven't really noticed any sound elevation. I don't keep the side off my pc or anything and my fans seem to be really quiet in general) but my actual video has been messing with me from time to time. Ever so often my screen will go on the fritz as if one of my "desktop's stylesheets" just got deleted. I'll move my mouse and pixels will begin to outline in random squares about the screen. And almost always create a perfect dotted rectangle directly inside the taskbar. Always in the same spot. Normally I would say that the video card was going bad if someone had shown me my computer, but this is just as weird as what you're describing. My only other guess is that you and/or I've picked up some sort of successful Windows 7 virus. It was meant to be faulty and expire and start shutting down next year so my best bet is with the OS. I also forgot to mention that when my screen does go on the fritz like that... it is fixed as soon as I restart again. I haven't seen it mess up for a week or so now. (I don't turn my computer off that often..btw)
-
http://ajaxian.com/archives/reverse-ajax-with-dwr
-
Wouldn't something like this work? SELECT first_name, COUNT(*) as count FROM `my_table` where id='1233 GROUP BY first_name Although it wouldn't put them into an array, $row['count'] would hold the quantity of user3, user2, etc, etc. while($row = mysql_fetch_array($result)) { echo $row['first_name'] . " appears " . $row['count'] . "times"; }
-
First you need to show what you yourself have done.. besides post a screenshot of your idea. Where is your current code?
-
I don't even want to think about what that would look like. *Trying not to think*
-
I believe you've got everything backwards or fumbled around .. as far as languages go. You would use PHP.. to retrieve the movies and put them into these "columns". I put columns in quotes because I'm talking about the image of two columns you gave. As I'm sure you know, those columns (in the image) aren't representative of the database itself. They are simply placeholders. All PHP does is put the data into one of those place holders at the beginning of the page load. Now, to move one of those "datas" to the other placeholder...using a button. You would use Javascript. That will be the only way... well there are options like Flash,Java,Ruby.etc.. but to make things easier. This is a Javascript question. So you've moved all the data from one placeholder to another... this doesn't mean ANYTHING for the database yet. At this point you have 2 options. 1.) You can send the contents of the second placeholder to another PHP page which THEN adds/edits/inserts/ it into the database. 2.) You can use Javascript again to initiate AJAX to put that stuff in the database INSTANTLY. I'll move this to Javascript now as you'll get better help there.
-
I was introduced to vi(m) a few years ago when I took Linux Admin and Linux Advanced Admin at my community college. Like every other *nix head the teacher was completely bonkers over it and preached to us all that it was the greatest thing since sliced bread. But he made a horrible impression of it to us when he actually got around to showing us. Although, we weren't using the GUI version (if there is one) it was the CLI based version. The one in which the only thing I can remember is that in order to exit the program I had to type q and s and number sign and exclamation mark, etc, etc.. more unexplained commands. I'm sure it's a great editor but I didn't learn a damned thing in those classes.. other than what an rpm was.. and yum, etc. Oh. and how to install it with apt-get/install (assuming that was installed). Off Topic
-
Personally, I like anything from regular Notepad to Zend Studio. I haven't been able to try Eclipse yet but I'm eager to since they've integrated the PHP libraries into it.. much like Dreamweaver and Zend Studio. That key feature is what sells me on an editor. That fact that the editor can tell me which function I'm about to type and which parameters that I NEED is awesome. I can't stand having to go back and forth from the editor to the manual. Especially when I'm working with those functions I don't normally use. What I really want to use is an editor with File Management capabilties, PHP function recognition, Regex Search and Replace and FTP access, then I believe I'd be a happy camper/coder. Too bad that editor has to be Dreamweaver. Perhaps there is another one out there that I don't know about?
-
I never got caught because I never mentioned my endeavor until after I was out of school. I guess I was too afraid of getting into trouble or telling the wrong person that would gossip about it to whoever that would gossip to so and so and so on. I didn't really trust anyone with what I did..lol I did give away a few passwords here and there but never took credit for finding them. When I think back to it though I was an idiot for never mentioning it. I probably could have shown up in the local newspaper or been offered some off-the-wall scholarship in the end. Like I said, my redneck town is really small and something as mediocre as a phishing page would have made the eyeballs bulge out of their heads. As if I just "cracked the pentagon" or something. I guess that just goes to show you that if you're gonna be a white hat hacker, then you'd better tell people about what you're doing when or after you do it. If not, you just go on forgotten.
-
I've been there before, but I think I realized that it was at that point ... I needed to sleep.
-
Maybe not representative of [b]right now[/b].. but still, 343 votes is quite a lot... compared to most polls we've hosted
-
I definitely have remembered more phone numbers in my life than passwords. My friends even consider me a human phonebook. Well they used to, back when hanging out with friends was cool. A friend would simply tell me "Zane, remember this phone number" and proceed to blurt it out. Maybe 3 days later I would vomit that number right back out to them. Ever since I can remember I've had this uncanny ability to hear or see a sequence of numbers and memorize them...without writing anything down. social security numbers, phone numbers, keycodes, credit card numbers, etc.. ICQ too. Although I'm not like rain man where I memorize EVERYTHING I see. Only what I subconsciously want to. I can still remember my home phone number from when I was 4 years old.
-
Yeah I would imagine this place looks awfully different after being gone for awhile. Lots of stuffs have happened. I believe I was just a regular user when you were a mod. I believe you were in that era of toplay, czambran, Arenium, shivabharat (or however you spell it) and of course gizmola.
-
Well I was never really gone.. although I was maybe a little inactive in 07. But other than that I've pretty much stuck to this place like a junkie hangs onto his crackpipe. I'm pretty much just redoing my introduction from the archived version and promoting this new board at the same time. Though it's the thought that counts so thanks for the welcome back!
-
is there any database of zip codes and states that you guys know?
Zane replied to co.ador's topic in MySQL Help
I've answered this question I don't know how many times. This is why it is in the FAQ/Code Repository board http://www.phpfreaks.com/forums/index.php/topic,208965.0.html -
It's amazing how you can look at a thread you posted years ago and think "Did I really write that?" But alas, I did. That's all me up there. (exactly 3 years and 3 weeks ago.. yesterday) So as you can tell, I've been here for quite some time. Trying my best not to spend ALL my time here. I don't have much of a portfolio (at all really) nor do I even have a job. If I were lucky enough to find one in this horrible recession, I'd either have found one putting together motors or serving burgers. Web development jobs seem to go to the women (in my town) who know enough to manipulate an Excel spreadsheet or Word document. I guess this is one reason why my county is the 3rd most poorest county in the state of North Carolina right now. It feels like deja vu saying this but I'm currently still in Southwestern Community College. And the ironic thing about me not being able to find work is because I've yet to graduate/get my degree. If only I could find a place that would work me for free for one 40 hour week (The Internship Class) I would be finished. But for some reason I've found that businesses (around here) don't seem to be too keen on actually putting interns to work. In order to pay me they'd have to hire me which they've all made clear to me is no option. Not even a "yet", "maybe", "someday" or "GTFO". Epilepsy has been a major part of my life for the last 8 years. I'd say it's safe to say it's been with me my entire life. This has a lot to do with the fact that I haven't graduated yet. I don't know how many times I've dropped the semester because of a seizure..fearing there would be more or I would be unable to focus and make terrible grades because of it. As far as programming experience and such goes though, which seems to me to be the most logical reason to even post an Introduction. PHP is my main thing. It was my first programming language I ever used and I still continue to use it. Back in high school.. in order to use the internet we had to login to this thing called I-Gear. It was a completely web-based login system (ran through the school's network of course). It was all based on CGI scripts. All the students would login with "mhstudent" (no password) and would have nothing but restrictions for everything you could think of. E-mail and porn mostly.. since that was the biggest thing back then. By now I'm sure myspace, facebook, "evil" stuff like bomb assembly and much more have made it into the mix. All the while the teachers and ANYONE that could login using a password was able to view all this stuff. This is when I made a my first real program that did anything remotely productive. In this day and age that program would be called phishing. Basically I sent out a mass e-mail to all the teachers on Presidents Day (with the From header forged for the principal's email) with a link to a greeting card .. somewhere. It then immediately redirected to my script on my server (I know.. pretty insecure and retarded. but so were they) that resembled an incorrect login page that EVERYONE in the school was so used to. As you can imagine I programmed it to e-mail me their input and within a day I had at least 30 user/passes for my own personal unrestricted internet access at school Today. I like to mess around with Javascript a lot...and CSS. Back in the day I was a big fan of using tables for layouts and swore by MS Frontpage 2003 But now I'm astonished that methodologies exist such as AJAX (which really existed all along) that takes fad out of disabling Javascript...finally. I knew Javascript had it's purpose in the world other than just not working and being disabled all the time. What I love even more are the new Javascript libraries. I've only really use jQuery, but I know there are many more that can do SO much more. I can't think of anything else to rabble on about.
-
I haven't seen any benefits from it either although I'm sure its technology is pretty substantial seeing as how HTML 4.01 has been out for quite some time. I'm interested in its forecoming, but I really don't know what it will be able to do that traditional HTML cannot. Any discoveries would make for a great blog...assuming the blogger was a worthwhile writer.