408 Posted Topics
Re: Right tool for the job. I can bash a nail in using a wrench, but if the job calls for a hammer I should probably use a hammer. Granted, most languages will allow for cli commands, but what if you're writing in C# for distribution to windows users and you … | |
Re: What exactly are you thinking you can't do with python? | |
Re: Uhhh... This is PHP. Nothing looks wrong with the query. What other PHP script do you have to execute and prepare the statement? | |
Re: The other issue- we solve many questions but they never get marked solved. Once the user implements the answer, what motivation do they have to mark it and pay for it? | |
Re: Yes its possible. Without knowing more about the site, or it's markup, it's impossible to give a more detailed answer. | |
Re: Change is slow. Just because Tesla open sourced all of their tech, it didn't change the industry and suddenly every new car is electric. Also, having used both eclipse and vs, they have their own quirks and unique feel. People aren't just going to abandon what they know because something … | |
Re: The server super global *should* also have the port number for the request, $_SERVER["SERVER_PORT"], but the way you are checking is the only way I can think of on the receiving end of a request. You can always htaccess it up and force all connections over https :/ but I'm … | |
Re: remove the space in the delimiter (right now you have ", " so change it to ",") and you should be good to go. | |
Re: It's a bit lengthy to post everything, but this thread should start you off in the right direction: http://www.doomworld.com/vb/doom-editing/10766-wad-file-format/ You will likely have to convert the binary jpg into something usable by the file format, or just have the jpg as an asset of some sort. | |
Re: I suppose a simple question is can you actually connect and run anything using the mssql commands? It's been a while for sure, but last time I did PHP to mssql I had to go through ODBC... ![]() | |
Re: Try taking the single quotes out from your select. You appear to be selecting the string literal 'images_path' on line 6 | |
Re: You may want to read up on bubble sorts: http://en.m.wikipedia.org/wiki/Bubble_sort And either use a standard bubble sort, or consider the variations. Also, read about them and consider if they are the right tool for the job. Depending on if you have learned recursion or not, out if you can make … | |
Re: a function that outputs all the words ending in a "s", in a sentence sent to it as a parameter. Done!! No... Seriously. Why not try first, then get some feedback? If you are in a computer science course, I hope you know what a function is. At that, you … ![]() | |
Re: I would assume you are getting a NaN as a result of one or all of your parseInt() calls. A number & NaN is NaN which is a failure in your assertion in the switch. I may just be ignorant of the syntax, but I am not sure what document.frmMacky … | |
![]() | Re: right click disabled or not, if someone wants to steal your images or video, they will. watermark your own stuff, sue when you find someone using your work. |
Re: Is that not what you are seeing? Since you are returning a tuple, perhaps wrapping the values of the return in parentheses will have the desired effect? The commas are just short hand to unpack the tuple anyhow, but you may be inadvertently returning just jelly_beans. | |
Re: If you have the skills for the job and you match the company culture, I don't think you have anything to worry about. Just remember the company has to fit you just as much as you fit it. If they pass you over for being a woman or older, you … | |
Re: I don't use jQuery often, but as I understand it JSON-P is designed to wrap a JSON object in a callback function as part of the response. If you were to trace the ajax call (through the browser debugger), I bet you would see that you are getting something that … | |
Re: Just a thought... where are you located vs where your server is located? If you are in (just a shot in the dark here) Asia, but the server is in the USA, the date function will use the server's local time, not your time. Is this perhaps the problem? | |
Re: If you are running locally, take a look at your event log (event viewer) in your control panel > admin tools > event viewer. Look for the error and see if you can get more info from there. | |
Re: You will find that posting your code along with the problem will get responses. We can't possibly know what your problem is with what you have written. | |
Re: In the schema example they use an anchor tag instead of link, but otherwise it's the same. ... I've only used schema once and basically made a template page for the types so I never had to do them again... I think it makes sense that the URL is a … | |
so.. Im having trouble wrapping my noodle around this... my initial thought: -- events create table Events ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, Title VARCHAR(512) NOT NULL, Description TEXT NULL, StartDate DATETIME NOT NULL, EndDate DATETIME NULL ); create index StartDate_OnEvents On Events (StartDate); create table EventFrequency ( … | |
![]() | |
Re: That's a bit of security through obscurity. To what end are you planning on doing this? Rewrites are good for looking professional. There is little security to it. It's basically a redirect. Even if I show you that you are posting to mysuperlockeddownphpscrupt.php you won't be able to do much … ![]() | |
Re: As I understand it, you need to use the ODBC driver to connect PHP to mssql. I may be a bit behind on that info, but I would be curious to see if you are connecting at all. | |
Re: hotmail may be actively rejecting the message. Are you setting your "from" in the headers? Are you getting a bounceback? If you have malformed headers, some mail services will actively reject the mail as spam. Also, if the server itself is not configured to identify itself when sending email, some … | |
Re: I dont use jQuery at all, but from what I am seeing you can probably just change that setTimeout to a setInterval? Just make sure that the interval length is the same as the amount of time it takes for the animation to finish. | |
Re: He is using it to suppress errors. I agree with the posters on the other site, you have a lot of wonkey going on. Im not sure why you are allowing users to dynamically allocate tables, let alone entire databases. But, meh, to each their own. Im sure you have … | |
Re: For a simple PHP example of this in "practice" have a look here: http://www.daniweb.com/web-development/php/threads/431052/how-to-have-a-password-security#post1847238 It never did get any comments for improvement or correction. It would be interesting to see if this post drums up some new ideas. Also, I know some languages are pushing for passwords to be hashed … | |
Re: Three reasons. One, you get an Ajax result that has preformatted html as the response, or a function that does the same. The second reason is laziness. And the third is when it's the right tool for the job. | |
Re: It's easier to follow what they did in code. They easily could have made the entire anchor tag with innerHTML, but chose to be explicit for the sake of readability. | |
Re: You may have to look outside the form to figure out what is going on. I can image an on-resize firing, or the phone triggering an orientation change, when the keyboard displays, and whatever gets triggered may be causing you to lose focus on the input field. Really, you will … ![]() | |
Re: On line 61 of edit.php you are looking for $_POST["submit"], and I don't think that exists. Try changing it to $_POST["search2"] or just drop the name of the submit button... | |
Re: It all depends on what your flash obeject is doing. IE9 flash is not the integrated Pepper flash, which is used in IE10/11. If you are doing something that the integrated "sandbox" doesnt like, you may see unexpected results. However, after looking, it doesn't seem you are doing anything special. … | |
Re: this is a crafty way of doing it... http://stackoverflow.com/questions/1700870/how-do-i-do-outerhtml-in-firefox function outerHTML(node){ // if IE, Chrome take the internal method otherwise build one return node.outerHTML || ( function(n){ var div = document.createElement('div'), h; div.appendChild( n.cloneNode(true) ); h = div.innerHTML; div = null; return h; })(node); } so in your case, you … | |
Re: I believe you are looking for: $_SERVER['SERVER_NAME'] DOCUMENT_ROOT will give you a local path on the host machine, which will begin with a drive letter and not a protocol (like http/s). DOCUMENT_ROOT is more appropriate when doing includes where you will be traversing a file system, not when making calls … | |
So... I would like to work on a program that will work on trilateration using wifi signals (as I understand it, much like Google does for indoor GPS fall-off). Sadly, I don't think I have the expertise (yet) for this, and I am looking for some input on where to … | |
Re: What are the errors you are gettings? From a cursory glance, it looks like you are getting a cursor error due to not freeing the resource after your initial query... | |
Re: First, even though this is a student account you should probably get in the habit of not posting your connection data for databases (or any password, really). The error you are getting is most likely caused by a missing module for PHP/MySQL. So, the first question is - do you … | |
Re: You are not understanding the fundamental difference between javascript and php. PHP is run before the page loads, and has all of its output before the page loads. Javascript runs at run-time - that is, as the browser "reads" the script, it attempts to execute it (unless means are taken … | |
Re: As I understand it, the ECMAScript that is the backbone of JavaScript is pretty standard among most major browsers. The type of scoping youre talking about should be pretty consistent from IE8+ (probably IE6 and 7), as well as all other flavors you will encounter. The only way you will … | |
Re: If you think of the screen as a grid, or even a DIV as a grid of pixels, you already have your grid in place. From there, your JS simply has to control an absolutely positioned element within a relatively positioned parent. You can do pretty much anything once you … | |
Re: I believe, since you did mysqli_fetch_array() you are getting a 0 index result. If you want to use the column name, use mysqli_fetch_assoc() instead, or change this line: `$xml+='<zip>' . $row['zip'] . '</zip>';` to `$xml+='<zip>' . $row[0] . '</zip>';` and that should work. ![]() | |
Re: Im gonna toss my 2cents out, and with fair warning Im not 100% sure, as I don't tend to handle the triggers for our DB, but as any good soldier, Im aware of them and my understand of how they work. :-/ I believe you should set the trigger on … | |
Re: Try this.. function seo_title(cIncoming) { var cNew = ""; cNew = cIncoming.replace(/[!@#$%^&*()_+=,\.<>\/\\\[\]\{\}]/g , ""); //build a regex for unwanted chars add whatever else you need... cNew = cNew.replace(/ /g, "-"); return cNew; } the above is not tested. The Regex is probably off due to escaping issues, but see what … | |
Re: Try bracket syntax instead. `processorStock[i]['vendor'] === processorStock[i].vendor;` You can then do really wonky and crazy stuff like.... var myVar = "vendor"; processorStock[i][myVar] === processorStock[i]['vendor'] === processorStock[i].vendor; | |
Re: Im not sure I totally followed you, but Im assuming you are wrapping this all with an anchor tag, and using the href as "javascript:void...." If that is the case, anchors with an href will always try to navigate to a page with the url given. So, you basically are … | |
Re: First, your notation seems a bit.. off? If that is supposed to be a JSON object to be parse into javascript, it's broken the moment you put = in there. You also don't actually have a cat 1 anywhere, but you have doubled on cat 3 It seems you have … | |
The End.