408 Posted Topics
Is it possible to know which connection sent data wiht recv()? Current setup is - Main Thread spins and waits - Thread 1 - do stuff unimportant to socket - Thread 2 - accept() -> keep linked list of accetpted sockets - Thread 3 - recv() -> can I know … | |
Re: Well.. lets begin.. First, arrays in most languages (and it looks like you're using PHP, and PHP is one of them) start at 0. So first, $b = 0; Second, <= 6 is not what you think it's doing. Since we start at 0 (i.e., $count[0]), when you get up … | |
Re: I dont think there is a good way to do this with pure CSS. It likely requires some javascript, using a "data-" tag on the parent element, and show which item you want displayed. the Javascript click event would then update the data- tag value to whichever element should be … | |
Re: First, this function is depricated - it may be time to learn about MySQLi or other something more modern in the PHP world. Second, take a look here: http://php.net/manual/en/function.mysql-fetch-array.php You should be passing ($selcat, FLAG), as $selcat is the "resource" it is expecting (i.e, the result of a query). For … | |
Re: You could find a way to use the DISTINCT keyword, or a group - likely the latter will have better performance. Of course, your query will have to change to meet the grouping mechanism. However, your desired output is a bit odd in terms of data - your 1st - … | |
Re: The first paragraph here will help get you started: http://docs.python.org/py3k/library/turtle.html This will help understand triangles: http://www.freemathhelp.com/feliz-angles-triangle.html The key part is understanding that all triangles will have a total of 180* as the sum of all angles. That means, given your 3 inputs, if they don't add up to 180* then … | |
Re: If you are doing some sort of script that outputs values for an insert, eg... insert table ( a, b ) --start script --> values ( 1, 2 ), ( 3, 4 ).... then your options are likely limited. Even if that was the case, or you have another setup … ![]() | |
Re: You can also apply what you know towards something you enjoy. Like books? Make a simple program that interfaces with a database that allows you to put info in. It doesn't matter if your program is useful to anyone other than you, or if it even succeeds - it's the … | |
Re: Depending on what you are searching through, the root form of storage tends to be some sort of database - and SQL is how you generally interact with those. Then you need methods for quickly searching data, as well as making searches relevant, considering human error - so the basics … | |
Re: what have you tried? It looks like you can do it with some subqueries and a NOT IN, but that would likely be very inefficient.. perhaps joining against itself and doing some sort of group by? ![]() | |
Re: instead of doing the redirect, do a var_dump on $_SESSION and see whats in there. Then, do the same on index.php as well. Something obviously isnt being set, or carrying over - it may be that headers have been sent before your session begins (but that would cause an error). … ![]() | |
Re: In particular, I believe you are talking about the header image -- You have it set to width 100% which means on a 1980 width screen, you image (which is 948px) gets stretched to over double its size. You cant just set width to 100% without a container that has … | |
NOTE: Viewed and tested in MS Edge 25.10586.627.0 MS EdgeHTML 13.10586 https://jsfiddle.net/qgg86g7y/1/ As you can see in the fiddle, if 50 elements are displayed and calculated, a scroll bar will appear. 51 or more and the scrollbar will not appear, and scrolling is impossible. Is anyone else seeing this behavior? … | |
Re: Im confused, do you want to replicate your SVG on to a canvas? | |
Re: You arent far off... however, you leave some interesting questions.. such as why use a decimal for a ClientNumber? Doesn't matter, though.. DECLARE @Template_Account decimal(10,0) = 8, @Field1 nvarchar(max), @Field2 nvarchar(max), @Save1 bit, @Checkin1 bit, @Sandbox1 nvarchar(max) SELECT @Field1 = Field1, @Field2 = Field2, @Save1 = Save1, @Checkin1 = Checkin1, … | |
Re: scope is fine, but intent is not clear in my opinion :-/ If you plan to use a variable outside of a loop, it should be declared outside even if null. That way, in the future, some fool who has to read it will understand what you meant to do, … | |
Re: https://jsfiddle.net/j5Lrqmxd/ you should be able to modify this to meet your need. In short, use display: inline-block and vertical-align: middle | |
Re: It also depends on the target audience, and the marketing staff that determines what comprises that audience. At 62, they obviously feel you are no longer part of their target, and they no longer need to cater to you (or rather, your age group or particular vision acuity)... ageism on … | |
Re: I know this was marked fixed already, but if you have the option to skip JS timing all together, you might as well just use CSS and let the hardware / browser do the heavy lifting for you. The transition for opacity is pretty good, and the timing is very … | |
Re: You're asking server side logic 101 here... You can make the login page the same page that processes the login, have the form post to itself. On success, redirect, on failure post a message inline to the page. You can use AJAX and send data over the wire, and return … | |
Re: The explode function does not return a value by reference. Set the output of the explode to a variable, then pass the variable into the end() function. | |
Re: Well... the most straight forward way is let first arr = $aArr; let second arr = $aArr2; $aArr[0][1]['user_nicename'] = $aArr2[0][0]['user_nicename']; However, this is assuming the same data every time... what I can't devise is what your data structure looks like, or how they relate - and if they are all … | |
Re: Goggle document.createElement and Element.appendChild You can dynamically build pretty much whatever you want in script. | |
Re: based on the link you provided, and what I think you described, it looks like you have it working. What am I missing? | |
Re: function dateDifference($date_1 , $date_2 , $differenceFormat = '%a' ) echo "<td>".dateDifference('edate','ldate',$differenceFormat = '%d' )."</td>"; Your function expects 2 dates as the first parameters. When you invoke the function, you are passing strings. I think you meant: echo "<td>".dateDifference($row['edate'],$row['ldate'],$differenceFormat = '%d' )."</td>"; | |
| |
Re: Are they linked servers? SQL Server or MySQL? If linked, you can do as suggested here: http://stackoverflow.com/questions/1144051/selecting-data-from-two-different-servers-in-sql-server That link also gives examples on how to set them up, but it looks like its MSSQL specific. Short of it, make a linked server, and then use the full linked path when … | |
Re: Well... for one, you can not use 3rd party code that has errors. If that's not an option, you can look to ensure that you are implementing their code appropriately, and including appropriately as to not cause XSS errors. If that's not an option / isnt' the problem, then start … | |
Re: well... if you are using sessions, where is your session start? It should always be before headers are set. Other than that, you are simply replacing the one time super-global $_SESSION and inline declaring it an assoc array. Other than that, it doesn't look like anything else is out of … | |
Re: Heh.. you want to build a personal one drive? That's kinda neat.. I might try and figure that out, too... | |
Re: ?s= is a GET request, not a POST. | |
Re: Sounds like a job for javascript instead of php imo. However.. What seems to be your problem with this? Have you tried it yourself yet? | |
Re: So... aside from etiquette issues, has anyone considered that google may be actively blocking the use of their site inside a frame? Has any other site been able to load into the iframe? If so, it's google that's actively blocking you. Just a consideration :-/ | |
Re: Doing a pure client side (javascript only) captcha will not enhance security. Since all of your code would be visible to the client, even minified, someone could simply bypass it by forcing the output check to "true" or whatever you decide, and move on with their day. No matter how … | |
Re: If you have an up to date version of mySQL you can have PHP write something like this: insert tableName (a, b) values (c,d), (e,f), (g,h) .... (y,z); http://dev.mysql.com/doc/refman/5.5/en/insert.html Alternatively, you can have PHP write a batch for you, and submit a batch (but that's less efficient than using the … | |
Re: Im not sure why you are doing this, but "\" is an escape delimiter in PHP - so if you type \" it will treat the " as a string literal. If you are NOT intending this, then your string is invalid, as you would have 3 quotes in your … | |
| |
Re: If that's the same calculation each time in that case statement, why not do it once as its own output, and use that value's alias in your case statement. You are then only doing the calculation once, and its a scalar compare in the case statement. As for the rest … | |
Re: When posting questions like this, it really does help to have a "live" demo page available. That said... A couple comments on what I do see... you have a "fixed" footer, which removes it from the page flow no matter what - which means being structured inside the "container" element … | |
Re: Try including plateNo, Make, and Model into your group by. Im not sure how you would have multiple matching rows, but this may be your issue :-/ | |
Re: To answer your question - yes, you would limit to only the last 10 posts with your query. You query would look something like this: select U.UserKey, M.MessageKey from User U LEFT OUTER JOIN Message M ON M.UserKey = U.UserKey where M.MessageKey IN (select M2.MessageKey from Message M2 where M2.UserKey … | |
Re: turn your array into a string, make your column a blob. On the retrieve, you will have to unstringify your array. The php methods you are looking for implode() and explode() | |
Re: On a "modern" machine, probably not. You will have a longer delay simply downloading the data. However, if this is the path you plan on taking, I would let PHP format it into the array so that the browser just has to JSON.parse() the value and then you don't have … | |
Re: inline-block and width: calc(100% - 230px) or, use floats, and put overflow: hidden on the parent div. | |
Re: SSL will do a number of things for you, including encrypting any plain text data moving between client and server. If you simply want to obscure (or have a referential pointer to) data, you can do this very easily - but it's not security (most call it security through obscurity; … | |
Re: Well... you can read about the API... https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API You split your "canvas area" into the dimensions of your grid requirements, and you draw lines or just use math :-/ You can also look at this fine demo: http://codepen.io/solartic/pen/qEGqNL (not mine. This is done kindly by Kimani Walters) And then there's … | |
Re: Likely it's just the memory used by the script. While it may not be much when compiled down, it's still memory and cycles required to turn it into machine code and have the pointers available for reference. If memory isn't an issue (in most cases it is not) and CPU … | |
![]() | Re: It really depends on how you plan on consuming and using the data. Why do you need encryption over a hash? Will you be applying the SSN for any given application or is it simply an identifier? If it's only an identifier, then hash it and store the hash. That … ![]() |
Re: To put it in other words, I believe what you are being asked is to take all the values from the first two rows and multiply them. If you think of your 3x3 array as an array of arrays: //demonstrative int A[3][3] == [ [a,b,c], [d,e,f], [h,i,j] ]; You know … |
The End.