<?php
$member_check = (iMEMBER) ? "You Are a Member" : "You Are A Guest";
echo $member_check;
?>
if (iMEMBER) {
$member_check = "You Are a Member";
} else {
$member_check = "You Are A Guest";
}
echo $member_check;
$data['news_news'] = (isset($_POST['news_news']) && (!empty($_POST['news_news'])) ? addslashes(stripinput($_POST['news_news']) : '';
echo " ".((count($rows) >1) ? " ".(count($rows))." Fishes" : " ".(count($rows))."Fish";
echo " ".((count($rows) >1) ? " ".(count($rows))." ><(((º> ><(((º> ><(((º>" : " ".(count($rows))."><(((º>";
if (FUSION_SELF ="news.php") {
echo"All my code and that<br />";
echo"Moar code";
if($userdata['user_id'] ="49320") {
echo" Hej Jib";
}
}
FUSION_SELF =="news.php"
$current_value = $data['current_value'] (i.e. is 0 from db).
$option = array('0'=>'Me', '1'=>'You', '2'=>'We');
foreach ($option as $arr=>$val) {
$selected = ($current_value == '0' ) ? "selected" : '';
echo "<option value='$arr' $selected>$val</option>\n";
}
if ($input_value || $input_value == '0') {
/* I.e. NOT NULL, OR Zero integer. */
$input_value = stripinput($input_value);
$select = (isset($input_value) && $input_value == $arr) ? "selected" : "";
}
Quote
hien wrote:
Turning 0 to text via stripinput() doesn't help because stripinput() thinks it's a NULL too.
The 0 is the sneakiest among all errors. I hate it most. lol
if ($input === "0"){
//The input is identical to the number 0
}
Category Forum
Code Snippet and functions - 8Labels
None yet
Statistics
4 participants
Notifications
You are not receiving notifications from this thread.
Related Questions