
Spring
Members-
Posts
224 -
Joined
-
Last visited
Everything posted by Spring
-
If none above show text... problem is it shows text even so.
Spring replied to Matt Ridge's topic in PHP Coding Help
Well, I'm officially confused. Going to hand this over to someone else. -
The entire page is blank?
-
If none above show text... problem is it shows text even so.
Spring replied to Matt Ridge's topic in PHP Coding Help
I had in my original code: if(!ubuntu() || !xp() || !vista() || !win7() || !firefox() || !chrome() || !safari() || !ie9() || !ie8()){ echo'<strong>'; echo '<br />' . $_SERVER['HTTP_USER_AGENT'] . '<br /><br />Administrator someone in your work force is using an unsupported browser/OS combination, please email the information above to the developer of the NCMR software you are using. It will allow your browser/OS combination to be used correctly. Sorry for the inconvenience.</strong> <br /><br />Please copy and paste the text above and send it to your web administrator. It will explain everything he/she needs to do.';} So tell me even if have one of the variables above it shows? Yes, which why you need to use && instead of || And those are functions, not vars. -
What's the error though?
-
If none above show text... problem is it shows text even so.
Spring replied to Matt Ridge's topic in PHP Coding Help
accidentally post -
If none above show text... problem is it shows text even so.
Spring replied to Matt Ridge's topic in PHP Coding Help
To put it in easier terms This checks to see if either one of these are not true. So if the person doesn't have Vista AND windows7 they're screwed. if(!ubuntu() || !xp() || !vista() || !win7() || !firefox() || !chrome() || !safari() || !ie9() || !ie8()){ } This will check that at least one is true. If one of those functions are true then continue. So if the person has at least VISTA they're okay. if(!ubuntu() && !xp() && !vista() && !win7() && !firefox() && !chrome() && !safari() && !ie9() && !ie8()){ } -
If none above show text... problem is it shows text even so.
Spring replied to Matt Ridge's topic in PHP Coding Help
If you want to make this easy on yourself, just use the logical AND. -
If none above show text... problem is it shows text even so.
Spring replied to Matt Ridge's topic in PHP Coding Help
Read the logic you just wrote and ask yourself if that makes sense. -
Whaaaaaaaaaaat I've never seen this. Well I'll be damned
-
-I'm just curious, what is this? echo <<<END and END;
-
1000s of pages to be created? Stop/point me to an alternative
Spring replied to rodhow's topic in PHP Coding Help
Generate the results on one page depending on a unique id? -
If none above show text... problem is it shows text even so.
Spring replied to Matt Ridge's topic in PHP Coding Help
Why are you using OR? and not and? if(!ubuntu() || !xp() || !vista() || !win7() || !firefox() || !chrome() || !safari() || !ie9() || !ie8()){ } -
If none above show text... problem is it shows text even so.
Spring replied to Matt Ridge's topic in PHP Coding Help
Add slashes. "/Windows NT 5.1/" -
If none above show text... problem is it shows text even so.
Spring replied to Matt Ridge's topic in PHP Coding Help
http://us.php.net/manual/en/function.eregi.php Use http://php.net/manual/en/function.preg-match.php -
$this->db is defined in the autoload, which is the first line of code at the top. I have no database interaction in my controller, that is the model I'm using. I should not have to define the DB class if I use the auto load. It's ridiculous. I have an almost 100% similar file, and it's works just fine. I honestly don't have the patience to be stuck on errors like this... Also, I think I just found the error now..I need to stop programming late night. I'm going to have a heart attack.
-
So you're looking for http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
-
My bad, I didn't read the question properly, sorry!
-
<FORM ACTION="<?php echo $_SERVER['PHP_SELF']; ?>" METHOD=get> <input type="text" name="band" value="<?php echo $_GET['band']; ?>" /> <input type="text" name="bust" value="<?php echo $_GET['bust']; ?>" /> <INPUT TYPE=submit VALUE="Calculate"> </FORM> <?php if(isset( $_GET['band']) && isset($_GET['bust']) ){ $band = $_GET['band']; $bust = $_GET['bust']; $query = sprintf("SELECT size FROM bra_calculator WHERE band='%s' AND bust='%s'", mysql_real_escape_string($band), mysql_real_escape_string($bust)); $result = mysql_query($query); if (!$result) { echo "no"; } else { while ($row = mysql_fetch_assoc($result)) { echo $row['size']; } } mysql_free_result($result); } else{ echo "N/A"; } ?> http://us3.php.net/isset
-
<a href="YOURSITE" target="_blank"></a> Is that what you meant? Open target in new window?
-
Which PHP Framework Would You Recommend in My Case?
Spring replied to Glese's topic in Miscellaneous
http://codeigniter.com/ -
echo '<meta http-equiv="refresh" content="0;url=YOURURL">'; you can use that as an alternative if you want.
-
Then you're good to go..I think? The PHP won't show up when you view the source. PHP is server-sided.
-
You'll be back when you have a question though.