Jump to content

Tracy8277

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Tracy8277's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi all, I am trying to implement a web service reading in from a simple form, this is my rest server script and I have a sax script which calls the web service but this is a considerable amount of code! I cannot get the PUT request to work! Any ideas? <?php $a = $_GET["country"]; $conn = mysql_connect("localhost","username", "password"); mysql_select_db ("username"); if ($_SERVER["REQUEST_METHOD"]=="GET") { header("Content-type: text/xml"); $result = mysql_query("select * from pointsofinterest where country='$a'"); echo "<pointsofinterest>"; while($row=mysql_fetch_array($result)) { echo "<pointofinterest>"; echo "<id>" . $row['id'] ."</id>"; echo "<country>" . $row['country'] . "</country>"; echo "<city>" . $row['city'] . "</city>"; echo "<bar>" . $row['bar'] . "</bar>"; echo "<description>" . $row['description'] . "</description>"; echo "</pointofinterest>"; } echo "</pointsofinterest>"; } elseif ($_SERVER["REQUEST_METHOD"]=="DELETE") { mysql_query("delete from pointsofinterest where country='$a'"); } elseif ($_SERVER["REQUEST_METHOD"]=="PUT") { $response= file_get_contents('php://input'); } mysql_close($conn); ?>
  2. Ok thanks i will check it out! Not freelance as i am doing for my project at uni! Hence the panicking!
  3. Hi all, is it even possible to use FTP and MySQL server together through Dreamweaver i.e. setting up a site and using an Mysql server as I can't connect to the MySQL one? Tracy
  4. Hi all, I am <em>trying</em> lol, to implement an e-commerce website so i need dynamic features such as login, register, shopping cart. Except I am having real difficulties and my scripts are usually too long and many to put on here! Anyone be up for me e-mailing them some stuff, you could probably sort it out in a whizz to be fair! Tracy
  5. Yes I already have it installed with WAMP but it will not work because it says that there is an error and that something is holding port 80 i presume! How do i find this out?
  6. Hi all, I cannot seem to get Apache to work in WAMP on windows Vista! I disabled IIS as not to interact with Apache but when I try to install Apache it says that port 80 may be occuped by Skype! Except I have removed Skype??? I have no idea what else to do? Thanks Tracy
×
×
  • 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.