11,557 Posted Topics
Re: Are you sure you accidentally aren't running the cronjob from multiple users on the server? Two users might have the same crontab file accidentally. Just a thought? | |
Re: Two words: **it's not**. In fact, Google has made it very clear that over-optimization of content is a great way to get a manual penalty. That means don't keyword stuff, or do anything similar to keyword stuffing, creating spun content, or anything like that. Focus on creating great content that … | |
Re: Sorry, I'm not quite sure what you mean by the image source. Do you mean the URI of the image? So, let's say you have: <img id="my-image" src="image.gif"> Then you can use jQuery to do something like: variable = $('#my-image').attr('src'); | |
Re: DaniWeb incorporated a live chat feature a couple of months ago, and I certainly don't regret it. It's a great opportunity to engage with people in a more laid-back setting, and also with a bit more instant gratification. I think you definitely learn 100X more about a person over the … | |
Re: rproffitt, may I ask why you would recommend that a small business hire a digital strategist? IMHO, this should be the CEO/CMO's job until the company is *very* well established, and certainly not one of the first handful of hires. It's often much more cost effective to outsource to an … | |
Re: Welcome!!!!! :) Where in the world do you live? What brings you to DaniWeb? | |
Re: I haven't looked at C++ in nearly two decades, but from what I can remember, it should be: cout << "enter name\n" << endl; The new line character should be \n instead of /n and also be within the quotes. However, both \n and endl jump to the next line, … | |
Re: Sorry, I guess I’m a little confused by what you mean by tag? HTML tag? Like `<SVG>`? | |
Re: Can someone please tag this thread with the appropriate programming language? | |
Re: > Digital marketing is NOT SPECIAL. It's just marketing done over the Internet or some call digital signage, digital marketing. Nothing has really changed in marketing. Just a change in having more delivery options. I cannot disagree with this more. Digital marketing is unique from marketing that has been traditionally … | |
Re: Kcal you please provide the code that generated this error so we can help to debug? | |
A lot of forums and blogs have links at the bottom of the article to jump to the Previous Post or the Next Post, by way of various forum and blog system PrevNext plugins. More recently, Q&A platforms have been shifting to show a sidebar listing of other similar questions … | |
Re: Please show us the MySQL query causing this error. | |
| |
An oldie but a goodie, for you Canadians out there. I thought I'd make the solution provided within [this thread](https://www.daniweb.com/hardware-and-software/hardware/threads/94301/help-my-keyboard-does-french-instead-of-question-marks) a bit easier to discover for those still suffering from the problem. To switch between English and French keyboards, press `Shift+Control`. | |
This is the code behind the demo at https://www.daniweb.com/connect/oauth/demo | |
Re: Hi, My apologies for taking so long to reply to this. DaniWeb itself is written in CodeIgniter, and I love it. I find that it's a very lightweight PHP framework, and I used it to roll my own ORM, etc. Codeigniter has a session management library, but you would still … | |
Re: I think he’s trying to show the format of the links to see if there is regex or something that can be used to mass deindex them. I believe wildcard characters are included. I can’t provide more advice without seeing the format of the original links that were snipped unfortunately. | |
Re: Yeah, traffic has been poor recently, as has activity. There was a strong uptick that lasted for a few months after our relaunch back in October, then it plateaued, and now the past few weeks have seen a decline. I'm not giving up on user matching quite yet. I'm actually … | |
I'm not quite sure what happened, but at some point fairly recently, Chrome DevTools stopped showing things in the Console. As a web developer, I obviously frequently use this to debug Javascript. Now, instead, there will be a little red circle with an error count in the top right corner … | |
You might be familiar with the dreaded blank page when your PHP script doesn't work. Here's how to spit out errors to the screen, instead of getting just a blank page, as well as logging errors to a file. | |
There are two ways to write to a file in PHP. You can either open a stream, and write to it in parts, or you can use `file_put_contents()` which is much more convenient, with the trade off being that it takes up much more memory, and is not ideal if … | |
![]() | Re: From [this page](https://www.daniweb.com/connect/profile/community) |
Re: Currently on vacation for Thanksgiving. Will take a look at this next week. | |
Re: It would help if you gave us some more information about what it is about Big O notation that you find confusing. Where are you stuck? What, specifically, is confusing you that we can help with? | |
We have a Swagger file for our API, but in our API documentation, we want to show valid responses for each endpoint. I coded up this little recursive function in PHP which takes our Swagger file and spits out a valid response. I use it as follows, for each individual … | |
| |
Re: Sorry I'm confused by your question. You created four select boxes: one asking to select state, one district, one city, one town. You want to change the other three each time you change the state select box, is this correct? I think what you're asking is similar to what we … | |
I'm looking for some alternatives to Swagger UI that I can use with my API's swagger file to generate our official documentation. So far I've been looking at Apiary and ReDoc. Does anyone have any favorites? Which are the most intuitive for api documentation? Ideally I'd be looking for one … | |
Re: I'll make this more clear in the future. Currently on vacation for Thanksgiving break. | |
Re: Yes, the 2 points should be deducted if the comment is removed. I'll look into fixing this tomorrow. Thanks for the catch. | |
Re: I’ve found press release websites don’t perform as well as they used to. 1 good quality backlink can be worth 100 poor backlinks. For top tier (e.g. editorial backlinks from sites like the Huffington Post) then look into responding to HARO queries on a daily basis. | |
Re: Those are notifications about incoming instant messages, hence new *message* notifications, as opposed to *forum post* notifications. Post notifications are always instant. | |
Re: It looks like there are rows in the database in which the value of the class field is empty or null. You can adjust your query to be `SELECT DISTINCT class FROM classname WHERE class <> '' AND class IS NOT NULL` | |
Re: I use https://github.com/lightningtgc/MProgress.js and I find it works great. Sometimes there's no benefit to reinventing the wheel. | |
Re: What database? If you're using MySQL, for example, you could do something like the following: UPDATE records SET status = 1 WHERE timestamp < NOW() - 24 HOUR In this case, the `timestamp` column is a MySQL timestamp. We are setting status = 1 if the value of the column … | |
Member profiles now have a new statistic that measures impact. It counts how many people the user has reached. It should be noted that we just started calculating this number earlier this year, so at this time, the highest number is roughly one million. | |
Re: Check out DaniWeb Connect, which is designed to connect people one-on-one who are within a geographical area to discuss specific topics. Go to https://www.daniweb.com/connect and then type the desired keywords (e.g. amazon, alexa, etc.) in the Skills and Interests field. | |
Re: I'm not sure what you mean, rproffitt? It looks like he's looping through each row in the result set generated from query $q, and saving the row in an array $r for the iteration of the loop. That's what I do as well. | |
Re: Please upload the file C_workOrder.php It says the error is on line 83, but the PHP code you are showing us only has 21 lines, so we can't investigate line 83 for you. | |
Re: We have had a problem with Hotmail delaying email we send out because it gets flagged as fraud. It should arrive in about 24 hours. Otherwise, please use a non-Hotmail email. Sorry for the inconvenience. | |
Re: I'm not Canadian, but I am of the belief that this goes completely against religious freedom, at least as the U.S. defines freedom of religion. For many people, yarmulkes, hijabs, turbans, etc. are a required item for their personal level of comfort and/or modesty. I don't know anyone who wears … | |
Re: It depends what you have to offer and what industry you're in. If you're a programmer, having a Github account with open source projects or contributions is vital. | |
Re: A 5xx error means that the web server is configured incorrectly. When I tried to load your website, it took a *very* long time to load, but it finally did, without any 5xx errors. It's possibly that your website was temporarily down while Googlebot crawled it. However, this problem is … | |
Re: Sorry, I'm not understanding what you're trying to do. It looks like you're checking to see if an email is the same as a staff's email address, and if it is, don't use your own email? | |
Re: I don't see `if (isset($_POST['add_submit']))` anywhere in your code. Please show the code that includes that and then I can let you know if there are any typos that might be causing issues. However, I do notice that on both lines 6 and 12 you are inserting $brand into the … | |
Re: Sorry, I'm a little confused by what you mean. What do you mean by retain the selected value? When do you want it to retain the value? After submitting the form? A dropdown will default to the option that has `selected` specified. So, for example, when iterating through the while … | |
Re: It’s hard for anyone to help you because you’re not really describing what your problem is. Is the code you provided not working? Are you getting any error messages? Your topic title says to write an algorithm and then you just posted a bunch of code. We are confused how … | |
Re: Can you please post your code here? The page you linked to seems very spammy. |
The End.