Jump to content

wigwambam

Members
  • Posts

    68
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

wigwambam's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If you are looking to place ads on your website then Google Adsense is the service you need to look at. They will display both pay per view and cpc ads. No other ad provider comes close as far as revenue is concerned.
  2. It could be anything from a coding error to incorrect folder permissions - do you get an error message?
  3. Try removing the quotes: mail($meil2,"VELEC 2012, Resgister succced!","{$datav}","From: info@velec.com"); mail($jobmeil2,"VELEC 2012, Register succed!","{$datav}","From: info@velec.com");
  4. I don't understand your logic. If id_propiedad on table 1 is the primary key and auto increment why are you passing it in your form data? You should insert the record without the id and let the database generate the next one for you. Change this line: $query = "INSERT INTO midatabase.t_propiedades (id_propiedad,regimen, localidad, isla, tipopropiedad, zona, amueblado, habitaciones, estado, baños, cocina, salon, terraza, aseos, metros, descripcion, precio, precio_oferta, novedad, destacada)". "VALUES ('$idpropiedad', '$regimen', '$localidad','$isla','$tipopropiedad', '$zona','$amueblado','$habitaciones','$estado','$baños','$cocina','$salon','$terraza','$aseos','$metros','$descripcion','$precio','$precio_oferta','$novedad','$destacada')"; To: $query = "INSERT INTO midatabase.t_propiedades (regimen, localidad, isla, tipopropiedad, zona, amueblado, habitaciones, estado, baños, cocina, salon, terraza, aseos, metros, descripcion, precio, precio_oferta, novedad, destacada)". "VALUES ('$regimen', '$localidad','$isla','$tipopropiedad', '$zona','$amueblado','$habitaciones','$estado','$baños','$cocina','$salon','$terraza','$aseos','$metros','$descripcion','$precio','$precio_oferta','$novedad','$destacada')"; AND stick the other code in I mentioned earlier.
  5. If id_propiedad is an auto_increment field then:- After: mysql_query($query) or die('Error, query failed : ' . mysql_error()); Add: $id_propiedad = mysql_insert_id();
  6. I see a problem with this line $msg.="<form action="Congrats.html" method="post" input type="submit" value="Go back to RCM Homepage"></form> Should be: $msg.="<form action=\"Congrats.html\" method=\"post\" input type=\"submit\" value=\"Go back to RCM Homepage\"></form>"; Don't think this is enough to fix your problem though... You have nothing in your <form></form>
  7. Have you opened a connection to the database? It's required to use the mysql_real_escape_string() function.
  8. <?php $refurl = "http://www.mysite.com/detail.php?id_property=" . $row_myrecordset_RS['id_property']; ?>
  9. Try changing the form to:- <form action="view02.php" method="get" enctype="multipart/form-data" class="cursive"> <table width="316" border="0"> <tr> <td colspan="2"><h1>Edit Your details </h1><p>fill out the form with your details...</p></td> </tr> <tr> <td> </td> <td><p> </p><p>Click update to edit...</p><p> </p></td> </tr> <tr> <td> </td> <td><p> </p><p></p><p><p> </p></td> </tr> <tr> <td>Website:</td> <td><p> </p><p><input name="website" type="text" id="website" value="optional" /></p> <p> </p></td> </tr> <tr> <td>Primary Number:</td> <td><p> </p><p><input name="phone" type="text" id="phone" value="incl. area code" /></p> <p> </p></td> </tr> <tr> <td>Secondary Number:</td> <td><p> </p> <p><input name="phone2" type="text" id="phone2" value="optional" /></p> <p> </p></td> </tr> <tr> <td>Company Description:</td> <td><p><em>Write a description of what your company does, the services it offers and any additional information here.</em> </p> <p><textarea rows="10" cols="100" name="premiumuser_description" id="premiumuser_description"></textarea></p> <p> </p></td> </tr> <tr> <td> </td> </tr> <tr> <td colspan="2"><input type="submit" name="submit" value="submit" /></td> </tr> </table> </form> As mrMarcus pointed out, your method of submitting is incorrect - no need for the a hrefs in the form.
  10. Hang fire... You shouldn't be using links within your form. I'll post some code in a mo...
  11. You have links within your form! Change this: <p><a href="view02.php?id=<?PHP echo $row['id']; ?>&website=$website">Update</a></p> To: <p><a href="view02.php?id=<?PHP echo $row['id']; ?>&website=<?PHP echo $website; ?>">Update</a></p>
  12. What happens if you cut/paste that SQL into phpMyAdmin? Does it work?
  13. Try commenting out this line: header("Location: view01.php?id=" . $row['id']); Just after it, put: echo $query;
  14. You could create a form with the [download] button that posts to your script, pass: <input type="hidden" name="ip" value="<?php echo $slide[ip]; ?>" /> In your second page, check for $_POST['ip']
×
×
  • 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.