hericles 289 Master Poster Featured Poster

Simply include the username is the result from the login query against the database. Then store it in session, or whatever persistance option is available to you. Then you have it available to use whenever you need.

hericles 289 Master Poster Featured Poster

Firstly, I'd check that the is_dir command is workinf correctly. Which folder are you running the script from? I doubt '/xampp/htdocs/image' is relative to where the script is running and it isn't an absolute path.
Add more echos to ascertain which code is running and where it stops. At least that way you'll be able to narrow down where the proble is.

hericles 289 Master Poster Featured Poster

I maintain 2 legacy Symfony sites that make use of tpl files, in that site for creating ebooks from PDFs.
A tpl is a 'template file' that can hold information about the another file type that is to be created.

For the Symfony sites the .tpl files are used to create jpgs for displaying in the ebooks.

So, they aren't something restricted to one particular platform or framework and they can have many uses. How they work in your project is impossible to know for an outsider.

hericles 289 Master Poster Featured Poster

Which browser are you using? Both buttons appear to work fine in Chrome and Firefox.

hericles 289 Master Poster Featured Poster

Does running
php -m
on the command line show the moduleas enabled?
How about phpinfo()?
Which module are you using: pdo_mssql or sqlsrv?

I had some issues a few months back with pdo_mssql and but right now I can't remember what I did to fix it. I'll get back to you if I remember.

hericles 289 Master Poster Featured Poster

Please post your code, so we have a better idea of what you've done so far.

hericles 289 Master Poster Featured Poster

Type is a reserved word in MySql so this line

$stmt = $conn->prepare("SELECT DISTINCT type FROM tbl");

will be failing. You need to quote the word type for it to be treated as a column name.

$stmt = $conn->prepare("SELECT DISTINCT 'type' FROM tbl");

hericles 289 Master Poster Featured Poster

Option one is to make a new query that does include the filter clicked as a WHERE clause and get the subset products returned.

Seeing as this is purely PHP and you need to postback regardless of what the user does, appending the selected buttons onto the query as a WHERE clause is probably your best option so forget option 2.
On clicking a button postback the form with the array of currently selected buttons as a parameter, adjust your query apropriately and you're done.

If you need more in depth explanations I'll be happy to help.
Also, if this is a custom coded job can I suggest Magento, Wordpress or Joomla (in order of my personal preference) to you?

hericles 289 Master Poster Featured Poster

Follow through each step and make sure everything is as expected. So check $_POST['password'] holds a value, check that password_hash() doesn't return FALSE and check the error message from your db call.
Everything looks fine from a cod epoint of value.

hericles 289 Master Poster Featured Poster

Help us to help you. What error are you getting or what behavior are you seenig that you don't expect?

hericles 289 Master Poster Featured Poster

You'll want to either toggle or set display: none on:
$('.image_road img') and $('.profile_picture img')

Although you'll want to remember that if you hide the profile pic completely there is nothing left to click on to bring the buttons back.

hericles 289 Master Poster Featured Poster

I don't see whre you're selecting the old password for the user, other than this:
$chg_pwd=mysqli_query($link, "select account_number,password from Login");

And that doesn't get the details for the particular user which makes me think you're just retrieving the first user each time.

hericles 289 Master Poster Featured Poster

Trying running
npm rebuild node-sass

It should help rebuild the correct binding for your setup.

hericles 289 Master Poster Featured Poster

That format is called a ternary operator. It's a version of an if/else statement.
row[i] ? row[i] : "NULL"
is the same as

if(row[i]) {
    // use value row[i]
} else {
    // use value "NULL"
}
hericles 289 Master Poster Featured Poster

You're passing your comment string into the .comment-info div as text. You need it to render as HTML so instead try:
$(".comment-info").html(comment);

hericles 289 Master Poster Featured Poster

The problem with your findMean method is that you aren't using the passed in array at all. You're ignoring it completely, creating your own array, doing the correct maths on that and returning the result. Bu tthat result is incorrect when considering the array passed in.
It can be fixed by simply:

for (int i = 0; i < a.length; i++) {
        sum += a[i];
    }

Looking at it, you're median function has the exact same problem.You're not processing the input array there either.

hericles 289 Master Poster Featured Poster

Some extra information here would really help... You've given us nothing to work with.

hericles 289 Master Poster Featured Poster

That error generally comes from having an incorrect number of parameters in you SQL queries or, in some other way, introducing an error involving the parameters.
Pay close attention to the table schema and double check all of your mentioned parameters are correct.

hericles 289 Master Poster Featured Poster

I've never been too fond of Android Studio. I use Visual Studio Code for anything Angular now and love it. But it really comes down to a couple of things: does the editor have the features I need to get the job done and do I like using it? If you say yes to both, use it.

For any Angular/Ionic project you can go into the root folder and run the command to send it to the browser, using either 'ionic cordova ...' or 'npm ....' for whichever way you initially set it up.

hericles 289 Master Poster Featured Poster

It sounds like you are missing the 'using' statement for the required class at the top of the code file.
So, if you have the class Properties inside a namespace XXX you would add

using XXX.Properties;

at the top of any other class that intended on using it.
This may also require you adding the reference to the project, as you may have done when adding System libraries.

hericles 289 Master Poster Featured Poster

Hello,
First up, no Java needed at all. Angular is based in TypeScript now which has a very similar structure to JavaScript. If you don't know Javascript that well, it's easy to pick up.
Using Ionic will mainly come down to running some commands on the CLI to build, deploy, that kind of thing plus, possibly using some of the Ionic controls in your HTML.
They are very compatible with iOS but you should probably understand the difference between how Ionic compiles an app (essentially into a webview inside an app container) vs other options that result in native code (Xamarin for example).
Also, some other frameworks (ReactJS, Vue, etc) seem to have a performance advantage over Angular. I've built several apps using Angular 1 through4 now and have found the perfomance to be perfectly acceptable but not lightning fast.

hope that helps.

hericles 289 Master Poster Featured Poster

Also, the last 'else' should be another elif to work properly. That or remove the condition for that line.

hericles 289 Master Poster Featured Poster

You don't have the correct number of closing brackets to match the opening ones one the print lines.
Lines 22, 24 and 26 are all one short.

hericles 289 Master Poster Featured Poster

The error is quite clear. You're passing a string into a dictionary that is declared to accept BetGuns.Web.Models.Home.VM_HotGames.
You just need to look at the line causing the error and pass in a variable of the correct type.

ddanbe commented: Nice answer +15
hericles 289 Master Poster Featured Poster

The only thing that can be going wrong is that the ID is getting misread when looping through an array with a single value. It is always reading the ID of the first row regardless which checkbox was actually checked.
You'll need to do some debugging to figure exactly why that is happening but I'd start with looking at the POST variables going to the update script. That should show you the way forward.

hericles 289 Master Poster Featured Poster

Please add your code to the post, i.e. in the post, not an attachment.

hericles 289 Master Poster Featured Poster

Going by the error I would assume the stored prodcedure is expecting to return an integer but you're returning a varchar. Would that be correct?
If yes, you just need to change the output type to be varchar.

hericles 289 Master Poster Featured Poster

Firstly, check that $id is an actual value. Also check if the user you're accessing the database as has delete privileges.
The table, depending on dtaabase design, could also have constraints that are preventing the delete from working.

Secondly, unless you're validating the id parameter before appending it to your SQL query, you're vulnerable to SQl injection attacks.
NEVER add un-verified inputs to an SQL query. That's a piece of advice that'll save you a lot of heartache one day.

hericles 289 Master Poster Featured Poster

Use left: 0; instead of right: 0;

Or are you trying to position the background image within .soulfy, rather than left position .soulfy? Because you'd do that with
background-position: left

hericles 289 Master Poster Featured Poster

It's likely that HTML is being stripped from the description as it is being rendered.
You may need to remove the filter as described here:
Woocommerce docs

hericles 289 Master Poster Featured Poster

Good to hear.
For clarification for any others that find this, the initial code was an if statement without an elseif.
$camp['CampaignStatus'] < 2 ? 'Drafted'

It was incomplete as it asked

if ($camp['CampaignStatus']  < 2 ) {
        return 'Drafted';
} else if() {

}

which won't compile in any language.

diafol commented: Always good to see an explanation for the benefit of others. +1 +15
hericles 289 Master Poster Featured Poster

Any chance you could simply add the error message to the post rather than have us download a file?
And Win7 with SQL Server 2005? Why so out of date?

rproffitt commented: Good question. If a company waits too long, they can't find folk to work on the products. +12
hericles 289 Master Poster Featured Poster

You're missing your second option in the second ternary operator:

($camp['CampaignStatus'] < 2 ? 'Drafted' : <SHOULD BE SOMETHING HERE> )

hericles 289 Master Poster Featured Poster

If you're referring to this bit:

while($row=mysqli_fetch_array($run))//while look to fetch the result and store in a array $row.
    {
        $slno=$row[0];
        $sem=$row[5];
        $subject_code=$row[9];
        $subject_name=$row[10];
    ?>

you're setting the variables $slno, $sem, $subject_code and $subject_name on each loop through but doing nothing with them. On the next loop you're setting them again and, again, doing nothing with the new values.
Only on the last loop do you move on to the next piece of code and actually output the values.

hericles 289 Master Poster Featured Poster

You're not giving the option a value so no data is getting passed back in the POST for that variable.

You need to chnage this:
echo '<option value>' .$row['paramhead']. '</option>';

to:
echo '<option value="' . $row['paramhead'] . '">' .$row['paramhead']. '</option>';

hericles 289 Master Poster Featured Poster

Is this a mobile app or running ina browser?
If a mobile app you'll need to make an HTTP call to an endpoint to pass the data through so the server has the data to work with. From there how you proceed will depend on which language/platform you are using (C#, Jave, Node, etc).

A little more information about your setup would help.

hericles 289 Master Poster Featured Poster

You could consider a notepad++ style interface (but prettier) with vastly reduced functionality from, say, VS but the compilers and ability to compile the project and output the result would be an absolute minimum.
And remember you'd need to be able to deal with projects rather than individual files to be useful.
As a minimum you'd probably want to include:
Create project
Create file
Save
Find and replace
Building
Compiling
Error reporting
Intelli-sense would be nice but not strictly necessary for the project you're considering

hericles 289 Master Poster Featured Poster

Yes, it is but you'd need to write or include compilers for the languages you intended to write in the IDE.
You'd need to provide features like spell check, intelli-sense, error checking and compiler reports. It would be a fair amount of work to make an IDE that people would consider using these days given the fairly excellent existing alternatives.

hericles 289 Master Poster Featured Poster

Are you looking for something that can parse and convert your CSV file automatically or are you happy doing the coding yourself i.e. writing the code for highcharts?
If the former, then your options maybe limited. If the latter, then, sure, you can style the heck out of it and come up with an awesome result.

Simply turning your CSV into a table won't get you far, switching it to JSON will make it easier to work with if you do intend to script the actual graphs yourself.

hericles 289 Master Poster Featured Poster

Bounce rates are generally high, although the type of website makes a big difference e.g. bounce rates for blogs are higher than normal.
If you're bouncing at 65% or over you probably have an issue. Some experts say a bounce rate of 25-45% is pretty good.
How to reduce the bounce depends on a variety of things but how and where you're marketing the site would be major contributors.

A bounce is almost always because the initial content the user see doesn't match what they were looking for so is your search engine blurb or ad accurate to your content?
Do you make the content of the page easily identifable?

You may need to alter your landng pages to better keep visitors or work on your ad words and marketing channels so the users seeing are your ads and links are already the right market segment for your site.

hericles 289 Master Poster Featured Poster

You can use
var links = $('.col-lg-3 a);
To get a list of all of the links you need. If you then have a counter in your script which increments/decrements with each click of the arrow, you can use that counter as the index of the links array.

var link = $(links[counter]).attr('href');

hericles 289 Master Poster Featured Poster

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 doesn't exist then redirect them to the log in page.

hericles 289 Master Poster Featured Poster

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?

hericles 289 Master Poster Featured Poster

I'd consider using Unity. It's cross platform and you'd be programming in C# which is much better than trying to get to grips with C++ if you haven't used it before.
C++ has advantages over speed of performance but C# will be faster to write in and makes a perfectly good final product.
Either way, I always suggest it-ebooks.info and find what you need there - it has a huge range of free books.

hericles 289 Master Poster Featured Poster

And May to July is all of the data contained in the database?
When you say it returned the header only are you referring to the first row in the file i.e. just the headings? It could be that you're parameters don't match the format in the date columns and therefore nothing is returned.
Can you echo out the select statement and paste it here?

hericles 289 Master Poster Featured Poster

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 WHERE part of the command will be ignored because of the --

hericles 289 Master Poster Featured Poster

What error are you getting?

hericles 289 Master Poster Featured Poster

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.

hericles 289 Master Poster Featured Poster

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!

hericles 289 Master Poster Featured Poster

Click Here
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.