107 Posted Topics
Re: There are many UDFs here and I'm assuming that they are held in the config.php file. We can't comment on these as we cannot see them. Your query() UDF, I'm assuming runs some kind of prepared statement, judging from the code on line 7: $admin = query("SELECT * FROM admin … | |
Re: You write **exceptions** for certain directories. But it depends, on whether almost all links need to redirect or just the hot directory. If just the hot directory, specify that **only**. | |
I see a +0 next to post comments. Thought this was supposed to be votable. Nothing happens on tapping. BTW on Android. Also when I entered a comment and then decided to edit it, the original text did not show up in the edit box. So made me think I … | |
Re: I have no idea what you're trying to do. Are you trying to log in to the dB or to the WP site? | |
Why do I always get the default filter of recommended every time I open dw? I am quite capable of decidling if I want a filter or not. How can I turn it off? | |
Re: My android shows one new tab but states a pop-up window is blocked. | |
Re: I've got this.... Your Last Known Location: Cardiff, United States Update doesn't do anything. | |
Re: You obviously don't know what you're doing so take care. You could change something you may think is quite innocuous, but may have knock-on effects. Always keep backups of all previous versions. Consider asking a friend who understands php or maybe hire somebody. Else, buckle up and learn Html, php … | |
Re: How about thread starter? Or similar to avoid ambiguity? | |
Re: Erk! Do not use this code as you are wide open to sql injection. | |
Re: Good link rp +1. You may benefit from using a strtolower on the string so you only have to check aeiou instead of also having to check AEIOU. There are many many ways to do this. Using count_char() and using ascii strings is my favourite as it doesn't use array … | |
Re: Why would you want to do this? Using WP you are leveraging a Web interface so I'm assuming you're not interested in building native apps. You can set media queries to detect screen size and deliver different styling and possibly different content. This is simple but like the user agent … | |
Re: I'm afraid this is a huge list that would take a huge amount of work to explain. Perhaps you should ask a series of simple questions, all with suitable titles, so that they can be searched and accessed easily by others. | |
Re: No shooting irons in uk, but batshit bonkers all the same. If brexiteers could vote for Trump they would. Unfortunately a lot of them think they can. They think the FBI is a British agency. Cockwombles. | |
Re:  | |
Re: I can't see Particle defined anywhere Are you missing a library or is it defined in toto? | |
Re: You have get into the css. Possibly just the html. Who knows? You haven't posted anything by the way of markup or styling to give us a clue. We are not psychic. | |
Re: Ionic is frontend and codeigniter is backend. Use both if you want to. Or neither. //edit Didn't want to sound flippant. Ionic is where you chose interactive actions and style/look. Codeigniter gives you the request management to central data. Not proper vocab, but seems the easiest way to think about … | |
Re: GET is never a good idea for operations that alter data in a db. You'd be better to use POST. Obviously this would entail buttons and multiple forms for normal forms, but you could leverage Ajax to send ID data via POST. This has the advantage of no page redirect. … | |
Re: You need to put echo inside the php before the path. | |
Re: You have resurrected a dead thread with a post that does not bear much in common with the original post. Maybe you'd be best to start your own thread. | |
Re: I was about to say contact the plugin author. If you've paid for it, then there should be some support. If not, or it's a free plugin, then you are limited. Forums like these are unlikely to be able to offer specific help like this unless a member has actually … | |
Re: Your code has users across two tables for some reason. Not the way to do it. Also, there is nothing in the code to differentiate between admin and guest, even though you have a loop. | |
Re: Not sure this is possible but you leave very few details. Ci has an MVC structure and therefore has many classes that must be included for it to work. Adding html and php in an adhoc fashion will probably lead to breaking functionality or to security issues. That's not to … | |
Re: It's due to the missing semicolon on line 549. Also you have an undeclared variable in your loop. | |
Re: You need what is often called a link table. This could be called agent_programs. It would just contain fields agentid, programid, status. The agentid and programid are foreign keys. | |
Re: Depends what you need to do with the data. If you're expecting specfic types then you can 'filter' to either validate or sanitize. You can also cast to specific types, trim etc. Use prepared statements for DB queries. Assume ALL data from a form is suspect. OWASP has great details … | |
Re: Like rproffitt I am lost however it sounds as though your board, whatever that is, may be missing a server. Post your code and explain what you mean by board. | |
Re: >A small bug, clicking the upvote/downvote button on mobile makes the comment box appear very briefly then disappear. Happens on Android/Chrome. Amen. Sorry pty could only up vote you as I couldn't leave a comment. Grrr. | |
Re: Your hot or trending images should have a time eleme t to it too, as in 'only the last 3 days' for example. Otherwise the same old image could be top of the pops forever. | |
Re: You want the $_POST superglobal to have an item indexed 'emp_id' with the data in the div as the value after a form has been sent? Are you using vanilla PHP to send the form or Ajax. If using ajax, you can send any data via POST, but HTML form … | |
Re: Ok, here's my take. I don't want to "give a solution", but a few ideas... <?php /* * To use simple_html_dom on remote sites... * Remember to remove offset parameter on line 76 (or alternatively set its default value to 0): * FROM * $contents = file_get_contents($url, $use_include_path, $context, offset); … | |
Re: There are a few ways you could do this, depending on your needs. Here's a botch-job, but gives a single value based on a date: SELECT (SELECT COALESCE(SUM(di.`amount`),0) FROM `daily_income` di WHERE di.`income_date` = ?) - (SELECT COALESCE(SUM(de.`amount`),0) FROM `daily_expenses` de WHERE de.`expenses_date` = ?) AS daily_difference The question marks … | |
Re: Although mysql is language agnostic what are you using php? The official mysql manual is pretty good but not that user friendly. There are some examples on w3schools that are OK https://www.w3schools.com/sql/default.asp | |
Re: >I always have brush up on this as well as Great Britain, England to avoid Very British Problems <sarcasm>Yes, anybody from Great Britain who is not English loves it being called England </sarcasm> | |
Re: Strange encoding here. Look at the code that generates this url to see why it's giving you this. Better to treat the cause not the symptom. | |
Re: I am assuming you want the apache Web server (http server). You do not state your operating system. See the download page... http://httpd.apache.org/download.cgi#apache24 | |
Re: Javascript for the front end interaction. Php can handle the server side stuff. You may benefit from learning the language (js) first before getting involved with any frameworks or libraries (jquery, react, angular...). Alternatively you could use js as nodejs for the whole thing, cutting out php and codeigniter entirely. | |
Re: This may be difficult to predict. Your 'and' in the original string - could this be anything else e.g. 'or'? Will there always be a space after the comma outside the brackets? If strings always have the exact same pattern, then a simple function or series of simple functions could … | |
Re: Python is also being pushed in schools as you don't need any fancy server setups. It is readily accessible. Creating standalone apps in Php is extremely onerous. As pty says, python can be used for almost everything not just webdev. However, from a webdev point of view, I'm not sure … | |
Re: Heed the warning. You've got `val[]` (array) as a name in your form so the resulting superglobals will also be an array. You can't sanitize an array like that. Your markup logic seems a little suspect. You shouldn't need to throw everything into an array like that. You may benefit … | |
Re: You are using DB abstraction - no idea what this "select" method returns - object, *resource* or array of arrays. Let us assume its an array of arrays (either indexed or associative). So: if( $pname ){ print_r( $pname ); } `echo` does not work for arrays. | |
Re: https://www.daniweb.com/programming/web-development/tutorials/499320/common-issues-with-mysql-and-php Point #6 | |
Re: Have a look at Php Storm and related Intelli... software. There are community versions of some of them. | |
Re: I think Ais learning to 'lie' is a strange concept. Lying is seen as morally questionable most of the time by humans. Sometimes as a necessity, possibly for the welfare of others. How do AIs develop their moral compass? Perhaps that's a stupid statement, but as mentioned earlier, we discussed … | |
Re: Creating your own will probably take years. By then, the face of online sales will have moved on. There will be new players in town and transaction methods may change. Leaving your shiny new product looking decidedly last decade. There is absolutely nothing wrong with using third party programs. If … | |
Re: This is why you should never use third party software that you don't understand or that hasn't been tried and tested to death. This code IMO should never be used in the wild. You simply have a vehicle for storing settings values into an array, the is no reason I … | |
Re: Take out the underscore. You have post elements username and user_name |
The End.