Jump to content

Barny74

Members
  • Content Count

    75
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Barny74

  • Rank
    Regular Member
  1. I have coded a contact form , but for some reason I am not actually getting the email , but the php code has no errors and the form returns a success message. I have removed my email address from the code here. Appreciate any help. Contact form <body> <div class='formbody'> <link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'> <form id="contact-form" action="send.php" method="POST"> <p>Hi</p> <p>My <label for="your-name">name</label> is <input type="text" name="your-name" id="y
  2. I got my answer thanks. My script.php was not loading. Works fine now.
  3. Hi. If the img that the code is currently pointing to via the db is taken down , i would like to have a second image as backup. And that second image is on my seever. Thanks
  4. I have tried the below but image does not load. echo "<img src='".$row ['url_img']."' onerror='this.onerror=null';this.src='no_img.jpg' /><br />";
  5. Sorry , just updated the code as I pasted the wrong code in
  6. Hi, I have been trying to code some javascript to detect when an image does not load , but having no luck as new to javascript. I am trying to replace the below , if it does not load, echo "<img src='".$row ['url_img']."' /><br />"; with an image called no_img.jpg if (isset($_GET['id'])) { $sql = "SELECT w.whisky_name , price , date , avprice ,url_img ,whisky_id FROM test_db t JOIN whisky w USING (whisky_id) JOIN ( SELECT whisky_id , AVG(price) as avprice FROM test_db WHERE whisky_id = :id GROUP BY whisky_id ) avcalc USING (whis
  7. Barny74

    HTML Alt img

    Fair comment. Will look at some javascript. Thanks
  8. Barny74

    HTML Alt img

    Hi. I woudl like to have an alt image instead of alt text. I am trying the below for thee text , but cant figure out how to have an alt img , the alt image is called no_img.jpg echo "<img src='".$row ['url_img']."' alt='Sorry no image available'/><br>"; Thanks
  9. Quick question. I just uploaded the website to a online test site , I have added the database and connected etc and the search works fine , but when I click on one of the results I get the following error Parse error: syntax error, unexpected '[', expecting ')' in details1.php on line 40 workds perfectly offline and I am connecting ok because I can do an initial search. I am in a holding pattern with support... yawn <?php $page='details'; include('header.php'); include ('navbar.php'); include ('connect.php'); if (isset($_GET['id'])) { $sql = "SELECT w.whisky_name ,
  10. 2. About 5k per download 3. Not very often for new whiskies , but it is possible.
  11. Thanks for the reaponse. 1. I currently download all the info into excel format and then save as a csv. It basically has the following headings. Name , date of last sale , sale price of last sale , auction link , image link , lot number. I usually download it then copy the info into a CSV that has all records in it.
  12. Thanks , i just get a bit confused if i am running sql query or pho code. Thanks and will give it a go
×
×
  • 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.