408 Posted Topics

Member Avatar for Jack_11

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 …

Member Avatar for cgeier
0
144
Member Avatar for Jack_11
Member Avatar for Sws_1

Uhhh... This is PHP. Nothing looks wrong with the query. What other PHP script do you have to execute and prepare the statement?

Member Avatar for ryantroop
0
57
Member Avatar for Dani

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?

Member Avatar for Dani
0
2K
Member Avatar for Trle94

Yes its possible. Without knowing more about the site, or it's markup, it's impossible to give a more detailed answer.

Member Avatar for Trle94
0
197
Member Avatar for castajiz_2

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 …

Member Avatar for ryantroop
0
292
Member Avatar for Dani

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 …

Member Avatar for lorenzoDAlipio
0
314
Member Avatar for adishardis

remove the space in the delimiter (right now you have ", " so change it to ",") and you should be good to go.

Member Avatar for adishardis
0
116
Member Avatar for Deep Modi

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.

Member Avatar for Deep Modi
0
3K
Member Avatar for mokshi

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...

Member Avatar for diafol
0
149
Member Avatar for rani_4

Try taking the single quotes out from your select. You appear to be selecting the string literal 'images_path' on line 6

Member Avatar for rani_4
0
566
Member Avatar for andrew mendonca

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 …

Member Avatar for ryantroop
0
229
Member Avatar for nikunjgupta01

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 …

Member Avatar for diafol
0
140
Member Avatar for macky.p.deleon

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 …

Member Avatar for Daniel_28
0
127
Member Avatar for TheWifiGuy

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.

Member Avatar for almostbob
0
122
Member Avatar for yuimikazuki

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.

Member Avatar for HiHe
0
162
Member Avatar for Anjolie

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 …

Member Avatar for veedeoo
0
391
Member Avatar for dlmagers

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 …

Member Avatar for dlmagers
0
267
Member Avatar for ms061210

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?

Member Avatar for urtrivedi
0
176
Member Avatar for Lethugs

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.

Member Avatar for ryantroop
0
290
Member Avatar for bolfescu

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.

Member Avatar for ryantroop
0
52
Member Avatar for Dani

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 …

Member Avatar for Dani
0
250
Member Avatar for ryantroop

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 ( …

Member Avatar for ryantroop
0
1K
Member Avatar for Hannan_2
Member Avatar for 68thorby68

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 …

Member Avatar for iamthwee
0
328
Member Avatar for Jay_7

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.

Member Avatar for veedeoo
0
430
Member Avatar for ditty

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 …

Member Avatar for ditty
0
398
Member Avatar for vizz

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.

Member Avatar for ryantroop
0
954
Member Avatar for ray100

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 …

Member Avatar for ryantroop
0
456
Member Avatar for happygeek

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 …

Member Avatar for Hiroshe
1
1K
Member Avatar for samertaha

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.

Member Avatar for ryantroop
0
92
Member Avatar for samertaha

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.

Member Avatar for ryantroop
0
163
Member Avatar for sussy123

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 …

Member Avatar for [NOPE]FOREVER
0
3K
Member Avatar for kevinyu

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...

Member Avatar for ryantroop
0
240
Member Avatar for complete

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. …

Member Avatar for ryantroop
0
376
Member Avatar for Siberian

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 …

Member Avatar for Siberian
0
161
Member Avatar for centenond

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 …

Member Avatar for centenond
0
1K
Member Avatar for ryantroop

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 …

Member Avatar for ngockhanhxxx
0
186
Member Avatar for Ambrish_1

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...

Member Avatar for GliderPilot
0
147
Member Avatar for sk8ergirl

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 …

Member Avatar for ryantroop
0
372
Member Avatar for kyle.santelices.31

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 …

Member Avatar for urtrivedi
0
230
Member Avatar for Mr

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 …

Member Avatar for evaipar
0
258
Member Avatar for Kent55

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 …

Member Avatar for Dervish1
0
240
Member Avatar for dawbin

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.

Member Avatar for iamthwee
0
259
Member Avatar for skyyadav

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 …

Member Avatar for ryanjayson
0
129
Member Avatar for Linddha

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 …

Member Avatar for Linddha
0
272
Member Avatar for XTMercenary

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;

Member Avatar for Troy III
0
108
Member Avatar for jamey8420

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 …

Member Avatar for jamey8420
0
1K
Member Avatar for Amr87

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 …

Member Avatar for Amr87
0
264
Member Avatar for Mohamed_26

The End.