Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5530

wdlyons on "Displaying output from one table based on the info of another"

$
0
0

Thank You.

You guys are Jets. Worked like a charm.

Just wonder if I could push the friendship that one more step. It was mentioned about "cleaning the values" prior to output. What method would you recommend?

I run the input through sanitize_text_field and a check input function:

function check_input($data, $problem='')
{
$data = strip_tags($data);
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);

if ($problem && strlen($data) == 0)
{
die($problem);
}

but unsure what is the best method for output.

Thanks Heaps

Warwick


Viewing all articles
Browse latest Browse all 5530

Trending Articles