- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 198
- Posts with Upvotes
- 161
- Upvoting Members
- 104
- Downvotes Received
- 9
- Posts with Downvotes
- 9
- Downvoting Members
- 6
408 Posted Topics
Re: So.. sorry to rez a 10 month old post, especially as my first post... but here goes... I dont think that using sessions the way you are is the best method... instead, you should declare in your SQL DB what security level, or what options, the user will have, based … | |
Re: The best way I had machine learning explained to me was similar to this: Lets say you want a computer to identify a color. Lets take "Red", or 255, 0, 0 (or some threshold of). (NOTE: Of course, what you would write is an algorithm that looks at color and … | |
Re: Your where clause always have to result in a boolean to check equivalency. For example "where 1 = 1". From reading this, it does not look like the case has a match, and therefore it is in error. Ex: 1 = case u.foo when t.foo then 1 else 0 end … | |
Re: Well.. here's my 2ยข 1: Old threads (like.. some are 3+ years old!) being commented on. They need to be locked. A lot of the comments are outdated, spam, or often times not even on point with the rest of the thread. (Granted, this hasn't happened super recently, but there … | |
Re: You cannot change a column name on the fly like this. You're better off making another column and calling it type and flagging it to know what "type" it is. | |
Re: So.. the problem is your question is very vague. Instead, I will walk you through how to find your answer on your own and hopefully that will help you. First, you need to understand the basics of how HTML/Form Data work. You can find that here: https://www.w3schools.com/htmL/html_forms.asp --Alternatively, if you … | |
Re: You are going to need to learn about AJAX, some server side language to format your JSON to output to the AJAX request, and of course - SQL to write the query that the server side language will process/execute. A very common free stack is called a LAMP stack, which … | |
Re: What is your methodology that gets the count of all items? (ie, how are you determining you only need 3 pages of 25 a piece?) | |
Re: you are looking for the javascript function `window.open` (or, in your case, `top.window.open("https://www.yahoo.com")` or whatever....) | |
Re: The only "secret" to JS-Less toggles is an input type="checkbox" and use a label to toggle the checkbox's state from there, you use your css "+" and :checked pseudo selector to modify your visual state ex: .myWrapperElement .input[type="checkbox"] { height: 0; width: 0; overflow: hidden; padding: 0; margin: 0; opacity: … | |
Re: I'm always confused by questions like this... You studied this field. You know your stuff.. build something important to you - with EE you can do SOOOO much.. Take something that you are interested in or something that a family member or friend could benefit from. The quality of what … | |
Re: tcol1 = 0 tcol1[mm] = col1 + amt You can't set a member of 0 to a value. You are essentially saying 0[mm] = col1 + amt; | |
Re: So.. I didn't pop this in a fiddle or anything due to laziness... however, I believe I found your problem: so, you're pulling ALL ROOMS (and appropriate meta data) where the room ID is not in a single instance of reservation.room_id (in most cases, this will be NULL and will … | |
Re: couldnt you just do a grep/find (notepad++) on "function fnName(" Am I oversimplifying something? | |
Re: .... are you asking what you should reasearch or just some random title? I mean... no offense here... but you have a problem (you need a title generated). Solve it (write a title generator). | |
Re: You obviously put a lot of thought into this. Personally, I am either not experienced or creative enough to figure out how to exploit the system you created. I get that DW is one giant "example" service using your platform. Lets take it a step further. I want to make … | |
Re: So.. first, did you write this? Are you aware of what "$$" variables do? ( for those who don't, they make a (scoped?) variable with the "VALUE" as the variable NAME; eg. $a = "hello"; $$a = "world"; You now have $a = "hello" and $hello = "world"; ) I … | |
Re: for PHP and PDF, I have used http://www.fpdf.org/ in the past (pretty sparse and straight forward but gets the job done well). From that, I found [this](https://stackoverflow.com/questions/1004478/read-pdf-files-with-php) post on SO which suggested using https://www.setasign.com/products/fpdi/about Which seems to solve your problem. | |
Re: That, sir, is a fantastic question. My assumption is that the inline cast to a `char *` is somehow mangling the memory space on the stack, or the assumption of the pointer starts at a negative index to account for the pointer itself... no idea :-/ That being said.. why … | |
Re: Your local MySQL configuration has port 33061 open? No firewall blocking the connection? I also doubted the need for the \PDOException but I havent used PDO in quite a while now... that said, the only way you are likely gonna solve this at this point is to echo/vardump after each … | |
Re: I would encourage you to fill a buffer with the user's password first, then display it - and in that local buffer you can do a strcmp. Just my preferred way of solving your problem. Otherwise... you have uncompleted code here.. not sure what part of it you need help … | |
Re: without seeing the output on line 67 it's hard to say, but my assumption is that you are geting an output like... insert into foo (a,b,c) values (1,2,3,1,2,3,1,2,3,12,3) -- kinda suprised this doesn't throw an error... when instead I believe you want something more like insert into foo (a,b,c) values … | |
Re: at some point, you are using a loop. The variable $i is being assigned a value, and at some point that value is 6. if $i = 6 AND 6 + 5 is 11 ---- it appears your problem is that you are trying to access a member of $list['photoID'] … | |
Re: You can also buy an sms gateway device, or just a phone that allows AT commands. From there it costs however much your local carrier charges per month for access to their network. Alternatively, every phone number is an email address to their respective carrier. Ex: [email protected] will send an … | |
Re: So fusion charts requires their data in a specific format. You can choose to parse that data (as they have), or you can write a conversion script to output the format they expect from the data you have. You gotta do some of this on your own. I get fusionCharts … | |
Re: When dealing with fusion charts, I encourage you to just go striaght to their fiddles. http://jsfiddle.net/s7t8F/5379/ I made that with a color change to one column. You likely forgot the comma. | |
Re: Is this a MS issue or just developers being lazy and not putting their toys away? (or both) How many of those handles may have been ghosts that are just doing nothing? How many were socket connections that were active instead of using select or IOCPs? | |
Re: Javascript (JS) is a top down JIT. Which means if the DOM element exists before the JS gets called, it will be available for use. In example 1, your function declaration and call happen before "demo" is available on the DOM (in the body element, however you want to think … | |
Re: My first suggestion - stop using a, b, c, and i as variable names. Give them meaning, they will help. My second suggestion is to consider using a placeholder as a loop helper - just because you are looping though "i" doesn't mean you have to use it for anything … | |
Re: Likely, if done right - the car will just drop you off at the door and come back when you call it. The decision to find a place to idle/park or go into a loop will be one of necessity (I need to recharge / nowhere to loop) or convenience … | |
Re: Your function IsValidEmail does not return anything, and your application of it expects a boolean. If your regex test validates true, you should return true. If it doesn't validate, return false. | |
Re: By people do you mean the general unwashed masses? If so - it's because they are intimidated, or unsure of their ability to diagnose. It's something so small and trivial to you, but remember - 10 years ago or so something that is trivial to you today may have been … | |
Re: define "biometric process" If you are talking about processing a thumbprint or facial recognition, then it's the job of the hardware to give you a usable data representation that you can process in any language. It's likely that the hardware makes certain assumptions and turns physical/analog data into a hash, … | |
Re: --> No ram installed yet Found your problem. It's likely the BIOS prevents boot/access without RAM installed (otherwise, what's the point, right?) | |
Re: If you want to stop it client side (to prevent the form from submitting at all), you can look at the input data's type (which should give you the mime type) and you are looking for "image/" if the mime-type doesn't match, return false from the form (otherwise it will … | |
Re: between lines 49 - 52 you are redeclaring $headers. You need to concat that stuff :) (like what you did on line 50) | |
![]() | Re: You need to escape your slashes in string literals. `'C:\Users\mchalla\PycharmProjects\837_unzip\venv\SampleUnzipFiles\DelimitedFiles'` should be `'C:\\Users\\mchalla\\PycharmProjects\\837_unzip\\venv\\SampleUnzipFiles\\DelimitedFiles'` or, you know.. be consistent and just flag it also as a raw string :-P `r'C:\Users\mchalla\PycharmProjects\837_unzip\venv\SampleUnzipFiles\DelimitedFiles'` The error you are getting is from \U telling Python that the next series of values represents a unicode value (in … |
Re: This is what load balancers and cache servers are for. While I have not set anything up myself, it is my unerstsanding that you have a few options from using a service like Akamai to having a load balancer as your handling server and then pass requests to servers that … | |
Re: So... I see your check for existence SQL, and your actual insert... I don't, however, see your attempt to save the file data to the database. Am I misunderstanding your question? The reason it wouldn't be in your database is because you're not even trying to put it in there … | |
Re: what does this do? ` $list = getListed(array('EducationID' => 'Id', 'L1Education' => 'L1Value', 'L2Education' => 'L2Value'), array($table_prefix.'educations', 'Id'));` if the answer isnt "it RETURNS an array" then you found your problem. | |
Re: Any number of possibilities. Your office network may block or blacklist certain web requests, or the firewall blocks them. If that's the case, you may end up getting a malformed JSON string and then you cannot log in due to JS errors. If you own the site, you can look … | |
Hi all, So before I went and posted ~800 lines of code, I have 2 questions: 1: What is the preferred way for us to post "complex" C++ (of course, this is just a .h, .cpp, and main cpp but it's still a lot of lines) that wont just be … | |
Re: First: Have you tried it? Does it do what you expect? Second: If you're gonna short circuit a process ( if (num === 0) .... ) then do it before the work starts. Why wait until after you try to do work to stop work that is almost done? Really, … | |
Re: as noted here: https://stackoverflow.com/questions/13713912/mysql-query-returns-blank-field-with-aes-encrypt If it's not a blob type data field, you may get blank. If it contains invalid data, it may also return blank. | |
Looking for conceptual help... I am writing a program in C++ to handle socket connections, eventually to be a websocket server. However, the rest of my stack uses PHP for serving up page. Is there a way to use PHP as an intermediary between the client (JS) and the application … | |
Re: So first, you have no reason to check the length of the files uploaded other than if it's greater than 0.. and even then ... meh. Let the logical loop do the work for you. In the process of doing this, you will notice immediately that your single file upload … | |
Re: based on your table structure, you insert 2 records into your image table, both of them with the same productID value. Is this what you're talking about? | |
Re: JP, uhh... maybe open your own thread on this.. been dead for over 4 years. The short answer is wat anas.man suggested; Use that, get multiple images in the file input, post to your server and var_dump($_POST) and see what's in there. |
The End.