1,576 Posted Topics
Re: > 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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); … | |
Re: 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 | |
Re: 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 … ![]() | |
Re: Need more information about what is 'not working' to help you. All I can tell from the URL is that the JSON is valid. | |
Re: 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 … | |
Re: 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. | |
Re: 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. … | |
Re: 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 … | |
Re: 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 … | |
Re: Generally that error is not due to your code. Either the firewall is blocking you or the database is listening on a specific port. | |
Re: 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)); // … | |
| |
Re: I'd remove the spaces from the date string to start with: 2016-04-25 18:18:15. That would probably fix it. | |
Re: 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}); | |
Re: 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'. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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) | |
Re: 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? | |
Re: 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. | |
Re: 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 … | |
Re: 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']; } | |
Re: 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 | |
![]() | Re: To defend against SQL injections make sure you're using prepare() for all of your database queries. |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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". … | |
Re: 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. | |
Re: What exactly do you mean by "The text fields needs to accept and allow multiple entries"? | |
Re: Maybe you could be more specific as to the actual problem? asking how to code an admin section is quite vague. | |
Re: 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 … | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: As noted in the other thread: ` jQuery('#details-modal').modal('hide');` | |
Re: 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 … | |
Re: 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 … |
The End.