1,576 Posted Topics

Member Avatar for mcroni

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.

Member Avatar for Stuart_4
0
734
Member Avatar for Jayvis

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Blueie

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 …

Member Avatar for hericles
0
92
Member Avatar for SimonIoa

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?

Member Avatar for SimonIoa
0
310
Member Avatar for phphp
Member Avatar for OtepTheThird

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 …

Member Avatar for pritaeas
0
2K
Member Avatar for donz365

Remove the <pre> and out the result. It should be XML. Pre formatting is hiding that from you.

Member Avatar for cereal
0
11K
Member Avatar for Shellie_1

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 …

Member Avatar for Zycog
0
501
Member Avatar for සශික
Member Avatar for Sourav_6

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!

Member Avatar for ddanbe
0
145
Member Avatar for newbee_jv

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.

Member Avatar for hericles
0
218
Member Avatar for JustMarkInAz

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.

Member Avatar for tinstaafl
0
212
Member Avatar for rouse

[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.

Member Avatar for hericles
0
168
Member Avatar for bigignoramus

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 …

Member Avatar for gentlemedia
0
2K
Member Avatar for ilvanhellovan

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 …

Member Avatar for hericles
0
289
Member Avatar for Smooth_1

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;`

Member Avatar for Smooth_1
0
352
Member Avatar for Aeonix

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.

Member Avatar for hielo
0
317
Member Avatar for naheedkassam

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;`

Member Avatar for naheedkassam
0
737
Member Avatar for TheFearful

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 …

Member Avatar for TheFearful
0
386
Member Avatar for phphp

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;\">`

Member Avatar for hericles
0
112
Member Avatar for Aeonix

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 …

Member Avatar for makaijohn9
0
442
Member Avatar for AleMonteiro

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, …

Member Avatar for Agilemind
0
391
Member Avatar for dimabest

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 …

Member Avatar for jacks009
0
174
Member Avatar for FarrisFahad

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 …

Member Avatar for FarrisFahad
0
614
Member Avatar for Fulufhelo Praise

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.

Member Avatar for Fulufhelo Praise
0
333
Member Avatar for J._1

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.

Member Avatar for J._1
0
336
Member Avatar for Netcode

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 …

Member Avatar for hericles
0
223
Member Avatar for Aeonix

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: …

Member Avatar for diafol
0
194
Member Avatar for toxicandy

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)); } }); …

Member Avatar for toxicandy
0
372
Member Avatar for pezzinae

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.

Member Avatar for pezzinae
0
191
Member Avatar for masimies

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.

Member Avatar for masimies
0
472
Member Avatar for Samyx
Member Avatar for hericles
0
191
Member Avatar for Stefce

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}'";`

Member Avatar for hericles
0
274
Member Avatar for Seung Hwan

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 …

Member Avatar for hericles
0
239
Member Avatar for mitu1997

Add jQuery to your site if you haven't already and call fadeOut() on the div to make it slowly disappear. `$('.overlay').fadeOut(500);`

Member Avatar for hericles
0
275
Member Avatar for FarrisFahad

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 …

Member Avatar for FarrisFahad
0
982
Member Avatar for සශික

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?

Member Avatar for Santanu.Das
0
4K
Member Avatar for Learner010

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 …

Member Avatar for hericles
0
182
Member Avatar for Seung Hwan

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 …

Member Avatar for hericles
0
230
Member Avatar for Anand_6

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 = …

Member Avatar for hericles
0
538
Member Avatar for hhaannyy

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.

Member Avatar for hhaannyy
0
2K
Member Avatar for සශික

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 …

Member Avatar for සශික
0
213
Member Avatar for McAdams12

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.

Member Avatar for hericles
0
244
Member Avatar for michael.dewitt.716

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 …

Member Avatar for michael.dewitt.716
0
2K
Member Avatar for thatsnotmyname

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.

Member Avatar for hericles
0
424
Member Avatar for lmalave

`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 …

Member Avatar for lmalave
0
574
Member Avatar for facarroll

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?

Member Avatar for facarroll
0
1K
Member Avatar for Mr.M

Simply dispose of the connection when you're done with it. conn.Close() conn.Dispose() That's just good practise anyway for db connections.

Member Avatar for rproffitt
0
690
Member Avatar for bespokeficode

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 …

Member Avatar for hericles
0
116
Member Avatar for TheFearful

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 …

Member Avatar for hericles
0
256

The End.