Jump to content

pplNet

Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Contact Methods

  • MSN
    ah_onn_chai@hotmail.com
  • Website URL
    http://
  • ICQ
    27198920
  • Yahoo
    ah_onn_chai@yahoo.com

Profile Information

  • Gender
    Not Telling

pplNet's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. They just giving me an reason that mail function is disabled due to spamming issue... I guess this is an stupid answer. Anyhow, I need to find out the alternative way to send out mail using php code. As I needed for such as forgot password, auto send an replaced password or even new registered member confirmation email. By the way, how to use it?
  2. Hi all, I've been having this problem for sometimes after the hosting company migrate the server from linux to win server. My mail function now doesn't work at all. So, is there any alternative way to send out email using php code instead of using mail function?
  3. The code show in the plesk below here. PHP Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/php09fLgo' to <folder>
  4. How I know I called the right tmp_dir? $_FILES['uploaded']['tmp_name'] <-- this is the full path of the tmp_dir?
  5. I am using hosted server, how am I able to defind my own upload_tmp_dir. Cos i'm having this problem, either using move_uploaded_file or copy, system always generate this error. PHP Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/php09fLgo' to
  6. Hi all, I am totally confused about this thing "->".... I know it appear during we call records like $resource->field we also use it in class method. But in some cases I saw ppl use it in Array... So, what is the meaning of "->"??? when we use it? how we use it? I found this from Joomla code $arr[$i]->$key; Please explain if anyone know. Thanks for everyone!
  7. sorry that you have to correct my coding....
  8. totalAssign = 6ppl Adults = 2 Children = 4 Room = 2 split them equaly in each room averagePpl = round(6/2) // 6ppl / 2rooms then round it up Note: averagePpl can be ur numbers of bed in a room. RemAssign = totalAssign RemAdultsAssign = adults RemChildrenAssign = Children foreach($rooms as $roomnumber){ 'assume that adults always set as priority then only children if RemAdultsAssign > averagePpl { $adults = averagePpl $remAdultsAssign = $RemAdultsAssign - $averagePpl $Remassign = $Remassign - $averagePpl }else{ $adults = $RemAdultsAssign $Remassign = $Remassign - $RemAdultsAssign $remAdultsAssign = 0 } //same concept goes to $children $insertSQL = "INSERT INTO bookings (roomNumber, adults, children) VALUES ( '$roomnumber', '$adults', '$children')"; $Result1 = mysql_query($insertSQL) or die(mysql_error()); }
×
×
  • 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.