1,576 Posted Topics

Member Avatar for facarroll

> The file check.php selects the xml data from the database, but the display does not show any xml tags. I'm not sure why you expect to see XML tags on the page. You don't see <h1> or <div> in an HTML either. They're meant to be hidden as they …

Member Avatar for facarroll
0
385
Member Avatar for Maideen

Are you trying to send an email that has all of the items in it? If yes, alter your query to return all rows (i.e. all relevant items) and run through each row, parsing the data, and adding it onto the body string. I'd switch to using a DataAdaptor and …

Member Avatar for hericles
0
942
Member Avatar for Debasish08

If you want to build a brand around your blog, and be seen as more professional, then I would say your own domain is a must. If you have a website already, incorporating the two is probably the better idea. You want people to go from your blog to your …

Member Avatar for jacks009
0
215
Member Avatar for davidmoffitt1

Yes, Android 6 is now out and I'd say (without looking) that most devices are Android 4.2 and up. For better reasons try out Packt Publishing (if you want to buy online) or free-it-ebooks for some free PDFs.

Member Avatar for hericles
0
118
Member Avatar for Nospor Kumam

This example is from the PHP docs page for msqli_select: [Click Here](http://php.net/manual/en/mysqli.select-db.php) <?php $link = mysqli_connect("localhost", "my_user", "my_password", "test"); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } /* return name of current default database */ if ($result = mysqli_query($link, "SELECT DATABASE()")) { $row = mysqli_fetch_row($result); …

Member Avatar for hericles
0
310
Member Avatar for chaze

There must be some reference to slicknav in your code somewhere, you need to fnd and remove it, but in the meantime you can always hide it by editing your custom style sheet. `.slicknav_menu {display: none!important;}` That will hide the entire dark grey strip the menu button is in

Member Avatar for gentlemedia
0
210
Member Avatar for Ayuni_1

You can do AJAX calls on every key up event if you want it to be that responsive, that'll send a request to the server for partial amounts as well because it won't know when the user has finished typing. Or you can call when the input uses focus if …

Member Avatar for red.peugeot
0
225
Member Avatar for arctushar

Need more information about what is 'not working' to help you. All I can tell from the URL is that the JSON is valid.

Member Avatar for rproffitt
0
182
Member Avatar for TObannion

Your code is a little confusing. Each of your javascript functions expects a parameter yet none of the onclick="" supply one. Ignoring the fact you never supply divNum, your jQuery selector won't work `$("Slide Toggle"+divNum)` Because "Slide Toggle" and all the rest of the terms you use aren't jQuery selectors …

Member Avatar for TObannion
0
262
Member Avatar for davy_yg
Member Avatar for jodytj

What is students_lab10? As the error states, it isn't defined in your code. The first time it appears is when you are trying to use it.

Member Avatar for hericles
0
800
Member Avatar for programmer12

Presumably you've been taught everything you need to know in class to handle this assignment so you already have the tools you need. Step 1 is to make sure you understand the problem. Do this by working your way through the steps your program would need to do in english. …

Member Avatar for rproffitt
0
214
Member Avatar for Aeonix

I think it's valuable information. As far as I can tell there is no cost to initialising/defining/loading a function that is never used. That is, PHP doesn't do anything to it until it is called. But I could be wrong. However, a larger file does have a higher cost involved …

Member Avatar for ryantroop
0
395
Member Avatar for pro-tek

I haven't moved onto Swift myself yet, mainly because I've been doing less native coding and doing more cross-platform stuff, but from what I've read Swift is getting being picked up at a high rate due to it's ease of use and coding style. Google are even thinking of using …

Member Avatar for JamesCherrill
0
273
Member Avatar for Ivan_11

Generally that error is not due to your code. Either the firewall is blocking you or the database is listening on a specific port.

Member Avatar for hericles
0
297
Member Avatar for du_ebrithil

Your syntax has a lot of mistakes in it which you are hopefully aware of. But even without them it didn't work as you had it. This works: var array = []; var obj = [1,2,3]; var obj2 = [4,5,6]; var obj3 = [7,8,9]; array.push(obj); array.push(obj2); array.push(obj3); console.log(array); console.log(array.indexOf(obj2)); // …

Member Avatar for AndrisP
0
267
Member Avatar for Nestory
Re: c#

What exactly are you stuck on? You haven't told us what you're trying to do.

Member Avatar for Nutster
0
194
Member Avatar for complete

I'd remove the spaces from the date string to start with: 2016-04-25 18:18:15. That would probably fix it.

Member Avatar for hericles
0
86
Member Avatar for RikTelner

Why on earth are you using document.getElementById and jQuery at the same time??? To locate an element in jQuery just use: `$('#item1').click(function() {//code}); // for an ID` `$('.item1').click(function() {//code}); // for an class` To apply a click to multiple elements you can do this `$('#item1, #item2').click(function() {//code}); or `$('#item1').add('#item2').click(function() {//code});

Member Avatar for RikTelner
0
528
Member Avatar for SpottyBlue

The first problem you have is an incorrect parameter. In the HTML you have the radio buttons called 'gender' but in the PHP $_POST you use 'Sgender'.

Member Avatar for hericles
0
293
Member Avatar for </scorpion>

CSV is just plain data, formatted in a certain way. There is no way to add style rules to it. It's like asking if you can add fonts to a .txt file.

Member Avatar for </scorpion>
0
3K
Member Avatar for davy_yg

A button isn't a link, the href attribute has no effect. If you want to redirect to the admin page either style an <a> tag to look like a button or add an onclick event to the button so some javascript can process the redirect.

Member Avatar for hericles
0
312
Member Avatar for Digital_1

What search terms are you targeting? If you're trying to compete on terms like 'web design' you've got long road ahead of you... Having just checked your meta tags it appears you are. If you're trying for local business only you can add 'India' or your city after each term …

Member Avatar for KumarPradeep
-2
463
Member Avatar for Lau_1

Hi, A mobile web app is available through the browser but is a webpage optimised for a mobile screen. So, it's not really 'responsive' as it won't be designed to work on a desktop sized screen. This gives a good explanation: [Click Here](http://www.rapidvaluesolutions.com/whitepapers/responsive-web-design.html)

Member Avatar for Lau_1
0
621
Member Avatar for toomutch

So are you saying that when you click on one of the buttons, without getting asked to enter any user credentials, the form doesn't appear and you get an error message about an incorrect user anme or password? So code would help. Can you post that up?

Member Avatar for hericles
0
277
Member Avatar for slowlearner2010

Most obvious problem is you are using getElementById but your form doesn't have an id attribute. The code for setting the action looks right except it isn't affecting anything because the form can't be found.

Member Avatar for hericles
0
492
Member Avatar for grand_78

My python isn't very good but if I remember correctly you can put a comma ( , ) at the end of the first print statement and it will not output a new line, making the second print appear beside the first. if not, just concatenate your full line (inlucding …

Member Avatar for Brandon Hatch
0
204
Member Avatar for spud91

You could have spent a few minutes reading up on the fetchAll() method. Hint: it returns an array. `$result = $stmt->fetchAll(PDO::FETCH_ASSOC);` now loop through each row in the $result array, getting the Consumption value foreach($result as $row) { $c = $row['Consumption']; }

Member Avatar for spud91
0
362
Member Avatar for sashiksu

mysqldump is the command line function that exports all or part of a database to the specified file. So you are taking all of the database 'moneycs' and outputting it to whatever file name you suply. It's perfectly acceptable MySql

Member Avatar for hericles
0
195
Member Avatar for RudyM

To defend against SQL injections make sure you're using prepare() for all of your database queries.

Member Avatar for jacks009
-1
142
Member Avatar for Marco_4

I think you need to use a prepare() statement, instead of query(), with your database object seeing as you are binding variables into the statement. You should be checking your PDO object for errors at any rate because I'm pretty sure that is where the problem lies.

Member Avatar for hericles
0
299
Member Avatar for Violet_82

Head over to https://it-ebooks.info/tag/programming/ and browse around, also go to https://www.packtpub.com/ and sign up. They give away a free ebook every day (the quality varies). In terms of what to learn, if you don't have a particular language but want to become a better programmer, I'd look at the books …

Member Avatar for Violet_82
0
277
Member Avatar for shashigowda

If you are only pulling through the name and subject initially (and ID presumably) then when the preview is clicked on you do another database query to get the rest of the message information using the ID as the identifier. And then display that in the seond area in pretty …

Member Avatar for shashigowda
0
249
Member Avatar for FarrisFahad

Your function gets called every time there is a scroll event, so at the bottom of the page, with no more pictures to display, it has no choice to respond with "There are no pictures." Add a variable and set it to true when you reach the "no pictures point". …

Member Avatar for FarrisFahad
0
1K
Member Avatar for Siberian

Maybe some code would make it more obvious. It sounds like CSS height and width would be all you need if you have to re-size a surrounding element to match the SVG.

Member Avatar for AndrisP
0
277
Member Avatar for uttar14

What exactly do you mean by "The text fields needs to accept and allow multiple entries"?

Member Avatar for uttar14
0
245
Member Avatar for geetalia
Re: c#

Maybe you could be more specific as to the actual problem? asking how to code an admin section is quite vague.

Member Avatar for hericles
0
131
Member Avatar for masimies

Firstly, it looks like you need to use double quotes as you're including a variable in the file name name string. `file_put_contents("files/$file");` Single quotes are 'dumb' and don't parse variables to strings. Secondly, file_put_contents uses a second parameter which is the data to put in the file. `file_put_contents("files/$file", $someData);` Without …

Member Avatar for masimies
0
3K
Member Avatar for Jawad.ali

Opacity affects the element it is being applied to (obviously) so adding opacity to the div will affect it's background image and everything else inside it, which includes the text. But you have some options: 1) Use your favorite graphics software to make the image itself transparent and don't use …

Member Avatar for godfreysseki
0
289
Member Avatar for Emily_3

An execution plan is a description of how the database is going to carry out your query. It can show you what happens and in what order, plus detailing how much 'effort' went into each step. This allows you to see bottle necks and locate where slow performing queries are …

Member Avatar for hericles
0
155
Member Avatar for Coderunner

But you're adding in the group as a bcc list, meaning a lot of people (everyone mentioned in the bcc) gets the same email body. You can't personalise that to include the email of each bcc person. You would need to send one email to each person, no bcc, and …

Member Avatar for Coderunner
0
342
Member Avatar for davy_yg

We use sourcetree at my work and it's a pretty good tool. It's just a repo interface of course when you get right down to it but works well and has some nice features. I now use it with bitbucket for my personal projects as well. I can't comment on …

Member Avatar for davy_yg
0
239
Member Avatar for miltonbburke

Limiting the results to just links containing "media.tumblr.com" is easy: `if(strpos($element->href, 'media.tumblr.com') !== false) {` ` echo $element->href . '<br>';' `}' will remove any that don't include that string For the next pages, put a for loop around your scrapping code and add the loop iteration onto the URL each …

Member Avatar for miltonbburke
0
228
Member Avatar for sahilmohile15

In your first attempt the error would have gone away because the code in the loop wasn't getting called. isset($_GET['id']) failed and so nothing else happened. Double check the URL parameters you are passing in, id isn't one of them.

Member Avatar for pritaeas
0
459
Member Avatar for Sibghah

Are there three columns in total, a name and then two numbers e.g. bruce, 1, 5? You haven't stated where the error is actually occuring but is it at line 14: int( row[2] )? If there aren't 3 columns then that should be the problem, column 2 (the third) doesn't …

Member Avatar for Sibghah
0
233
Member Avatar for hhaannyy

Of course it won't work. An empty table will return an empty result set and so your line `txtBillNo.Text = BillNo.Rows(i)(0).ToString + 1` can't supply a value because BillNo.Rows(i)(0) doesn't exist. If no results are returned just set the txtBillNo to whatever the first number should be. e.g. 1.

Member Avatar for Phoguez
0
223
Member Avatar for King_6

You're not quoting the first value, Me.Product_NameTextBox. And you are quoting both price inputs. Is that correct? I would have expected them to be decimals/currency inputs. Also, use parameters to insert variables into command text.

Member Avatar for hericles
0
207
Member Avatar for sahilmohile15

As noted in the other thread: ` jQuery('#details-modal').modal('hide');`

Member Avatar for hericles
0
304
Member Avatar for sahilmohile15

First thing to check is whether your javascript function is appearing on the page. Once the page is loaded in the browser, view the source and confirm the footer is loading correctly and that the detailsmodal function is part of the page source. Are you getting any other errors from …

Member Avatar for hericles
0
439
Member Avatar for ehpratah

What is the query trying to do? If it is returning a large record set, written bad or uses a large number of joins it could be hogging the resources. Find a tool for analysing the query (MySQL Workbench or MS SQL Server Management Studio for example, depending on your …

Member Avatar for ehpratah
0
205

The End.