107 Posted Topics

Member Avatar for mexabet

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 …

Member Avatar for alan.davies
0
498
Member Avatar for FarrisFahad

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

Member Avatar for Australia_1
0
5K
Member Avatar for alan.davies

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 …

Member Avatar for Dani
1
3K
Member Avatar for rpv_sen
Member Avatar for asimegusta
0
1K
Member Avatar for alan.davies

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?

Member Avatar for Dani
1
5K
Member Avatar for rproffitt
Member Avatar for Reverend Jim

I've got this.... Your Last Known Location: Cardiff, United States Update doesn't do anything.

Member Avatar for happygeek
1
2K
Member Avatar for Jack_47

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 …

Member Avatar for kkmudgle
0
736
Member Avatar for rproffitt
Member Avatar for Tay_2
Member Avatar for Sam_52

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 …

Member Avatar for alan.davies
0
1K
Member Avatar for Raju_3

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 …

Member Avatar for dannette
0
455
Member Avatar for FarrisFahad

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.

Member Avatar for FarrisFahad
0
861
Member Avatar for rproffitt

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.

Member Avatar for happygeek
0
709
Member Avatar for happygeek
Member Avatar for Sameer_8
Member Avatar for Sameer_8
0
408
Member Avatar for Raju_3

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.

Member Avatar for happygeek
0
333
Member Avatar for Xhino_1
Member Avatar for SimonIoa

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 …

Member Avatar for Dani
0
1K
Member Avatar for Olaoluwa_1

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

Member Avatar for alan.davies
0
448
Member Avatar for newbie_1
Member Avatar for biswa2ray

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.

Member Avatar for alan.davies
0
6K
Member Avatar for ami_2

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 …

Member Avatar for Bill_26
0
288
Member Avatar for Herminia CS

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.

Member Avatar for alan.davies
1
9K
Member Avatar for Vegeta_1

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 …

Member Avatar for alan.davies
0
1K
Member Avatar for qb

It's due to the missing semicolon on line 549. Also you have an undeclared variable in your loop.

Member Avatar for gentlemedia
0
329
Member Avatar for elamigosam

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.

Member Avatar for elamigosam
0
3K
Member Avatar for developer707

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 …

Member Avatar for developer707
0
3K
Member Avatar for Rizwan_8

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.

Member Avatar for alan.davies
0
396
Member Avatar for Mo_1
Member Avatar for alan.davies
0
2K
Member Avatar for abdelhakeem

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

Member Avatar for rproffitt
2
1K
Member Avatar for FarrisFahad

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.

Member Avatar for pty
0
2K
Member Avatar for pascalbianca

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 …

Member Avatar for pascalbianca
0
4K
Member Avatar for Gurjit_2

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

Member Avatar for Gurjit_2
0
5K
Member Avatar for David_139

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 …

Member Avatar for alan.davies
0
449
Member Avatar for Douglas_10

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

Member Avatar for alan.davies
0
266
Member Avatar for Reverend Jim

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

Member Avatar for alan.davies
0
3K
Member Avatar for durgeshmandal

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.

Member Avatar for alan.davies
0
472
Member Avatar for davy_yg

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

Member Avatar for dickiebow
0
292
Member Avatar for Ram Krishna_2

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.

Member Avatar for alan.davies
0
737
Member Avatar for Gurjit_2

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 …

Member Avatar for alan.davies
0
884
Member Avatar for davy_yg

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 …

Member Avatar for rproffitt
1
471
Member Avatar for sashiksu

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 …

Member Avatar for alan.davies
0
4K
Member Avatar for annya

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.

Member Avatar for alan.davies
0
219
Member Avatar for Robert_79

https://www.daniweb.com/programming/web-development/tutorials/499320/common-issues-with-mysql-and-php Point #6

Member Avatar for alan.davies
0
455
Member Avatar for mysterious_1
Member Avatar for mysterious_1
0
659
Member Avatar for Reverend Jim

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 …

Member Avatar for Agilemind
0
2K
Member Avatar for Hamsterking

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 …

Member Avatar for overwraith
0
593
Member Avatar for janicemurby

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 …

Member Avatar for alan.davies
0
3K
Member Avatar for divinity02

The End.