408 Posted Topics

Member Avatar for RikTelner

Develop for what your customer base is likely to be using. I still support IE9, but I have to keep current with changes, and develop new features for future browsers. caniuse.com is an excellent resource. Use it. Know why you are implementing things, and how to fall back when you …

Member Avatar for gentlemedia
0
400
Member Avatar for RikTelner

Im confused... nav ul li a.submenu should only affect anchor tags that have the class submenu. That's a pretty specific selector... Can you put up a fiddle with your issue so we can see more clearly what you are struggling with? Personally, with your current structure.. my CSS would be …

Member Avatar for gentlemedia
0
258
Member Avatar for RikTelner

Proper HTML markup says anchor tags cannot be children of anchor tags (basically, which one are you clicking?) which is why the commented out block isnt working. You will have to make a more complex structure to do what you are trying to do, and will likely require some javascript …

Member Avatar for gentlemedia
0
322
Member Avatar for MWhitt

All of them will benefit you depending on what you want to do... For embedded systems (from my very little experience with it all), Java seems to be king, since they have a ton of code already out there to support various hardware configurations. If you write in C/C++, you …

Member Avatar for MWhitt
0
359
Member Avatar for grand_78

Logically, dollars is just the floor(total/100) and the cents is total modulo dollars. Of course, you get in trouble when dollars is 0 so just do a check and make it modulo 1 instead. I would also do a check to make sure those ints are unsigned otherwise you get …

Member Avatar for BustACode
0
2K
Member Avatar for ankit_21

try stream_get_line instead. http://stackoverflow.com/questions/16560755/fgetsstdin-automatic-line-break

Member Avatar for rubberman
0
956
Member Avatar for Siberian

If I understand what you want to do, then you are correct - you have hit the limit of SVG as a free form drawing tool. If you want more fine pixel control, you will have to work with a canvas instead - but that also has some serious drawbacks …

Member Avatar for Siberian
0
674
Member Avatar for berserk

Define "fully loading." Are we talking about a page built dynamically with AJAX? All server side? Are you doing redirects inside your script when you change to the new page? Just a refresh? Is it with all pages or just specific pages? If specific pages, are you doing something to …

Member Avatar for berserk
0
371
Member Avatar for hastings.george.5

If the initial values when the page is parsed are blank, you can use the .reset() method of the FORM (not the individual inputs), which should revert everything back to what the values were at page render. If you don't have a form, or are looking for a specific input …

Member Avatar for hastings.george.5
0
174
Member Avatar for joshl_1995

If I am reading it right, it looks like you just want a left outer join on ItemID...

Member Avatar for joshl_1995
0
291
Member Avatar for RikTelner

As I understand it, the php module sits and listens to ports and creates an instance for each request. Therefore, without some sort of data caching, there should be no appreciable difference between the two methods you describe other than the overhead for traversing a directory.

Member Avatar for jkon
0
234
Member Avatar for James_43

So you are seeing <?php ... ?> as the responseText of the ajax call? Are you using htaccess for a redirect? Does your rule apply here?

Member Avatar for James_43
0
680
Member Avatar for esedee

Responsive design, when done "right," is usually 90-100% HTML and CSS. JavaScript is used for accent work and/or for data manipulation/management. From there you need to learn server side code - PHP would probably be the easiest to pick up and run with, but Python, ASP, Perl, Ruby... whatever server …

Member Avatar for gentlemedia
1
461
Member Avatar for savedlema

Is the data coming in exactly the same? I cant imagine that two finger print readings are completely identical. I don't know enough about your device or their API (or, really, the whole physical security thing as a whole), but I assume that the proper mechanics of this would be …

Member Avatar for rubberman
1
2K
Member Avatar for DGULLIVER
Member Avatar for timtim1
Member Avatar for James_43

If you have a demo page of this it would help. Otherwise, are you sure youre actually sending and receiving? If so, you may have to send headers making the ajax call use the same enctype as a for post and the php will receive it. Depending on your server …

Member Avatar for James_43
0
235
Member Avatar for SpottyBlue

Well.. the way you are doing it is requiring 11 digits exactly. This means you are expecing an area code that is in a "proper" format, being 1 first, then the area code, then the 7 digit number. Not all people do this, and this is doomed to be a …

Member Avatar for AndrisP
0
360
Member Avatar for James_43

Yeah. Don't use z-index. Instead, just do the opacity shift on both elements. The only way to make this work, though, is to make sure they are absolutely positioned, one on top of the other.

Member Avatar for James_43
0
510
Member Avatar for studentc

Sounds like you need to learn how to read argvars, open a file handle, read a file handle, parse a string in a buffer, and increment a value. Good luck!

Member Avatar for David W
0
291
Member Avatar for Makara

Any HTML form has all of the values acessable through javascript. In your particular case, you have a form with the name "payment_form" so you can do something like this... <script> var Form = document.querySelectorAll("form[name='payment_form']"); var TextArea = document.querySelectorAll("textarea[name='outputtext']"); for (var i = 0; i < Form.elements.length; i++) TextArea.value = …

Member Avatar for ryantroop
0
247
Member Avatar for janicemurby

Personally, I don't think you should be using the sesson variable like this. It is likely the root of your problem as well. If you need a "stateful" system, that's what the database is for - even for temporary things. It's ok to delete from the database.

Member Avatar for ryantroop
0
250
Member Avatar for mexabet

Consider why you would get this result logically -- Your check states that if $rows is not an array, or the length of the array is NOT 1, then it's a failure. In PHP, var_dump() is your friend (your best friend. Take it out to dinner and treat it nice …

Member Avatar for mexabet
0
411
Member Avatar for SaroGFX

in: .thumbnail .info with the negative margin, also add "position: relative"

Member Avatar for SaroGFX
0
495
Member Avatar for ruwanaru

https://jsfiddle.net/6jbgqz0g/ <div class="parent"> <div class="bottom"></div> </div> .parent { position: relative; display: block; width: 300px; height: 200px; background-color: #25f; } .bottom { position: absolute; width: 50px; height: 10px; left: 50%; margin-left: -25px; bottom: 0; background-color: #4ff; }

Member Avatar for ryantroop
0
332
Member Avatar for Aeonix

All I see there is a container div and 3 child divs. Two relative positioned divs are block with height and width, one is absolutely positioned with appropriate margins / positions set (either with calc() on margin or top/left) - it also has a border radius of 50% I am …

Member Avatar for ryantroop
0
295
Member Avatar for janicemurby

So I assume you know *why* this happens, but if not (and for future readers), I will state it: Any text output from PHP will also send along headers. Once this is done, headers cannot be modified or resent. This is just the way the PHP world works. Now, to …

Member Avatar for ryantroop
0
527
Member Avatar for Aeonix

Disclaimer: This is my understanding of how all this works - if I am mistaken, or uninformed, I would love to be better educated on the topic. So the way you as a programmer defensively do this is to use a method similar to oAUTH 2. You have a package …

Member Avatar for ryantroop
0
457
Member Avatar for Bensirpent07

you have no height, therefore the propery should be ignored. If it is not, then the ones adhering to your markup are likely at fault, or "figuring out" what you meant. Try adding height 100% to body, html and see if that fixes your problem.

Member Avatar for ryantroop
0
177
Member Avatar for MissMolly

I am a little confused as to what you are trying to do... You have the solution to your question in your original code, it seems. Can you show an example of your expected output, please?

Member Avatar for MissMolly
0
226
Member Avatar for MissMolly

I also question the need for making a file for each email sent, especially by name of the sender.. If you have database access, you should probably use it. You can templatize a single php page, and get the values from the database for that user. That way, you also …

Member Avatar for diafol
0
234
Member Avatar for prieku

Im not sure what you are asking.. If the column is varchar, what is being passed in as the value? Is it NULL? A number? Are you getting a SQL error? Have you tried doing a var_dump on $r and seeing what is actually in there? Are you sure buy_temp …

Member Avatar for diafol
0
275
Member Avatar for Bchandaria

Is your table column a varchar utf-8? When you set it up, did you use this syntax: `myColumn varchar(10) character set utf8`

Member Avatar for ryantroop
0
175
Member Avatar for Stefce

Looks like StefanRafa is not a valid column name in your table kladilnica Try adding quotes around '{User}' on line 18.

Member Avatar for ryantroop
0
286
Member Avatar for janicemurby

I believe you capitalized "Submit" on line 10: ` if (isset($_POST['Submit']))` Make that lower case, and see if that helps.

Member Avatar for ryantroop
0
247
Member Avatar for Ibrahim_9

Well.. since no one else is saying it... ASP and CSS are completely independent technologies. ASP is a server side language that *CAN* produce HTML. In that HTML, since you are in control of your ASP, you can output classes, etc... Those classes can then be used to control layout …

Member Avatar for ryantroop
0
221
Member Avatar for FarrisFahad

You can use a combination cookie/ip as well as javascript localStorage. You can hold a session in localStorage that will re-initialize regardless of cookie or ip change. However, localstorage can be wiped out just as easily as cookies. Most people dont bother clearing cookies anymore, however. The only way you …

Member Avatar for cereal
0
273
Member Avatar for ray.shahil95

You are not asking the function to return the set, you are asking the function to return the second element of the set. (return x[1]) If you want the set returned, simply return x

Member Avatar for ray.shahil95
0
163
Member Avatar for Harman_2

There are multiple tutorials on this. Use google - "php and ajax" The W3Schools one is pretty easy to follow, and many others will help you learn what you need to know. Since you will have user id's and other such security, PHP sessions will help you. Feel free to …

Member Avatar for diafol
0
183
Member Avatar for wolfgang1983

Im sorry if this is not helpful, but why not just use tinyMCE? They have already gone through all the headaches that you are currently dealing with. Ranges are weird, and are inconsistent across browsers. If you plan on being backwards compatible at all, you will find that your code …

Member Avatar for wolfgang1983
0
297
Member Avatar for Pavan_9

It's likely something you will have to contact the host to help you with. Most of the time, shared VMs will have a hard cap limit on what they can execute and how many resources they can take up, based on what you pay for. As an alternative, how about …

Member Avatar for ryantroop
0
218
Member Avatar for gamebits

Well... you have strings... you can store those strings and associate them to a player. You have a comma delimited list of card numbers. You can have a table that has the columns: id, playerID, gameID, cardNo and insert them individually, or use a stored proceedure that takes the comma …

Member Avatar for cereal
0
442
Member Avatar for Moataz_1

As a second year CS student, you should know code. You know your types, and you likely are aware of objects and their implementation. If you have written in any language other than C++ (which, as a 2nd year CS student I certainly hope you've had some exposure, even if …

Member Avatar for Stuugie
-1
494
Member Avatar for davecoventry

I have never used SQLite, so I cannot comment on that one - however, if you are going to be using an internet based system of data management, MySQL is a fine choice. Without some sort of pre-processing, and making some sort of tokenized batch and sent to either a …

Member Avatar for pritaeas
0
573
Member Avatar for napo15

including stdlib.h and time.h... srand (time(NULL)); int iRand = rand() % 20 + 1; //give me a random number between 1 and 20 More info can be found here: http://www.cplusplus.com/reference/cstdlib/rand/ Note, however, that this method is only pseudo random, as noted in the link. Other options that can better support …

Member Avatar for David W
0
379
Member Avatar for programmer12

For modern browsers you can look into making ajs socket but you will need to write a custom socket server based on the spec (rfc).

Member Avatar for ryantroop
0
167
Member Avatar for kouty

You cannot, in any fast way, compare objects directly in JS. The only way to check values is to iterate through the object and compare values directly for what you are looking for (or, as you pointed out, simply check the value directly). Since all an object really is on …

Member Avatar for kouty
0
331
Member Avatar for aragonnette

since there really isnt a whole lot of documentation (at least that I could find) I will make an assumption -- PDF files are basically a collection of "pages" and it seems that you are simply running the create image function on the first "page" I would encourage you to …

Member Avatar for AdeleB
0
7K
Member Avatar for davy_yg

You... Have an unexpected if.. You can't concat with a logical step like you are doing... And if you read your code closely you will see you are not actually doing a logical operation at all, as there is no outcome. Instead of doing dot notation to concat, try writing …

Member Avatar for diafol
0
615
Member Avatar for UK-1991

So.. not gonna lie.. but your echo's really hurt my eyes and my head.. I don't understand their purpose... for example, this line: `echo $insert = mysqli_query($connection, "INSERT INTO packages (pkg_name, pkg_price, month_price) VALUES ('$pkname', '$pkgprice', '$mnthprice')");` I read this to say "please output the result of the action of …

Member Avatar for mattster
0
348

The End.