2,040 Posted Topics

Member Avatar for Sukka_1

I have no idea what you want either. You have a simple code section (which doesn't look like it is properly indented). Do you have Python Turtle in your computer?

Member Avatar for David W
0
539
Member Avatar for Sagar_7

I think that's what pritaeas is saying. You use [DateTime](https://msdn.microsoft.com/en-us/library/system.datetime%28v=vs.110%29.aspx) and you can subtract them (return `TimeSpan` object).

Member Avatar for pritaeas
0
188
Member Avatar for nadiam

Yes. A loop will keep checking whether the input number is equal to -1. If it is, exit the loop. Also, right after you accept user input, you must check whether the number is valid (>=0 and <=100). If it is not valid, you could simply use `continue;` to go …

Member Avatar for JamesCherrill
0
165
Member Avatar for Asmat_1

Well, you will need to split the string into character array. Then you would be able to circulate each character in the array. You can use `split()` method of `String` class. The circulate part, it depends on how much knowledge you have in array... Where is your code?

Member Avatar for Taywin
0
485
Member Avatar for James_43

Your solution is NOT a solution but a badly patch job that is bloated and makes the script worse. Your `for` loop has NOTHING to do with `$loops` value because you simply want your `$iteration` to be at most 10. If you really want to use `for` loop, simply replace …

Member Avatar for Taywin
0
225
Member Avatar for pilucho

Your script does NOT take the input from the page, so it will keep inserting the SAME data into your table because of your hard code in line 11. What you need to do is to retrieve value from the page form using `$_POST`. For example, you can retrieve value …

Member Avatar for Taywin
0
388
Member Avatar for mridul.ahuja

Is it from your firewall? Are you using Flash? Firefox tends to block Flash if your browser plug-in is not up to date. By the way, using Flash to build a site is a BAD idea for any website because of its vulnerabilities that keep popping up everyday.

Member Avatar for Taywin
0
122
Member Avatar for arindam31

`disabled` is an attribute of HTML object. I don't know how you implement your button, so can't tell you how to check it. In HTML, it would be similar as ... <input type="button" value="Not Clickable" disabled> ... or ... <input type="button" value="Not Clickable" disabled="">

Member Avatar for Taywin
0
233
Member Avatar for nadiam

Look at your code and think it as a block-by-block (from original 1st post). Line 13 - start the loop Lines 15~23 - show a menu and wait for user to enter a choice Lines 25~28 - accept user input REGARDLESS what user choice is Lines 30~42 - do whatever …

Member Avatar for Violet_82
0
289
Member Avatar for Muhammad_99

This [post](http://stackoverflow.com/questions/4108313/how-do-i-find-the-length-of-an-array) may give you a hint?

Member Avatar for Suzie999
0
262
Member Avatar for anitg
Member Avatar for kgizo

If it is viewable or clients know exactly what the URL is, it is possible to download the file unless your server has permission set up to access the file. If you are talking about viewing it as PDF but not allow downloading, you may need something similar to Google …

Member Avatar for Taywin
0
229
Member Avatar for Violet_82

You are doing it backward if you attempt to implement the program in GUI before you complete the program logic. Did you learn it this way from a classroom? Or did you self-learn it? What you need to do is to implement it without GUI. First, implement a class that …

Member Avatar for Violet_82
0
604
Member Avatar for mhosny

Maybe this [old post](http://community.sharpdevelop.net/forums/p/9012/25033.aspx) would help?

Member Avatar for Minimalist
0
232
Member Avatar for janicemurby

You are putting the `$conn` in wrong place... Please take a look at its syntax [here](http://php.net/manual/en/mysqli-result.fetch-array.php). Tldr, put the `$conn` as part of `mysqli_query` parameter, not in `fetch_array`...

Member Avatar for diafol
0
267
Member Avatar for Mushfik

What do you mean? You culd do `<a href="javascript:void()>"` or something. Better yet, you could do `<a href="#">` which would keep the link to the same page. Not sure what you reall want...

Member Avatar for Taywin
0
230
Member Avatar for castajiz_2

Well, you could retrieve a page data via a script (Perl, Python, etc.). Implement a script that can retrieve a page data, and then use Regular Expression to help you to search for matched words. This way, it should help you screen page data and reduce your manual work load...

Member Avatar for jwenting
0
251
Member Avatar for Kadence

There are tons of JavaScript [graph libraries](http://www.sitepoint.com/15-best-javascript-charting-libraries/). You may just pick one. ;)

Member Avatar for diafol
0
260
Member Avatar for arulprabin
Member Avatar for Taywin
0
340
Member Avatar for dr_iton

I believe you falls into the same issue as this [post](http://stackoverflow.com/questions/5376278/how-to-hide-a-column-gridview-but-still-access-its-value) where the OP misunderstood the grid view property.

Member Avatar for Taywin
0
153
Member Avatar for COKEDUDE

Before you attempt to calculate with program, do it by your hand first. You need to ID each process. I am going to assume as follows: Arrival time 0 is ID 1 (processing time 7) Arrival time 2 is ID 2 (processing time 4) Arrival time 5 is ID 3 …

Member Avatar for Taywin
0
135
Member Avatar for jeffersonalomia

I highly doubt that your free host has database in the same server. In other words, `$db_host="mysql1.000webhost.com";` is very likely to be wrong. You need to find out what you really need to connect to from your host. Normally, they would have it as an IP address, not a DNS...

Member Avatar for OtepTheThird
0
213
Member Avatar for Saeid_1

You need to read on `=` v. `==`... One is to assign a value from the right hand side to the left hand side, and the other is to compare.

Member Avatar for vasanth19
0
228
Member Avatar for paul.rothenberger

If you do a proper indentation, you would have found an issue... //Checking for a form submission// //Is Form Completely Filled Out?// if ($_SERVER['REQUEST_METHOD'] === 'POST') { //First Name// if (preg_match('/^[A-Z '.-]{2,45}$/i', $_POST['first_name'])) { $fn = escape_data($_POST['first_name'], $dbc); } else { $reg_errors['first_name'] = 'Please enter your first name!'; } //Last …

Member Avatar for Taywin
0
372
Member Avatar for toxicandy

Hmm... Not sure about how jquery syntax would be. However, in simple JavaScript, you just send each form data to the server when a button is clicked in your javascript. Currently, in your jquery, you push the form submission once a user click the submit button. So, you may have …

Member Avatar for toxicandy
0
2K
Member Avatar for devinem

Not sure what you mean by your question... If it is OpenOffice, you should take a look at [VLOOKUP()](https://support.office.com/en-us/article/VLOOKUP-function-0bbc8083-26fe-4963-8ab8-93a18ad188a1). The first value would be an empty string, and the first column in table array must be the column you are looking for. i.e. `VLOOKUP("", A2:C7, 2, TRUE)`.

Member Avatar for Taywin
0
120
Member Avatar for gentlemedia

Actually, there would be an issue if and only if 1)your site takes critical information and passes it to the 3rd party (I guess you don't do that) and 2)your website is being targeted/monitored. I believe you don't handle any information when paying and your website is very unlikely to …

Member Avatar for Taywin
0
241
Member Avatar for noobjavacoder

Your program won't get out of a loop if the `path` variable is not null... Anytime you are using a `while` or `do-while` loop, ensure that you can GET OUT of the loop in some way or you will be stuck inside an infinite loop... Anyway, the idea is that …

Member Avatar for Taywin
0
245
Member Avatar for diane110

Please read the [posting rules](https://www.daniweb.com/community/rules); especially pay more attention on **Keep It Organized** section.

Member Avatar for David W
0
306
Member Avatar for Simon180

How big is the image file? If it is quite big (even 1 MB), it could take sometimes to load. Ajax is supposed to be for small data transaction so that the client doesn't need to reload the whole page...

Member Avatar for Simon180
0
248
Member Avatar for karthic2914
Member Avatar for karthic2914
0
1K
Member Avatar for sing1006
Member Avatar for UK-1991

This [post](http://stackoverflow.com/questions/186338/why-is-require-once-so-bad-to-use) is talking about performance difference between `require` and `require_once`. May be interested for you.

Member Avatar for Taywin
0
202
Member Avatar for progteacher2

Please read the [posting rules](https://www.daniweb.com/community/rules); especially pay more attention on **Keep It Organized** section.

Member Avatar for Taywin
0
112
Member Avatar for Papa_Don

I don't code VB, but from what I see the syntax, you should be doing `idList.Add("Props" & txtProps.ToString)`. The first argument is the name and the one after `&` is the value. If you want to assign `txtProps` to the "Props" then you would need to assign it right there.

Member Avatar for Papa_Don
0
1K
Member Avatar for Isaac_9

You may start with [this](http://www.w3schools.com/php/php_form_complete.asp). It should give you an example of how to accept input on a web browser form. If you want to read from a file, then [this](http://php.net/manual/en/function.readfile.php) may be what you want... PS: Please be more specific next time.

Member Avatar for Isaac_9
0
165
Member Avatar for SimonIoa

I am confused with your current script... $q=mysqli_query($this->db,"SELECT to_uid_fk FROM table WHERE status='1' ") or die(mysqli_error($this->db)); Why do you want to save all IDs with status 1 in one record? Would it be easier to INSERT each ID and status 1 as a record in a table? Are you trying …

Member Avatar for SimonIoa
0
366
Member Avatar for amacss

Google it? One is directly from Microsoft -- https://msdn.microsoft.com/en-us/library/aa288436%28v=vs.71%29.aspx

Member Avatar for ddanbe
0
303
Member Avatar for shabbir04

Line 32, you have double `$$`? PS: This is a BAD idea saving password in PLAIN TEXT in your database... Also, it is a VERY BAD idea to allow SQL injection attack.

Member Avatar for shabbir04
0
314
Member Avatar for James_43

If you are not using Ajax but the load time after submission is so long, you could easily accomplish the display with JavaScript. I DO NOT recommend using Ajax if the process is that long (several minutes as you said) on your server before the page is redirected to another …

Member Avatar for James_43
0
11K
Member Avatar for sandhya1987

How does your database table look like? From your current code, you keep overwriting data into the same field - `Course`. Are courses mutual exclusive? If so, you may need to redesign your database.

Member Avatar for Taywin
0
329
Member Avatar for raj208851

Just a side note. Often time, the error comes when the code has improperly closing scope (the curly bracket). However, another error comes when there is no `if` statement but only `else` statement. Whever it is, you would need to show your code portion (and I hope it is not …

Member Avatar for Taywin
0
790
Member Avatar for lewashby

Are you using the same PHP version for both your test & development? What did you get when you `echo $id;`? Do you have the database set up the same way as in test? The error states that you are passing in something which is not an array to `foreach`. …

Member Avatar for lewashby
0
507
Member Avatar for OtepTheThird

You may read [this thread](http://stackoverflow.com/questions/4679756/show-a-pdf-files-in-users-browser-via-php-perl). As @diafol said, your code doesn't make sense. You are expecting ONLY 1 record from your query, so using `while` loop is unnecessary (or does not make sense).

Member Avatar for OtepTheThird
0
4K
Member Avatar for efe.osato.5

I bet it is an assignment from a concurrent programming class. :P I had that before when I was in school. Fun but stressful when things don't work the way they should!

Member Avatar for Taywin
0
240
Member Avatar for AntonyRayan

Hopefully, your requirement doesn't exclude National holiday or you will have to calculate it separately. :P

Member Avatar for Taywin
0
100
Member Avatar for Nick_11

First, start with [define a function](http://www.tutorialspoint.com/python/python_functions.htm) in Python. Then look at how a [for-loop](http://www.tutorialspoint.com/python/python_for_loop.htm) and [while-loop](http://www.tutorialspoint.com/python/python_while_loop.htm) are done. Oh don't forget how to [delcare variable](http://www.tutorialspoint.com/python/python_variable_types.htm) as well. Once you got them all, take a look at how to [display](http://www.tutorialspoint.com/python/python_basic_syntax.htm) it on console... Hmm... Writing this reply takes longer than program …

Member Avatar for Taywin
0
268
Member Avatar for amith_ami
Member Avatar for Trevor_4

You can use `prompt()` to receive a user input via pop up message box -- see [here](http://www.w3schools.com/jsref/met_win_prompt.asp). If you want to ensure the input as integer, you can force conversion using `parseInt(STRING)` and the function will return an integer to you.

Member Avatar for diafol
0
273
Member Avatar for slyme

Just a quick note on your recent script. Where did you initialize your `$product_array`? It doesn't seem to be in the function, so I am guessing it is declared somewhere outside of the function scope? Not sure you could do the "unset" from the inner scope (doesn't make sense in …

Member Avatar for slyme
0
538

The End.