natepizzle
-
Posts
17 -
Joined
-
Last visited
Never
Posts posted by natepizzle
-
-
POST too
-
I don't think you need to cast the session id as an integer.
-
Create 2 mysql columns, min price and max price, and use php to check for a max price on each row. If it exists then it should display as min - max eg $90 - $100
As for the unavailable you could set the min price for those hotels to null and use php to display Unavailable if the min is null
Im not the greatest with mysql but im fairly certain you can use null with integers
-
are you on windows, *nix, or a [choke] mac [/choke]
-
And I do know that source code can be viewed on websites
html and javascript can be viewed but a site with a working php parser, the php isn't viewable as its server side.
-
Until you could get a more qualified answer you could try padding the prices with 0's in mysql and strip them with php in the output.
-
If you have ftp access to the files in question you can right click the file in most ftp programs and change permissions.
-
Can you attach old.txt and new.txt
-
Great.
Altho I do have a suggestion.. it might be anoying - unless there's another smart way to do this - but how about asking the user if the topic has been resolved, when posting the second post in said topic. I tend to forget to change my title to [RESOLVED] or whatever, so I'm sure I'll forget to click a link aswell.
Other than that, wonderful mod.
A checkbox for Topic Resolved would be nice. I think your idea is good.
-
If he is just wanting to put the design of the site into a single place so that changes reflect over every page include would work just fine.
template page design -
-
you could use sessions if you don't want to use a db and email everything when finished.
-
Try
$item_retail = ($_GET['item_retail'] * .75);
and remove
*.75
from <INPUT TYPE=HIDDEN NAME=price VALUE='$item_retail*.75'>
-
Can you attach the /home/ausnzcla/public_html/libraries/joomla/environment/uri.php file to the thread so we may help further.
-
-
I understand '===0' means is exactly the same but i don't understand the return statement with that on the end. I saw this code snippet at http://www.jonasjohn.de/snippets/php/starts-with.htm and its dated back in 2007 so maybe its just old and not UTD with php 5. Maybe there is an implied if statement there saying return this line only if it is exactly equal to 0. Thanks for any help.
[cod]
function StartsWith($Haystack, $Needle){
// Recommended version, using strpos
return strpos($Haystack, $Needle) === 0;
}
[/cod]
Need to decrypt an encryption in PHP
in PHP Coding Help
Posted
I think thats C, C++, or C#