Jump to content

DataRater

Members
  • Posts

    106
  • Joined

  • Last visited

    Never

Everything posted by DataRater

  1. Please help. PHP 5 I'm used to constructing MyClass like this $MyClass = new MyClass; but what does $MyClass =& new MyClass; Stephen
  2. DataRater

    width="200"

    This doesn't seem to be the same as width="200px". What is width="200"? Please help. Stephen
  3. What an excellent idea. Thanks. Stephen
  4. You've lost your $link_id = mysql_connect("localhost", "XXXX", "XXXXX")or die("cannot connect"); mysql_select_db("XXXXX")or die("cannot select DB"); $update="UPDATE qls3_users SET group_id = '9' WHERE email = '$payer_email'"; if(!mysql_query($update,$link_id)) { $error=mysql_error(); echo $error; } Stephen
  5. How do I create a Word document using PHP5 on UNIX. Any tips will be much appreciated. Stephen
  6. Sorry I'm wrong. Stephen
  7. I doubt that '$payer_email'"; will convert $payer_email to an email as you have got single quotes around it. Stephen
  8. I tried both option. The Second didn't seem to pick everything up even when I checked all the the codes from 400-417. So I have used the first which seems to work. Many thanks Stephen
  9. PHP 5 I'm trying to programatically check a URL and check whether it returns a 404 so I can do a redirect. So something like if ( WhateverFunction('www'phppfreaks.com/PagesNoExist.html' == '404') { header("Location: www.Go.com/Getoutofhere.html"); } So I'd like to know what function WhateverFunction is and also any tips on how to use it. Please help as it will be much appreciated. Stephen
  10. I've done this and it looks good. body { width:900px; background-color : #C0D3FE; color : #000000; font-family : Verdana,Tahoma; font-size : 10pt; position : relative; margin :auto; }
  11. When I look at web sites on my flat sceeen most websites fill it up. When I look at them on my laptop there is an area on each side of the screen with no content. I know this is to do with the aspect ration of the screens. How do I make my pages work like? Many thanks in advance. Stephen
  12. Thanks Cags. I got it to work. Stephen :-)
  13. PHP 5 Please Help. This code is putting ':' into $Value so the mysql_errno and mysql_error are not return anything even though $ResultSet is false. Can you tell me why? The value of $SQL is UPDATE conversion_rate SET rate='1.79743838' WHERE currency='AUD' which is fine. I have executed this in my MYSQL client and it works. $GBPAUD = $this->GetExchangeRate('GBP','AUD'); $SQL=sprintf("UPDATE conversion_rate SET rate='%s' WHERE currency='AUD'", $GBPAUD ); $ResultSet = @mysql_query($SQL,$MySQLConnection); if ($ResultSet == false){ $Value=mysql_errno($MySQLConnection) . ": " . mysql_error($MySQLConnection); } else { $Value='True'; }
  14. Excellent!! Many Thanks, Stephen
  15. PHP 5 Please help. What function/code snippet can I call/use to do the following I get the following string from google '1 British pound = 1.6642 U.S. dollars' I want to get the 1.6642. Note this can be from any currency to any other currency. Stephen :-)
×
×
  • 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.