1,576 Posted Topics

Member Avatar for Kadian

Nice trick, I had to sit down and figure out how that worked or it would have bothered me for the rest of the day.

Member Avatar for hericles
0
98
Member Avatar for Liang_1

You can use the 'required' html attribute by adding it to the necessary fields. Or you can use a javascript function on the click event of the submit button to check all inputs and only if all pass validation does the function return true and let the submit continue. Or …

Member Avatar for hericles
0
315
Member Avatar for w33n

Alert boxes can't be customised too much. I would suggest looking into some of the javascript libaries that do that for you. SweetAlert is one I've used but there are others. You can vary the text and add images into the message.

Member Avatar for w33n
0
98
Member Avatar for shilpakoteyar

Look for articles like these: [google ranking factors](http://positionly.com/blog/seo/google-ranking-factors) these will tell you what factors SEO experts THINK are important. From those you can see where to best spend your time, effort and, possibly, money. But, you won't get to top position in a month unless you are competing for specific, …

Member Avatar for Marissa_1
0
586
Member Avatar for Deimos161

First step is to check what $info actaully contains. Below `$info = fetch_server_info($config['server']['ip'], $config['server']['port'];` add `var_dump($info);die();` Run the page and the contents of $info will get output to the screen. Ou tof curiosity what does get put onto the page now?

Member Avatar for Deimos161
0
203
Member Avatar for Petranilla

Are you getting any error messages or output you don't expect? First step is to make sure you're getting something back from your query and then step through from there. I did notice in your explanatory table you had 'qty' but in your code you use 'quantity' - do the …

Member Avatar for diafol
0
474
Member Avatar for Azeez_1

More information needed. Why do you need AJAX to do a countdown and what do you intend to save to the database?

Member Avatar for diafol
0
83
Member Avatar for Ahmed_64

Cloud computing, big data and security would all be good fields to get into so I'd give them so special consideration. I'm not sure what you would do for a security project though... Cloud computing would probably offer the most scope for coming up with something possible but sufficiently challenging. …

Member Avatar for hericles
0
260
Member Avatar for shashigowda

Look into the jQuery .change() method. You can attach it to a select element with something like this: $( "#myselect" ).change(function() { // your code to run on a change event // in your case, getting the 'cover' element and changing its src });

Member Avatar for shashigowda
0
297
Member Avatar for dawbin

Is current undefined or is eventInfo? Where are you creating the datepicker object? E.g. where is this line: `var datePicker = new WinJS.UI.DatePicker(element, options);` I only looked into this briefly just now so what I'm asking is, is line 8 and 9 in your code the same as the object …

Member Avatar for dawbin
0
511
Member Avatar for samantha2015

In mysql a blob has a maximum size of 65 kilobytes whereas I believe the mysqlite version of a blob is significantly more than that (I'm assuming you are using mysqlite when you say you're saving the image to android). You'll need to increase your MySql blob type to mediumblob …

Member Avatar for hericles
0
206
Member Avatar for Stephen_10

Run a CRON job every day that reads the database for all invoices that have a submission date of 30 days ago. Email out only those emails. So, your cron job will look like this: `30 1 * * * /call-your-script` That will run at 1:30 every day - you …

Member Avatar for ShouldAt3
0
278
Member Avatar for NurieDavis

It depends how you are handling the data but, for example, if you were pulling each record from the database as it was needed your first and last buttons would be queries that extracted the first and last matching record respectively - use order by asc/desc limit 1 (for mysql) …

Member Avatar for hericles
0
307
Member Avatar for john_93

It seems to me you are adding a parameter called TotalPrice to your parameter collection but you never give it a value. You can either use: `constr.Parameters.AddWithValue("Total price", 'Some value');` or `constr.Parameters.Add("Total price");` `constr.Parameters["Total price"].value = some value`

Member Avatar for JOSheaIV
0
183
Member Avatar for Akansha_1

Firstly, why use javascript and AJAX to call a PHP script in the first place? You could just have PHP code in your HTML that handles the database stuff on the post back of the form. Secondly, you could jQuery or similar to do the AJAX stuff much more easily. …

Member Avatar for Akansha_1
0
21K
Member Avatar for rpv_sen

Your code looks OK, there is nothing that immediately stands out anyway. So you need to tick off everything is working correctly. Can you connect successfully to the database (does another query provide the correct results)? Do the username/password variables hold actual values? In your login function do both of …

Member Avatar for rpv_sen
0
580
Member Avatar for anmol.raghuvanshi1

I just started using the same library for a project too. You haven't mentioned what the parameter matches in the database so I'll assume you want to check for a country name that equals the q parameter (not the correct case I know). In this case you can do this: …

Member Avatar for anmol.raghuvanshi1
0
893
Member Avatar for lewashby

Your <table> tags are wrong. it is incorrect to do this: <table> some value </table> You need the <tr> and <td> elements as well. You also can't have a <table> positioned the way you have it at line 48. Move your PHP code from where it is currently (between two …

Member Avatar for lewashby
0
200
Member Avatar for bantex07

Have you hard coded the connection string in the app but the path doesn't existon the target machine?

Member Avatar for Pascal_1
0
169
Member Avatar for Teddy112

Where the interviewers referring to natural keys? Or composite keys? Thats a unclear question. If you don't know already, a natural key is a column in a table that uniquely identified the records but is part of the natural data, say, a social security number or employee number, something that …

Member Avatar for cereal
0
791
Member Avatar for lewashby

PHP generated HTML arrives at the client's browser the same as any other server generated HTML - that is, it presents itself as nothing but HTML. There are <?php ?> tags in what is received. So the answer to your first question is yes, CSS and javascript can be used …

Member Avatar for almostbob
0
363
Member Avatar for kikiwisaka

If you intend to have the dropdown box have the various categories such as name, address, date and then a textbox that takes the actual search time all you need to do is include the selected item from the dropdown into the sql query along with the search term. E.g. …

Member Avatar for 21303359
0
927
Member Avatar for Stefce

There are quite a few of us on here that would be willing to help. Is there a test site we can view? What is the exact nature of the problem?

Member Avatar for pacav69
0
418
Member Avatar for nimz143

You could use a literal control with HTML links for the products, or a combo box/drop down list with a set number of lines showing.

Member Avatar for nimz143
0
101
Member Avatar for CodeWarrior14

That code snippet has nothing to do with the database insertion or how that scanID is being used. Can you post that up?

Member Avatar for JOSheaIV
0
151
Member Avatar for divinity02

You aren't setting age to be a new value so it always stays at its original value of zero. Thats always less than 5 so your loop never ends.

Member Avatar for divinity02
0
227
Member Avatar for Kamal_6

That works for me and I can't see anything wrong. But you should check for whitespace on line 7 though. Extra white space can interfere with <<< functionality. Putting a space at the end of line 7 broke what was working for me just now.

Member Avatar for Gideon_1
0
184
Member Avatar for Norbert_2

What exactly are you having trouble with? What vaule do you want to store (the start or end value of the counter maybe)? This script really is simple to use: set up a div you want to hold the counter, add the CountUp js file and call the method. Clearly …

Member Avatar for Norbert_2
0
195
Member Avatar for Papa_Don

I've done a few microsoft certifications and I, personally, found them quite valueable. The topics were new to me, interesting and passing the exams was reasonably difficult due to the level of knowledge required. Which meant by the time I passed them I actually knew the stuff. Which was the …

Member Avatar for hericles
0
131
Member Avatar for eskalemberg00

Well, there is the basic advice: go to your lectures, go to all the tutorials/labs, don't get behind. On a more specialised note, from my own experience when I was at uni, don't try to learn it all. With subjects like computer science, you can get surrounded by coding languages, …

Member Avatar for HiHe
0
244
Member Avatar for mbarandao

If I understand you correctly, by opting to start a course in a specific month means you know two things: age and birth month. From that you can get ??/mm/yyyy accurately but you'll never get the date. You simply need more information.

Member Avatar for hericles
0
175
Member Avatar for harishprakash

What keyword did you pick? You can use the google tools available on the adwords site (I think thats where they are)to see how much competition exists for a key word or phrase and how often it is searched for. Hopefully, you haven't picked an incredibly popular search term thinking …

Member Avatar for advent_geek
0
195
Member Avatar for J._1

Have a go at it first at least. We're help you if you get stuck. Although I will say all you need is a loop going up to N and IF statements that determine what to output based on modulo division of the current number. Its that hard, although it …

Member Avatar for hericles
0
120
Member Avatar for ramsiva

PHP scripts run on the server, obviously, so you would need to post the data back once the AJAX request had finished. You could do that either by submitting the form or doing another AJAX request aimed at the target PHP code.

Member Avatar for diafol
0
9K
Member Avatar for UK-1991

Are each of your search values (brand, model and paper) actual values? If they are empty values then they will return everything as LIKE '%$brand%' is equivalent to LIKE '%%' if $brand is an empty value, which matches all values in that column.

Member Avatar for UK-1991
0
148
Member Avatar for UK-1991

You say you're moving images to the database but is it the move_upload_file you are having trouble with? If it is, that function returns a warning if something goes wrong so you can turn warnings on and see the problem. But you can also check the filename stored in $prodimg …

Member Avatar for diafol
0
251
Member Avatar for punji

Because you've chosen to name the table in the FROM clause ('FROM student AS s'), you need to use that name in your selection part of the query `SELECT s.student_code...`

Member Avatar for punji
0
274
Member Avatar for webber2015

You aren't setting the decstore variable to be any value so when you try ``If decscore > 0 Then`` it failing because decstore isn't greater than zero. I think that piece of logic is incorrect but it all depends on what you expect decstore to be I guess.

Member Avatar for hericles
0
491
Member Avatar for Violet_82

The biggest mistake freelancers do when starting out is charging too little (generally thinking they can't ask too much for their current skill set). Find out what the average per hour for web design work is and use that as your base. You can go lower of course, but just …

Member Avatar for Violet_82
0
170
Member Avatar for Rohith_1

Do you mean you don't know how the connection string looks or you don't know the credentials to the database? Because we don't know them either... If you have SQL Server management Studio or something similar installed you should be able to get the server name easily enough (it'll show …

Member Avatar for hericles
0
270
Member Avatar for jkon

The other day I came across "I came into the world kicking, screaming and covered in somebody else's blood. I have no problem going out the same way." Not your usual 'Be all you can be' quote but I still like it.

Member Avatar for Warrens80
0
322
Member Avatar for madmax9922

Sounds like a permissions issue.You don't have the rights to access the file. You can check this with the is_readable('/location/') function.

Member Avatar for broj1
0
2K
Member Avatar for tqmd1

You can use CSS and divs/spans or <ul>/<li> to get a similar effect if the structure isn't too complex but if you intend to display tabular data then a <table> is the best way to go. That is what it is designed for.

Member Avatar for Wuhoo
0
890
Member Avatar for Joemeister

DeviceType isn't showing the list of reserved words for SQL Server but it does seem to be a named enumeration in SQL Server 2012/14. You might want to use a different name for that table in case it is conflicting with SQL Server internal structure.

Member Avatar for erikko
0
285
Member Avatar for spud91

Hi, With PHP that is generally done server side. For example, your user would select an option and then submit the form by hitting a button. The server side PHP gets the value of the option out of the $_POST data and then does what it needs to do, query …

Member Avatar for hericles
0
221
Member Avatar for annya

Access denied means you need to look at your connection string. You're pointing to the wrong database, have the user name wrong or that user doesn't have access to that particular database. Something about your connection attempt is the cause of the error.

Member Avatar for annya
0
470
Member Avatar for iPoor

That error happens when you try to fit a vaue into a type that can't hold it, like putting a number over 2,147,483,647 into an integer. It won't fit, 'overflowing' and causing an error. Your question makes it sound like this is a piece of software you are using rather …

Member Avatar for iPoor
0
317
Member Avatar for mattyd

Are using a web server in your setup? You can't just rename an html file to have a php extension and have it work. PHP files are compiled by a web server (Apache, IIS, etc) and sent to the browser. If you have an html ffile just lying around in …

Member Avatar for annya
0
229
Member Avatar for rubeea.jaffari

Firewall? What happens if you try to connect to that address via the browser on the phone (or a test html page in the same location)? If you can hit a test page (or not) then you can start to narrow down what the cause might be.

Member Avatar for hericles
0
953
Member Avatar for muraligowda

Your question isn't very clear. Are you asking how to insert data into a database in general or are you after more specific?

Member Avatar for JorgeM
0
340

The End.