- Strength to Increase Rep
- +15
- Strength to Decrease Rep
- -3
- Upvotes Received
- 378
- Posts with Upvotes
- 325
- Upvoting Members
- 248
- Downvotes Received
- 20
- Posts with Downvotes
- 20
- Downvoting Members
- 17
web designer and developer. Working with .Net, PHP, Objective C and Angular.
- Interests
- Web design and development, gaming, martial arts and writing
- PC Specs
- 2.4gig Acer laptop, 8 gig memory running Windows 8.1
1,576 Posted Topics
Re: To err is human but to really f**k up you need a computer. | |
![]() | Re: I think your problem is here: If (newpage) Then e.Graphics.DrawString(dgvreciept.Columns(cell.ColumnIndex).HeaderText, .Font, Brushes.Black, rc, fmt) Else e.Graphics.DrawString(dgvreciept.Rows(cell.RowIndex).Cells(cell.ColumnIndex).FormattedValue.ToString(), .Font, Brushes.Black, rc, fmt) On the first row to be processed (whether set to 0 or 1) newPage is true but inside that if you only draw the header if new page is true. … |
Re: Download wordpress ;) Or, if you want to do this yourself, what areas of web design are you familiar with? Are you asking for help with site design, databases or the actual coding? Simply put you will have one page that allows you to enter your blogs (unless you intend … | |
Re: Can't you just call the auto complete code again? The last text entered is still in the text box at this point? It would just be a matter of detecting the enter key press and calling the function. | |
Re: undefined index means you tried to access an array position that didn't exist. E.g. $array[10] when $array only has five elements. Associative arrays have the same problem e.g. trying to get $array['bob'] when that isn't in the array. Which lines is giving the error? At a glance your code looks … | |
Re: You may be onto something. I read these polls that say he rates low with women in the Republican Party and a majority of men don't like him either yet he still wins state after state for the nomination. I don't profess to understand American politics at all, this drawn … | |
Re: Magento - it is free for the community edition, it works pretty well out of the box without customisation, there are many extensions that you can add, there are a heap of good looking themes around and if you do want to add special functional that you can't find an … | |
Re: White hat obviously, unless you don't want to be at the top for long... No offence but I often wonder how easy people think it is to get to position 1. If it were easy everyone would do it (which of course is impossible) - There can be only 1 … | |
Re: You have two if statements that check if the query string is empty or null but not one that checks if it isn't. Therefore, if the query string["ID"] is set to some value nothing will happen. Your first check needs to be if (Request.QueryString["id"] != null) Then the code that … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: Which browser are you using? Both buttons appear to work fine in Chrome and Firefox. | |
Re: 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 … | |
Re: 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 … | |
Re: 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");` | |
Re: Please post your code, so we have a better idea of what you've done so far. | |
Re: 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. | |
Re: Help us to help you. What error are you getting or what behavior are you seenig that you don't expect? | |
Re: 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. | |
Re: 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. | |
Re: Some extra information here would really help... You've given us nothing to work with. | |
Re: 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);` | |
Re: Trying running `npm rebuild node-sass` It should help rebuild the correct binding for your setup. | |
Re: 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" } | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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, … | |
Re: Please add your code to the post, i.e. in the post, not an attachment. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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? | |
Re: 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` | |
Re: 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](https://docs.woocommerce.com/document/allow-html-in-term-category-tag-descriptions/) | |
Re: You're missing your second option in the second ternary operator: `($camp['CampaignStatus'] < 2 ? 'Drafted' : <SHOULD BE SOMETHING HERE> )` | |
Re: 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 … | |
Re: 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 … | |
Re: 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>'; ` | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: If you wanrt to go cross-platform you would probably want cordova or xamarin. These let you build one app that builds for iOS, android and windows phone (with restrictions if you're doing something really cutting edge). If you wanted to target just android or iOS I'd still consider using one … | |
Re: Is this a mobile app? If it is you can use sqlite instead, it is supported pretty well in objective c so I guess Swift is the same (haven't got around to updating my iOS knowledge base yet). Otherwise, if you need to connect to a remote MySQL serve you … | |
Re: 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 … | |
Re: We'd need a lot more information to help you. Are you using a platform (wordpress, Joomla, etc) or is this a custom coded project? Are you using a shared hosting environment? You haven't even given us the URL. |
The End.