1,576 Posted Topics

Member Avatar for Simon180

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 …

Member Avatar for hericles
0
75
Member Avatar for djblois

This tutorial should help you: [MySQL store procedures with parameters](http://www.mysqltutorial.org/stored-procedures-parameters.aspx)

Member Avatar for hericles
0
141
Member Avatar for arafath077

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 …

Member Avatar for hericles
0
106
Member Avatar for Mohamed_45

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.

Member Avatar for hericles
0
31
Member Avatar for ken_6

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 …

Member Avatar for hericles
0
140
Member Avatar for hell hansen

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.

Member Avatar for hell hansen
0
129
Member Avatar for davy_yg

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 …

Member Avatar for Traevel
-1
130
Member Avatar for santunu23

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.

Member Avatar for santunu23
0
142
Member Avatar for omarabed

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.

Member Avatar for omarabed
0
175
Member Avatar for sriprasadk

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

Member Avatar for sriprasadk
0
211
Member Avatar for muhammad_74
Member Avatar for Traevel
0
223
Member Avatar for khairbabu61
Member Avatar for lloyd.farrell.7

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 …

Member Avatar for hericles
0
427
Member Avatar for Transcendent

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

Member Avatar for rubberman
0
160
Member Avatar for Ronyque

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 …

Member Avatar for Heanre
0
113
Member Avatar for samson.oba.77

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.

Member Avatar for rtrethewey
0
136
Member Avatar for humorousone

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 …

Member Avatar for rubberman
0
153
Member Avatar for thebuffy

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 …

Member Avatar for JorgeM
0
227
Member Avatar for yoyo30

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.

Member Avatar for JorgeM
0
426
Member Avatar for mark103

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

Member Avatar for mark103
0
443
Member Avatar for paarthbatra

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

Member Avatar for hericles
0
237
Member Avatar for kkk122

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'

Member Avatar for tinstaafl
0
7K
Member Avatar for sameh_1

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 …

Member Avatar for SteveDotNet
0
415
Member Avatar for Blueie

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 …

Member Avatar for Blueie
0
132
Member Avatar for Hawk123

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?

Member Avatar for imti321
0
553
Member Avatar for Sahishnu

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?

Member Avatar for hericles
0
241
Member Avatar for LONGWAY

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 …

Member Avatar for LONGWAY
0
124
Member Avatar for PierJean

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

Member Avatar for PierJean
0
343
Member Avatar for strRusty_gal

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.

Member Avatar for strRusty_gal
0
295
Member Avatar for mega_2

Is there an apache error log? It should have the actual reason for the failure. What you have posted looks like the XAMPP log.

Member Avatar for hericles
0
648
Member Avatar for leghorn

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 …

Member Avatar for sbesch
0
287
Member Avatar for patricia_3

You will need to convert the number into a character array and then loop through it, outputting each character at a time.

Member Avatar for hericles
0
148
Member Avatar for Siberian

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.

Member Avatar for Siberian
0
262
Member Avatar for rpv_sen
Member Avatar for hericles
0
122
Member Avatar for ajithoop

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

Member Avatar for vivekH
0
1K
Member Avatar for susman81

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 …

Member Avatar for codevzv
0
214
Member Avatar for ravi142

MailChimp or ConstantContact. I've used both and slightly prefer MailChimp. Both have good APIs available too.

Member Avatar for hericles
0
70
Member Avatar for Transcendent

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 …

Member Avatar for webhawk
0
296
Member Avatar for Trle94

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 …

Member Avatar for hericles
0
113
Member Avatar for ali11

The first parameter of ArrayList.set() is an integer. Client is clearly not an integer and so you are getting that error.

Member Avatar for Slavi
0
182
Member Avatar for jorwill.harion

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 …

Member Avatar for hericles
0
253
Member Avatar for wanttocode

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.

Member Avatar for hericles
0
76
Member Avatar for Lethugs

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 …

Member Avatar for Lethugs
0
269
Member Avatar for zebnoon1

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?

Member Avatar for hericles
0
218
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
218
Member Avatar for SimonIoa

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.

Member Avatar for SimonIoa
0
2K
Member Avatar for Jonathan_9

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.

Member Avatar for hericles
0
1K
Member Avatar for davy_yg

You could just rename or delete the favicon. Or do you not have access to it?

Member Avatar for diafol
0
6K
Member Avatar for krga86

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?

Member Avatar for diafol
0
98
Member Avatar for Amr_Mohammad_R

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?

Member Avatar for Amr_Mohammad_R
0
201

The End.