216 Posted Topics

Member Avatar for Ryan_14

> I want to debug this, so I can learn how the debugger works. "The debugger" You might want to specify what IDE you are using next time, there's not just one "debugger". For NetBeans it should be ctrl+F5 yes, perhaps try [one of the other ways](https://netbeans.org/kb/docs/java/debug-visual.html).

Member Avatar for JamesCherrill
0
203
Member Avatar for janicemurby

.content1{ opacity: 0.4; filter: alpha(opacity=40); } The lower the number, the more see through. The second line is for IE compatibility. You can add it to the existing `.content1`. If that's not the right div, inspect again and find the right one, then put the lines in its css. One …

Member Avatar for happygeek
0
193
Member Avatar for kwonzo

Some things I'm noticing: There are no test cases (Unit Tests), but I'll assume you meant "it doesn't work". ` {import` Is that just a pasting error? Can't have a `{` there. `public class Assignment2` It needs to go at the end of the above line instead. `int minint = …

Member Avatar for kwonzo
1
345
Member Avatar for lostmymom

You could use MySQL's [REGEXP](http://dev.mysql.com/doc/refman/5.7/en/regexp.html#operator_regexp) to search for that pattern.

Member Avatar for rch1231
0
127
Member Avatar for khin thida phyo

> This is my code. Well there's your problem. Also, no idea which image you mean. You want to show a product image when you select a specific category? There will be multiple.

Member Avatar for Traevel
0
39
Member Avatar for davy_yg

> For the single-table syntax, the DELETE statement deletes **rows** from tbl_name and returns a count of the number of deleted **rows**. What would be the use of a `*`? Also, `mysql_query` is [deprecated](http://php.net/manual/en/mysqlinfo.api.choosing.php) and the way you are using it is [dangerous](http://xkcd.com/327/).

Member Avatar for rch1231
0
205
Member Avatar for Bensirpent07

![2015-01-12--1421092540_1051x112_scrot.png](/attachments/large/2/33808a36affa448d7d0a38479b9f1019.png "align-center") Add `clear:both;` to the footer's css. > We can make a website for you in a breeze! Oh the irony.

Member Avatar for almostbob
0
137
Member Avatar for davy_yg

if($image_width > $data3['maxwidth_bn'] || $image_height > $data3['maxheight_bn']) That means: **IF** the image width is **larger** than max_width **OR** the image height is **larger** than max_height, the image is too big. Is it too wide? 597 is not larger than 1000, so no. Is it too high? 424 is larger than …

Member Avatar for Traevel
-1
130
Member Avatar for manalibhadula

Are you sure you are creating a **new** map each time? Keep in mind you're adding a **reference** to the map, not a snapshot of the map itself. If you change the map the reference in the list will simply point to the changed version.

Member Avatar for manalibhadula
0
225
Member Avatar for Mike Askew

Anything you can tell about the inner workings of that object? Because if I try something like: var Object = function(){ this.Status = { Name : "foo" }; }; var object = new Object(); // prints foo console.log(object.Status.Name); object.Status.Name = "bar"; // prints bar console.log(object.Status.Name); Or var Object = function(){ …

Member Avatar for Mike Askew
0
138
Member Avatar for Priti_P
Member Avatar for coder91

You mean a partial view? Include them with `@Html.partial()` in your cshtml (if you're using the Razor view engine anyway, not sure about the use with other engines). You can pass along the model as well. You'll have to Google a bit or wait for someone more knowledgeable if you …

Member Avatar for JorgeM
0
153
Member Avatar for Stefce

Get the `total` for the receiver with a query (similar to line 14), then add the `howMuch` to `total` and do the update query (similar to line 25) again but for receiver. Using mysql is bad though, you should switch to [mysqli or PDO](http://php.net/manual/en/mysqlinfo.api.choosing.php).

Member Avatar for Stefce
0
731
Member Avatar for bolfescu

Read Taywin's last part again: > I do not want to modify your script because it is using bad format already If he gave you the answer **before** you modified the code to a proper `mysqli` or `PDO` format it would stay bad code. You might have your category issue …

Member Avatar for Traevel
0
179
Member Avatar for Lonestar Jack

By "fails", what do you mean? What comes to mind is the blocking nature of an `alert()`. It blocks execution while awaiting your click. Removing the alert would remove the block. It's going fine here in a test. It hides the divs, loads a text file and shows the div …

Member Avatar for Lonestar Jack
0
136
Member Avatar for santhoshweb

This part `session_start();` is done more than once, I see it on line 11 and 54 (might be even more, I didn't look further). It might also be done by parts above or below the part you posted. You can't do it more than once so remove all but the …

Member Avatar for Web Dev Rob
0
170
Member Avatar for Sophia_1

You should **really** consider abandoning the [oudated mysql](http://php.net/manual/en/mysqlinfo.api.choosing.php) in favour of mysqli or PDO. If you make use of prepared statements you won't have to insert the parameters directly into the query, which is [dangerous](http://xkcd.com/327/). Regardless of that, where are you setting those `$Business2` variables? The code you posted does …

Member Avatar for Taywin
0
354
Member Avatar for SkateX
Member Avatar for ritatseo
Member Avatar for Issahaku Adams

You didn't get an answer in VB.NET and I doubt you'll get one in here. That's like asking how to build a car. Be more specific.

Member Avatar for stultuske
-1
104
Member Avatar for lewashby

You could use RTP/RTCP over UDP for streaming. If memory serves me right VLC even has (some sort of) support for it.

Member Avatar for Traevel
0
598
Member Avatar for redkowloon

You can't alter the same page using PHP since it runs on the server-side and not the client-side. You can have the page post to itself, which will refresh the page, then you can use that POST data. You would have to make sure that when POST variables are empty …

Member Avatar for Bensirpent07
0
2K
Member Avatar for pritaeas

I've merely dabbled in ASP.NET, wrestling with its quirks and most notably Entity Framework and the use of existing databases. It would have been nice if during my first steps I had known the darn thing added a pluralizing "s" to my non-english tables resulting in one of the most …

Member Avatar for pritaeas
0
1K
Member Avatar for anmol.raghuvanshi1

You can't have **multiple** primary keys in a table, you can have a **composite** primary key in a table. The use of multiple auto increment columns eludes me, they would all hold the same value as the others. The intention of a Primary Key is to provide a unique identifier. …

Member Avatar for diafol
0
212
Member Avatar for solyana.mesfin

> as this is to demonstrate and capture your understanding on the > subject matter. **Your** understanding, not **our** understanding. Read the [rules](https://www.daniweb.com/community/rules). Do work first, then get help. Free tip: Vogella tutorials.

Member Avatar for Traevel
-4
182
Member Avatar for AntonyRayan

`document.getElementById('<%= rpwd%>').focus();` Why not just put "repeatpassword" there like you did on other occasions. Also, you don't need a `<script>` block for every function. If you want to generate that part of the page you can put them in external files.

Member Avatar for AntonyRayan
0
192
Member Avatar for SammyT79

Regarding the JavaDoc, the `@param` and `@return` tags are not entirely filled with information. The convention is as follows: /** * @param variableName Description that may contain multiple terms * @return A description that may contain multiple terms */ Also, it is common practice that the first sentence of the …

Member Avatar for Traevel
0
360
Member Avatar for janicemurby

`if(! function_exists(date_diff) ) ` Basically, your **date_diff** function gets defined **only** if it doesn't yet exist. That way you'll ensure the presence of a **date_diff** function across different (older) PHP versions. However, as you may have guessed, [date_diff](http://php.net/manual/en/function.date-diff.php) already exists within PHP since version 5.3 and probably does as well …

Member Avatar for janicemurby
0
383
Member Avatar for muhammad_74

That site has books that can be: 1. Downloaded 2. Bought on paper 3. Read online Did you even take the time to look at them? People can learn programming all on their own using quality books like that, your answer strongly suggests you are not one of those people.

Member Avatar for Traevel
0
223
Member Avatar for zebnoon1

If you also mean the data should be stored in a database I would suggest following a [CRUD tutorial](http://www.startutorial.com/articles/view/php-crud-tutorial-part-1). The twitter bootstrap part is optional, but comes with a ton of nifty pre-written CSS/HTML/JavaScript components. If you just want to show the user the data in table form **without** storing …

Member Avatar for zebnoon1
0
367
Member Avatar for minitauros

Sounds like something I [read a while ago](http://webcache.googleusercontent.com/search?q=cache:IGRjWon2Gv0J:japborst.net/posts/apache-on-windows-and-its-locale+&cd=1&hl=en&ct=clnk) however the page is offline now (yey google cache). FYI, it also shows a solution for the floating point issue (comma versus period based). Never changed it in Apache directly, but you might get the info you need [from here](http://www.sysbiosis.com/blog/change-locale-to-english-en_us-for-apache-and-php) if you …

Member Avatar for minitauros
0
1K
Member Avatar for AntonyRayan

The easiest way would be [jQuery-ui's Datepicker](http://jqueryui.com/datepicker/). <script> $(function() { $( "#datepicker" ).datepicker(); }); </script> <input type="text" id="datepicker"> Even easier would be the [HTML5 date input](http://www.w3schools.com/html/html_form_input_types.asp), but it's not yet widely supported and browser dependant. I believe it works in Chrome, but you'd exclude a lot of other browser types.

Member Avatar for AntonyRayan
0
86
Member Avatar for jean_5

Take a screenshot. Or, use the new HTML5 canvas and a library like [html2canvas](http://html2canvas.hertzen.com/documentation.html).

Member Avatar for jean_5
0
566
Member Avatar for Dani

Every now and then I'm experiencing a rather alternating result when using the quote function. My ctrl-c's on that thread will be remembered and pasted (along with any selected text which is to be expected) all in one quote. Leading to something like this: ![2015-01-07--1420647505_746x412_scrot.png](/attachments/large/2/114023523ff224f17b478b89312999c8.png "align-center") Where only the bottom …

Member Avatar for Dani
3
702
Member Avatar for grakovski

// short version $('.pcon').each(function(){ $(this).css('background-image',$(this).css('background-image').replace('/styles/SkyBoot/imageset/','/styles/SkyBoot/imageset/black/')); } ); // long version for clarity $('.pcon').each(function(){ var el = $(this); var oldBackground = el.css('background-image'); var newBackground = oldBackground.replace('/styles/SkyBoot/imageset/','/styles/SkyBoot/imageset/black/'); el.css('background-image',newBackground); } ); However, find/replace is not the best way to deal with alternating themes. You could save a lot of hassle like this even …

Member Avatar for grakovski
0
427
Member Avatar for janicemurby

The `implode()` is failing because of `$topuid` not being an array which causes the `mysql_query` to fail and thus resulting in a `false` being stored in `$userquery`. Then, when `mysql_fetch_array($userquery)` is run it will fail because `$userquery` is a boolean and not a resource. Which is why Tpojka said that …

Member Avatar for Traevel
0
252
Member Avatar for imti321

What I gather from your question is that you want to alter the `id` of record #2 to match the `id` of record #1 after deleting record #1. It's a best practice in relational database design to leave intelligence and meaning **out** of the primary key. It is also best …

Member Avatar for imti321
0
171
Member Avatar for Olivia_2

No one ever seems to mention semantics in these kinds of threads. Structural semantics, microdata, rich snippets, RDFa. Google 1998 called, it wants the keywords meta tag back. To take Daniweb and Udaipurweb14 as an example (since he is a brand new member and has a location in his name). …

Member Avatar for mindstreak
0
209
Member Avatar for jimmyruan1

Try .input-icon-wrapper { position: relative; } .input-icon-field { padding-left: 15px; } .input-icon { position: absolute; top: 3px; left: 2px; } and <div class="input-icon-wrapper"> <span class="ui-icon ui-icon-person input-icon"></span> <input type="text" class="input-icon-field" placeholder="Username" /> </div> to get ![2015-01-07--1420621621_202x32_scrot.png](/attachments/small/2/ea647c4fdbdbafc0a24e18a739f3fa41.png "align-center") Though you might want to consider using your own icons, or glyphicons for …

Member Avatar for Traevel
0
131
Member Avatar for muhammad_74

I prefer Crunchbang as "lightweight" OS. Runs well on older model laptops and virtual machines. And since it's based on debian it has solid packages and plenty of support documentation. The latest version comes with a startup script for some basic applications and setups, and the menu has quick install …

Member Avatar for muhammad_74
0
222
Member Avatar for MiicahLiim

A. No B. That's not Java C. The answer is the first result on Google no matter which part of that ancient question you search with, plagiarize away

Member Avatar for JamesCherrill
0
264
Member Avatar for Gunnas

Not to beat a horse that's been decaying for the past two years but this sounds like a job for [Node.js](http://nodejs.org/) (trumpets blazing) See the [documentation](http://nodejs.org/docs/v0.10.35/api/fs.html) on File System: var fs = require('fs'); fs.readFile('/etc/passwd', function (err, data) { if (err) throw err; console.log(data); });

Member Avatar for Troy III
0
26K
Member Avatar for <M/>

You're overriding the `$message` with the HTML in `$v1`. $message = $_POST["message"]; $v1 = " <html> <body> <style> #disclosure {font-size: 8px; color: #333;} h1 {color:#000066;} table {border:1px solid black;} </style> <img src= 'site.png' /> <table rules='all' style='border-color: #ffb300;' cellpadding='10' width='500px'> <tr style='background: #ffb300;'><td><strong>Email Confirmation</strong> <tr style='background: #fafafa;'><td>Hello <strong> $name</strong>, your …

Member Avatar for imti321
0
238
Member Avatar for akhil1

You could have a click on a row call a function that will collect all the values in said row and insert them into the calculator fields. I would suggest using [jQuery](http://jquery.com/) for ease and speed. You could use * [selectors](http://api.jquery.com/category/selectors/) for selecting certain elements * [.click()](http://api.jquery.com/click/) for registering a …

Member Avatar for akhil1
0
179
Member Avatar for AntonyRayan

> <!-- Mirrored from themes.shamsoft.net/flaty/extra_login.html by HTTrack Website Copier/3.x [XR&CO'2013], Fri, 27 Dec 2013 07:54:25 GMT --> There's a reason it [costs $17](http://themeforest.net/item/flaty-premium-responsive-admin-template/5247864), someone spent time and effort making it. Your problem, aside from the petty theft, lies with the session you haven't stored anything in. Try out basic stuff …

Member Avatar for Traevel
0
982
Member Avatar for sydoggs

Passing the parameter doesn't work or you don't know how? You should be able to just build a URL with `?`'s and `&`'s in Java as you would normally. URL url = new URL("http://mywebsite/myservice/fetchmesomething.php?parameter1=" + par1 + "&parameter2=" + par2); Of course it would be better to [encode](http://docs.oracle.com/javase/7/docs/api/java/net/URLEncoder.html) the URL …

Member Avatar for rubberman
0
415
Member Avatar for Stacy_2
Member Avatar for Lacrecen

Not very familiar with VB, but comboboxes would probably not have a text attribute. From [this](http://www.vb6.us/tutorials/visual-basic-combo-box-tutorial) I'd say try that `clear` again but with a capital C or setting `control.ListIndex` to -1, assuming you want to clear selection and not contents.

Member Avatar for Lacrecen
0
3K
Member Avatar for <M/>

I think he means `$meeting_type = $_POST["meeting_type"]` as the 5th one that needs a semicolon at the end. And I think you have to use the name attribute instead of the id for identifying the element. So if the name of the selection is `meeting_type` you would get 1, 2, …

Member Avatar for <M/>
0
598
Member Avatar for LONGWAY

If you could slide several at a time, as if it were a single image, I'd suggest using [twitter bootstrap](http://getbootstrap.com/getting-started/) and its [carousel](http://getbootstrap.com/examples/carousel/); never been easier. If you need multiple images sliding one at a time there are several jQuery plugins you could use, for instance [jCarousel](http://sorgalla.com/jcarousel/) which lets you …

Member Avatar for LONGWAY
-2
327

The End.