Jump to content

sheen4him

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sheen4him's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I need to use soap for a new project due yesterday! I have been in and out of all kinds of site looking for answers and getting nothing clear. I have been programming in PHP for a couple of years, but never used soap. I have PHP 5.2.0 and I am running on Windows with Apache 2.2.4. I edited php.ini to include extension=php_soap.dll and rebooted. I have php_soap.dll in the c:\php\ext directory. But when I run phpinfo() it shows nothing about soap. I think I need to build php with --enable-soap but I can't remember how to do any of that. I once added curl, so I know I did it once. Can some just write me a step by step from how to get to the php prompt to making the new php.exe? Please! Thank You!!
  2. Thank You! I am just learning JS, so I'll work on that.
  3. Thanks, I wasn't thinking. What about a JS?
  4. I am trying to change some variables based on a click of a checkbox. The code is attached. It seems to run the code even on page load. As you can see I set $_SESSION['intspouse'] back to 0, but it is always 1 or 2 when i reload the page. Please help. If you have a better way in PHP that would be fine also. I need to do this in many pages, so the easier the better. Thanks! // near top of page include(_INC_DIR."loadform.php"); $startspouse = $Spouse; $formno=$Occur; if ($_SESSION['intspouse'] == 1) { $Spouse = "X"; $SpOn = "checked"; include(_INC_DIR."updf1099int.php"); include(_INC_DIR."loadform.php"); $_SESSION['intspouse'] = 0; } else if ($_SESSION['intspouse'] == 2) { $Spouse = ""; $SpOn = ""; include(_INC_DIR."updf1099int.php"); include(_INC_DIR."loadform.php"); $_SESSION['intspouse'] = 0; } . . . <input type="checkbox" name="Spouse" value="X" <?echo $SpOn?> onclick="<?if ($Spouse=="") $_SESSION['intspouse']=1; elseif ($Spouse=="X") $_SESSION['intspouse']=2;?>history.go(0)" tabindex='<?echo $tab++?>'>Check if this 1099-Int is for your Spouse</td>
  5. I just set up my site on GoDaddy and I am trying to connect to the MySQL on my site through navicat software. I know my host name but I only get a general error that says, "SSH connection error. Timeout." Basically, I don't want to have to reenter my already set up database. I want to be able to copy it onto the server. So if you have any other way to do this, that would be great.
  6. Also, what if I need to change data from what was originally entered to a user cleared out field. Then the field is blank, but if I use update, I get an error. Any help please?
  7. I am trying to use update to update data in the table, but if I don't have data in the field, I get an error. I have lots of optional fields, and would like an easy work around for this. Here is the code I have now, but I need to add this for roughly 20 forms and 20-50 fields each form. Any suggestions would be great! Thanks // first add required fields... $query = "UPDATE fcustomer SET TIN='$ssn', TIN1='$SSN1', TIN2='$SSN2', TIN3='$SSN3', FirstName='$FirstName', LastName='$LastName', Address='$Address', City='$City', State='$State', Zip1='$Zip1', Zip='$zip', Email='$Email' WHERE UserName = '$UserName' && Password = '$Password'"; $result = mysql_query($query); if (!$result) {echo "die"; die('Could not insert data in customer file.'.$mysql_error());} // add fields that may or may not exist $query = "UPDATE fcustomer SET Zip='$zip'"; // something has to go in if ($Zip2 !="") $query.=", Zip2='$Zip2'"; if ($Phone1 !="") $query.=", Phone1='$Phone1'"; if ($Phone2 !="") $query.=", Phone2='$Phone2'"; if ($Phone3 !="") $query.=", Phone3='$Phone3'"; if ($phone !="") $query.=", Phone='$phone'"; $query.=" WHERE UserName = '$UserName' && Password = '$Password'"; $result = mysql_query($query); if (!$result) {echo "die"; die('Could not update data in customer file.'.$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.