1,576 Posted Topics
Re: Some things that can be wrong 1) That user doesn't exist 2) the username is wrong 3) the password is wrong 4) User exists but doesn't have access to that database If you have direct access to the database you can check all of those out. | |
Re: I'm assuming that the entered trans_code is to be either 'a' or 'b'. The problem is that you are then comparing transcode (which is either the character 'a' or 'b') against variables a and b, which equal 0.06 and 0.08 respectively. The comparison fails and you don't get the result … | |
Re: You set the session variable at the point the user has successfully logged in and before you redirect them to the user page i.e. the moment they have correctly proven they can log in. Then in the userpage load function you check for the logged in session variable. If it … | |
Re: This a complete function so we can't see what should be being returned or when. I can't see an error in what you are doing here but what happens to the HTML after that? | |
Re: Are you saying the first one works but the second one doesn't? The second will export all dates because you the comment delimiter inserted: `SELECT infotbl.barcodeid, tbltime.barcodeid, infotbl.fname, infotbl.lname,infotbl.jposition, `tbltime.rectime, tbltime.recdate FROM infotbl INNER JOIN tbltime ON infotbl.barcodeid = tbltime.barcodeid -- WHERE recdate = :frdate AND recdate = :todate"` The … | |
Re: Remove the <pre> and out the result. It should be XML. Pre formatting is hiding that from you. | |
Re: Learning to code takes practise, you won't learn just by reading a book. Find a book that is for beginners e.g. https://it-ebooks.info/book/4941/ and work along. Download an IDE like netBeans or eclipse and try some very basic examples and work from there. You'll want to start off with either a … | |
![]() | Re: How many settlement records are there for 'Kapoor'? |
Re: Chinese, most spoken language in the world, global powerhouse and booming tech industry. My second choice would be German then Japanese. And you need to learn a foreign language as part of the degree? That's awesome! | |
Re: Are you doing an AJAX call to the servelet? If you are you can try putting your hide code in the response method tot he call. it should get called there. | |
Re: Loop through your array and for each item and call `ListBox.Items.Add()` You can call that in your Load event as you want the list populated when the form appears. | |
Re: [Click Here](http://web.enavu.com/tutorials/sliding-door-effect-with-jquery/) This one has one panel sliding all the way off screen but once you're familiar with the idea changing it to have two panels moving half the distance shouldn't be hard. | |
Re: This sounds like you've made it overly complicated. Why are you trying to serve differing PHP pages when, if I'm reading this right, all you really need to do is return content from the server? You could design your page to have the elements you need for the various screen … | |
Re: I think you need a better design to do what you want. For a start referring to the amount's by the ID when the ID is a number is immediately confusing. A + b + C makes far more sense. But, regardless, stripping the equation apart to insert the values … | |
Re: You can just concatenate the current column value with the new input. `UPDATE table_name SET col1 = CONCAT(col1, 'new value') WHERE ID = some_id;` | |
Re: SELECT blabla FROM a INNER JOIN b ON a.a = b.b ORDER BY a.id DESC LIMIT 10; If you're creating the SQL statement in code just replace the 10 with whatever the result of (variable x 10) is. | |
Re: One method is to use a LIteral control on the page and build up your html as string in the code behind and then pass it to the literal. `<asp:Literal id="literal1" runat="server" />` In code: `string html = "<div class=''>....";` `literal1.text = html;` | |
![]() | Re: I would guess it is because you're not actually stopping the button submission by return false; or event.stopPropagation() so your form is still submitting sometimes. All the cancel button does is close the window but you've still clicked the submit button before that. Why it only happens sometimes, I don't … ![]() |
Re: You have an href set for the <a> tag so after the onclick is processed the anchor does what it is meanrt to do. To prevent it firing change your onclick to: `onClick=\"confirm('Are you sure you want to delete?'); return false;\">` | |
Re: Firstly, this line only showing one row: `$result = mysqli_fetch_row($result);` `var_dump($result);` You've only asked it to fetch one row so the dump only has one row. mysqli_fetch_row does just what it says i.e. it returns ONE row. For the second problem, the var_dump of your row above shows what's wrong … | |
Re: Unfortunately, I think the answer is no. Humans are incapable of functioning in sufficiently large groups with leadership/authority in place. You state the government is the worst organised crime but it isn't that simple. It takes organised effort to a variety of good things like food distribution, infratructure, health care, … | |
Re: Is you table name actually customer product - 2 words? If yes, then you'll need to quote it `arr = "INSERT INTO 'customer product'(user) VALUES('" & user.Text & "')"` The INSERT command expects the first name after INSERT INTO to be the table so it doesn't know what to do … | |
Re: The issue must be in the values string you set up. If you're getting 'invalid' back you can be sure you're hitting the right URL and your cURL is working but you're failing the verification. So you're need to match your query string against the API docs and any examples … | |
Re: If the link is correct in your email then something is probably going wrong on your activation page and it is redirecting to the register page again. You'd need to debug what happens on the activation page or post it up here. | |
Re: If you're getting the results back via JSON and then adding each to the page why can't you add a jQuery .click function to each one at the same time? `$('.flex-1').click(function() {});` Then, when a .flex-1 is clicked, the this keyword will target the clicked element only. | |
Re: It looks to me like your doing some extra steps when getting the salt and password out of the database. When creating the password you create a salt, add it to the password and hash the combined string. The salt and hashed password then get saved to the database. On … | |
Re: Something like this? <div id="generalbox"> <div id="box3"> <div id="item1" class="item" >This is example forum</div> <div id="item2" class="item" >This is example forum's description</div> </div> <div id="righthand"> <div class="rightHandBlock"></div> <div class="rightHandBlock"></div> <div class="rightHandBlock"></div> </div> </div> CSS: #generalbox { display: block; padding: 1.5%; margin-bottom: .15%; background-color: #222; } #box3 { display: inline-block; width: … ![]() | |
Re: What if you register the #Resolved click inside the success return of your AJAX call? $(document).on('click', '.viewTD', function(){ window.tid = $(this).closest('tr').find('.tidTD input').val(); $.ajax({ type: 'post', url: 'modalInfo.php', data: 'tid=' +tid, success: function(d){ $('.modal-body').html(d); $('.modal-title').html("Ticket ID: " + tid); $('#myModal').modal('show'); var time = $('#time').val(); var desc = $('#description').val(); $('#Resolved').click(resolvedAjax(window.tid)); } }); … | |
Re: You can try SyncFusion's tools, most are free, as far as I know, for individual devs and small teams. Or use Google Charts and code it yourself - more work involved of course. | |
Re: Adding moment.js isn't really a 'massive fix'. Neither is running jQuery UI. You can choose to download just what you need so you can have a jQuery UI file that is just the core and the datepicker. | |
Re: Try ti without the VALUES keyword, just the select statement. | |
Re: You need to put quotes around the value for the Location column. `SELECT * FROM kladilnica WHERE Location = 'Macedonia' AND Uplata = 50 AND Liked = 50` So you need this: `if($selectCountryBox != "") $searchArr[] = "Location = '{$selectCountryBox}'";` | |
Re: Chrome won't work bcause you're using an ActiveXObject, that only works in IE (unless you've added a plug in). Windows is failing because your syntax is incorrect. Your window.onload should look like this: window.onload = function() { loadfile(filename); } In your loadfile function you ned to check for the end … | |
Re: Add jQuery to your site if you haven't already and call fadeOut() on the div to make it slowly disappear. `$('.overlay').fadeOut(500);` | |
Re: I haven't heard of waypoint til now but my first thought would be that elements added after waypoint is initialised don't get included because they weren't part of the DOM at that time. Is the new content getting added after the page has finished loaded i.e. by user action, or … | |
![]() | Re: The SQL statement looks fine to me. Maybe the issue is with the byte variable. What is the column type of PIC in the database? |
Re: From their documentation page: > The default math delimiters are $$...$$ and \[...\] for displayed mathematics, and \(...\) for in-line mathematics. FYI: The text editor here stripped out the 's from the quote. The displayed mathematics, your syntax 2, are designed to break the equation out of the page and … | |
Re: If I understand you correctly, are you saying that: `$ulr = "http://someurl.com";` is getting presented as a comment? You must have something wrong in your code. You should be able to do things like `echo "http://someurl.com";` and see it correctly on your page. Can you post up the code segment … | |
Re: I assume the last part of the URL, the file name, is just the date with 'EQ' in front? If not, especially if there is no logic to file name, you'll have trouble. Otherwise you can get the file now with: `$file = "EQ" . Date('dmy') . "_CSV.zip";` `$url = … | |
Re: Generally you get into that error if you've closed the db connection before you've finished using the reader but you're not doing that here. Try including the CommandBehavior.CloseConnection to the ExecuteReader as you have it in the second code section. | |
![]() | Re: Firstly, if you didn't go there already, connectionstrings.com has all the info you will need on connections strings to the various databases. Thats the connection string for omitting tnsnames, is that want you need? Generally, the simpler version will work: `Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;Integrated Security=no;` Regardless, if you looked at the … ![]() |
Re: It sounds like you would want to install some existing open source software to manage user login, profile pages, forums, etc. You really don't need to be doing this yourself from scratch. Just hit up google for free forum software and start browsing. | |
Re: A web service is a piece of software, running on the server (computer B) and listening on a particular port (optional). Computer A would post data to the URL and port the web service is listening on and it will be processed on computer B. You can post information to … | |
Re: var_dump out the contents of $results and see what it contains. It is clear from the error that $results['user'] isn't an existing item. It maybe as simple as the 'user' item being wrapped in an outer element you're not referring to. | |
Re: `lbltotalAssetsinDatabase.Text = ds.Tables(0).Rows.Count` That is giving you the number of rows in the dataTable. There is only one row but it holds the value 47. You want: `lbltotalAssetsinDatabase.Text = ds.Tables(0).Rows[0][0].ToString()` The [0][0] accesses the first cell of the first row of the dataTable. Alternatively you could name the column in … | |
Re: Your SQL looks right so there must be so external factor happening, some form of permissions being the ikely problem (yes, I now you said the directory was 777). Are you checking the MySql error after you've ran the query? | |
Re: Simply dispose of the connection when you're done with it. conn.Close() conn.Dispose() That's just good practise anyway for db connections. | |
Re: Firstly, this completely depends on what you are trying to do. It maybe that an off-the-shelf solution won't match what you need to do. But for the vast majority of cases some thing does exist that will match what you need in which case going to the trouble and cost … | |
![]() | Re: It is possible. What you will want to do is use jQuery and monitor the onchange event of the drop down so your code knows when an option has been selected. Then you do an http.post to the server with the selected option as the data. Your PHP endpoint will … |
The End.