Jump to content

wigwambam

Members
  • Posts

    68
  • Joined

  • Last visited

Everything posted by wigwambam

  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']
  15. Try: echo '<div class="productimageborder"><a href="product.php?price=' . $query_row['discount'] . '</div>';
  16. "<img src='saveimage/".$row['img_description']."' alt='alt text' width='100' height='100' />";
  17. The single quote needs moving to the end: "<img src='saveimage/".$row['img_description']."' />";
  18. I think you may be missing your closing img tag: echo "<img src='saveimage/".$row['img_description']."' />"; [edited, moved single quote around image name]
  19. Should this line: $size = filesize($path); // not working not be? $size = filesize($file);
  20. Here is a simple solution that I used once... .htaccess file: RewriteEngine On RewriteRule ^product/([0-9]+)/([^/]+)$ /product.php?id=$1&d=$2 [NC,L] Your URLs would be along the lines of:- http://www.yoursite.com/product/123/PRODUCT-NAME-HERE http://www.yoursite.com/product/74/PRODUCT2_DESCRIPTION_HERE Then, in product.php simply get the value of id. $id=$_GET['id']
  21. <a href='page2.php?file_image=<?php echo $_GET['file_image']; ?>'>File image</a>
  22. Why not create a category and a sub-category? In the product table, you could have something like: id category subcategory product name price etc.... 1 Consoles Playstation Sony PS2 99.99 2 Consoles Playstation Sony PS3 299.99 3 Consoles XBOX XBOX 199.99 4 Hygiene Razor 5 Hygiene Shaver... etc... To make it more efficient, you could have a separate category/subcategory table and link via ids.
  23. You only need one checkbox, if ticked, value='Y': <input name="consent" type="checkbox" value="Y" <?php if($_POST['consent']=="Y") echo "checked"; ?> />
  24. Check that the variable $_POST['rec_email'] has a value before attempting to write to database.
×
×
  • 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.