1,576 Posted Topics
Re: If you want quick, seamless approach that the user is completely unaware of, use jQuery and put a onclick on the image. When it is clicked make an AJAX call to a php script, passing the name of the image, and let the script do the database bit. When it … | |
Re: This tutorial should help you: [MySQL store procedures with parameters](http://www.mysqltutorial.org/stored-procedures-parameters.aspx) | |
Re: That code will append the second image inside the first. I doubt that is really what you are trying to achieve. If you look at the page source you'll see this: <img data-name="Steve" id='SteveID' class="profile"> <img data-name="Jhon" id="JhonId" class="profile"/> </image> If you want to place the profile image near the … | |
Re: Sounds like homework. Just think of things you can use to get data into a computer and things you can use to get data out. Hint: a keyboard and a screen. | |
Re: Response.write outputs the value to the HTTP stream. It is a different action entirely than reading a value so it can be stored in a variable. So your code is looking for something to end this command: `Set storeEmail =` Before it moves onto the Response.Write. This should be all … | |
Re: If you need to know if the row exists you should query the database for that row only. `SELECT COUNT(display_name) FROM tbl_types WHERE display_name = '$display_name'` Now you're get a zero or 1 which is easy to check so you know if you need to update or insert. | |
Re: You're outputting two different values than the ones you're checking for. Your if loop looks at maxwidth and maxheight but your message outputs maxwidth_btn and maxheight_btn. So from that you can't actually be sure that the height/width fails the condition. Unless you know that maxwidth and maxwidth_btn are definitely the … | |
Re: Well, the host would usually refer to the connecting URL. Is there a config file somewhere that has a default host specified? That or the host is somehow incorrect or badly formatted. | |
Re: What do you mean by arrangement? Are you asking about hardware specifications? If it is specs, then any working computer with a modern OS will do really. Faster CPU and more memory are nice but not essential for learning to program. | |
Re: What browser are you using? They have differing specs on how long a URL they can process. I maybe out of date but I believe IE can only take 2048 (or there abouts). Other browsers maybe able to handle longer lengths and the http spec doesn't mention a maximum length. … | |
Re: Free IT ebooks at [it-ebooks](http://it-ebooks.info/tag/programming/). | |
Re: Define "not showing properly" please. what do you expect to see? | |
Re: I don't think this is enough code to fully explain your problem. Is the second drop down being populated based on the value of the product drop down? If yes, and that bit is working correctly, then I don't see how selecting a handbag size after selecting 'shoes' would be … | |
Re: Really depends on what you what to write in/work with. I'm a software developer and I do nothing in C/C++ or Java. I work with PHP, .Net, objective C (iOS) and web stuff like angularJS. Do you need to be really good? Well, it can't hurt... | |
Re: It doesn't appear in the add/remove software list of the control panel? If you look in the installed folder you may find an uninstall.exe in there. If yes, then just run that. If its a simple aplication (I'm not familar with Zwinky) it could just be a matter of deleting … | |
Re: You have absolute positioning set for .sidebox. That means it ignores its parent elements and uses the top and left coordinates supplied in you CSS. | |
![]() | Re: You'll get a lot of differing views on this but my take is that the code should be self-documenting i.e. it is written well enough that its purpose can be easily seen by reading it. This is by no means always possible so if you have a chunk of complicated … |
Re: Is the data for the questions already part of the page or is it being retrieved from a server? If the questions are already part of the page you can use jquery to show/hide the sections in order as the user progresses through the survey. If the data is being … | |
Re: Initialise the string sql to some value and the warning will go away. Even this is fine: `string sql = null;` The compiler simply wants to know that not initialising the variable was a deliberate action rather than a mistake. | |
Re: I'm not too good with Python myself but I think you'll getting the index wrong because Python uses zero based indexes. You're setting the number of rows the list has with `self.rows += 1` but then using that same amount to locate the element in the list: `self.add_programs[self.rows].append(ProgramControls(program_controls, program))` So, … | |
Re: You need to realise that the steps you have taken that you've outlined above, your competition has done too.You can't just tick the boxes and sit back and wait to appear on page 1 for a contested search term. It just won't happen. Alexa scores that site at 20 million. … | |
Re: You're need to quote the path if it has spaces. The command line treats a space as a delimiter so it would think something like Documents and Settings, for example, is a command with 3 parameters,'document', 'and', and 'settings' | |
Re: That \ is the .Net escape character. Say you wanted to split a string on the double quote you would write it as split("\"") otherwise the second quote gets detected as the end of the string. Which means you need to have ("db\\") to stop the \ being the escape … | |
Re: Your last IF statement checks for the status of IsValidFile and if is true (line 52) you direct the code into displaying "You have not specified a file", which is obviously incorrect as IsValidFile is true; If you haven't uploaded a file then IsValidFile must be false so it is … | |
Re: The PictureBox has a ImageLocation property. You set that to be the URL of the image. Are you storing the URL as text in the db or the image itself? | |
Re: The simple stuff first: Does this "select code, name from hvomaster where TYPE=1" actually return a populated result set? I.e. is there data to put into the drop down? | |
Re: Um, screenshot? Are you saying you have specified an image that is 600x800px but you can only see one text row worth of the image? That would imply the div is only the size of the text row, not the size of the image. if you're familar with chrome developer … | |
Re: Simply put, you aren't restricting the query you are sending to the database. `SELECT * FROM members` selects everything. You need to add a where clause and pass in whatever value you want to use as a criteria. For example, to get members in a particular ZIP code: `SELECT * … | |
Re: There's no specified way to do that (as far as I know). Any diagram that indicates the various components and where they sit in relation to each other should be fine. Just google 'n tier diagram' and you'll find plenty of examples. | |
Re: Is there an apache error log? It should have the actual reason for the failure. What you have posted looks like the XAMPP log. | |
Re: The language used doesn't have much of an affect on the solution to be honest, not once OS restrictions are out of the way. You should pick a language that meets any special requirements (you don't seem to have any) and that you can code well enough in to create … | |
Re: You will need to convert the number into a character array and then loop through it, outputting each character at a time. | |
Re: The basic problem is that it uses :hover to determine when to display the menu. Touch devices have no equivalent to :hover as it is meaningless. They only respond to touches. Adding JS onclick or something similar is required. | |
Re: Is there a question here? Anything you want help on? | |
Re: 404 means page not found so check your URLs are correct. You'll have a typo or misconfigured URL somewhere. Or the file doesn't actually exist of course... | |
Re: Add a jquery function to each checkbox in the first group, either as a click or change function, and from that click/change call a method that examines each checkbox and if they are all checked, displays the second set. Something like: $(document).ready(function() { $('#checkbox1').change(function() { checkCheckboxes(); }); // or the … | |
Re: MailChimp or ConstantContact. I've used both and slightly prefer MailChimp. Both have good APIs available too. | |
Re: You've given your labels a width of 200px which is pushing everything over to the right. You should get used to using the developer tools in your browser (if you don't already) as copying your code and looking at the element in the inspector I used Chrome) made this trivial … | |
Re: A double loop should do the trick For Each house as string in housing For Each person as string in people Dim s as string = house + "-" + person Next Next My VB.Net is a little rusty so my syntax maybe off but that should be the general … | |
Re: The first parameter of ArrayList.set() is an integer. Client is clearly not an integer and so you are getting that error. | |
Re: Seeing as your select statement doesn't include a WHERE statement I'm going to assume the query is returning more than one row. You are then looping through all returned rows and setting all of your variables. At the end of this loop your variables are equal to the LAST row … | |
Re: You need to set display: inline-block for the li elements of the ul. At the moment you have only told the ul to display inline with other sibling elements, which won't affect its children. | |
Re: you can either do multiple conditions in the WHERE statement: `WHERE id = x OR id = y etc` or you can use the in statement if you would rather pass in a group of values: `WHERE id in (x,y,z, etc)` and, of course, you could combine them if that … | |
Re: I don't understand what you mean. What is data record vice and row vice? What data from the table do you want to display on the screen? | |
Re: You could use AJAX and when the response comes back use jQuery to alter the CSS on the form and the message. Unless you have some extra code somewhere, your method will display the thank you message regardless of how the submit process goes e.g. the code fails behind the … | |
Re: What do you mean "won't play"? Is the site appearing without any styling? I'm pretty sure chrome reads CSS and javascript locations correctly. | |
Re: I saw this straight away: $children = $_POST['children']; $cge = $_POST['age']; $children = implode(',',$children); $age = implode(',',$age); Line 4 should refer to $cge as the $age variable in the implode parameters is probably null at that point. that or rename $cge to $age. | |
Re: You could just rename or delete the favicon. Or do you not have access to it? ![]() | |
Re: And it tells you exactly why it failed. Add the xlmns to the html element and adjust the DOCTYPE as it suggests. You did read the output from the validator didn't you? ![]() | |
Re: A primary index cannot be a sparse index as primary indexes cannot hold NULL values. You can use a sparse column as part of a clustered key though. Is that what you are asking? |
The End.