Jump to content

horsetags

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

horsetags's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks all, I used the quotes answer as it was easier to implement :-) Paul
  2. Hi, I have a simple include with a price list - $AZ2L=41.0; and i echo this on the page <?php echo($AZ2L); ?> But the result is - 41 and i would like 41.00 Being a bit of a beginner, i expect this is simple, but I am not sure how to do this. If anyone can help that would be great. Thanks in advance Paul
  3. Thanks for that Didn't know about the quotes, but i will use the hash and as i have the code that supplies the '_' i will change it for a hash and just modify the email addresses that already have an underscore prefix. Thanks for the other info as it is all good learning (if my brain can hold it all!) Thanks again, Paul
  4. Hi, i have a peice of code that works great as long as someone does not have an underscore in their email address. I attach the date and time to the email so that my login required site does not recognise the email on subsequent visits which allows guests to buy stuff. [code]$guest_pass = $row['pass']; if ($guest_pass == "guestpass") { $Email_raw = $row['Email']; $Email_array = explode(_,$Email_raw); $Email = $Email_array[1]; } else { $Email = $row['Email']; } [/code] I need to replace the underscore with something that is not used in an email address and will go into a database ok. i have searched the web, but cannot find any info on this (strangely, but could well be me) I am not a profficient coder and can do basic stuff, so would be grateful if someone could tell me what would work instead of an underscore. Thanks Paul
  5. Thanks, i will read up about it (and use it!) now i know what it is. So much i don't know.............. Thanks again
  6. Hi I am using the htaccess method with a rewrite rule - [code] RewriteRule ^(.+)\.htm$ $1.php?%{QUERY_STRING} RewriteRule ^(.+)\.html$ $1.php?%{QUERY_STRING} [NC][/code] at the moment, but saw somewhere a quote of a way that is supposedly better, but cannot get any info on it, searching the net. This is the bit of text someone sent me in an email, but then didn't explain themselves (it's a long story) [color=blue]just use an application statement and push all .html through the php engine then .html files work in php [/color] If anyone can point me to a place where i can read up about it (i'm no php programmer though, but i am learning to understand scripts, so can follow a tutorial pretty well) Thanks Paul
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.