Jump to content

mdgeus

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

About mdgeus

  • Birthday 04/10/1970

Profile Information

  • Gender
    Male
  • Location
    Roosendaal, The Netherlands

mdgeus's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. just remove the quotes $n = '(243/433)*100'; displays (243/433)*100 but $n = (243/433)*100; displays 56.120092378753
  2. edit your php.ini look for smtp, and fill in your smtp server and make sure that the e-mailaddress that you specify at the send from line is an address in that maildomain. == [mail function] ; For Win32 only. SMTP = mail.domain.com smtp_port = 25 ; For Win32 only. sendmail_from = user@domain.com == in some cases port 25 is blocked, you can then try port 25025
  3. i think this is the problem: else{ $query = mysql_query("SELECT * FROM hotels WHERE location ='$_SESSION[area]' AND type ='$_SESSION[type]' Order by RAND()" or die (mysql_error())); } You didn't place the quotes right else{ $query = mysql_query("SELECT * FROM hotels WHERE location ='".$_SESSION['area']."' AND type ='".$_SESSION['type']."' Order by RAND()" or die (mysql_error())); }
  4. Try this: while($row = mysql_fetch_assoc($result)) {
  5. what type of value is $_SESSION['type'] ? is it an int or string? try it like this if it is a string: "SELECT * FROM hotels WHERE type = '".$_SESSION['type']."' Order by RAND()"; a string needs single quotes around it, an integer doesn't. Have you tried it with the value typed in the query instead of $_SESSION['type'] ? and is that working?
  6. Why don't you parse the value with the onchange onChange="addtwo('<?php echo $price; ?>');" <script type="text/javascript"> function addtwo(p) { if(document.add.size.value == "2xl") { p = price; price = price + 2; } } Not tested it but I think that works better. </script>
  7. And, ofcourse after some searching I found the solution myself. mysql server was configured with default charset utf-8 which was the problem. setting it to latin1 solved it for me.
  8. I just did the database copy again and now the text is the same in the old and the new database. The only problem is the output from PHP
  9. Hi, I have setup a new server with PHP & MySQL on IIS6 / win 2003. after copying the first website and database I'm having this issue with the output generated on the new server. new server: Server version: 5.1.53-community Protocol version: 10 old server: Server version: 5.0.67-community-nt Protocol version: 10 One entry in the old server is TREVIÑO and this is copied to the new server as TREVIÑO (I've used the synchronize option in phpmyadmin 3.3. I'm using some string manipulation to make it look better. -- ucwords(mb_strtolower(substr($string, 0,25), 'UTF-8')) -- the output is on the old server: Treviño (what it should be) and on the new server: Treviãƒâ€˜o (which is exactly how it is in the database) Can somebody tell me where to look for this problem?
×
×
  • 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.