Jump to content

OzWaz

Members
  • Posts

    11
  • Joined

  • Last visited

OzWaz's Achievements

Member

Member (2/5)

0

Reputation

  1. As Requested I think it is time to admit defeat and abandon the project. This is way beyond my knowledge set
  2. Thanks Dodgeitorelse3 but i have already did this See above @7:27 - Not that it means a great deal to me
  3. Don't know if this is useful but here is the server specs- screen print below I also had done this http://whymyphp.online/info.php In case this may help
  4. Okay I have located the correct area . Godaddy's webpage does not match their current lay out -but I found it thanks to your help Here are my choices-Below screen print As you will see these are the only options There is not facility to do this "you'll see mysqli checked, and nd_mysqli unchecked. There should also be a choice for mysqlnd, that may or may not be checked. If it is not checked, check it. Uncheck the mysqli option, and check the nd_mysqli option." Thanks Warren
  5. UPDATE: To try and determine what part php on the server plays in my problem I grabbed a domain WHYMYPHP.ONLINE and uploaded the files, that I used for my website 12 months ago containing [Line 22 "$result = $stmt->get_result();"] into a directory in my hosting plan and they still worked perfectly. [Take a look if it helps] Now of course I don't know how GoDaddy runs their hosting business as to whether or not a single person's account and thereby their hosted websites all sit on the one server or whether like playing poker the cards get dealt, one card at a time to all the players sitting around the table. In which case my websites are spread consecutively around all the servers operated by the company. But I think it is interesting that I can still display the material from a database onto a website with go daddy that I have just established today but not the ones in my other website (omglondon.online) Does this help at all in your consideration of where the problem most likely lays Thanks Warren
  6. Thanks Gizmola for your assistance I am already out of my depth in this subject. I have included a screenshot of the only place in GoDaddy's cPanel (DATABASES) I can find any mention of php and that is in the side panel of phpMyAdmin I have been unable to locate anything in their cPanel that is labelled "Select PHP version". Warren
  7. PS GoDaddy's phpmyadmin tell me they are running - 'Version information: PHP version: 7.4.33' - Warren
  8. Thanks "requinix" for your help According to XAMPP it is version: 5.2.1 That would explain this circumstance. - A bit like me asking you what you had for "smoko"? But to deepen the mystery just a little, last year I developed a website for our local community as a noticeboard [ourplace.website] It functions perfectly and it recovers the data from the database using "$result = $stmt->get_result();" - It is hosted through GoDaddy (And still functioning) My granddaughter has just gone to work in London and I am developing a website where she can paste information for the family and images that we can all share but does not belong to Facebook. In developing this website I use the same code that functions on ‘ourplace’ - And it to is hosted by GoDaddy - also. I do know GoDaddy has been around for over 20 years and my understanding is that recently it changed hands and was purchased by one of the bigger conglomerates so maybe they were running an older version of PHP and the new guys have updated the system but I'm just including this information for the purposes of completeness. So it would now be a given that the commercial server would be running the latest, how do i resolve this issues as i an really not a php Guru I just 'borrow' code for the web that does a job Thanks - Warren
  9. PS Line 22 "$result = $stmt->get_result();" Thanks Warren
  10. I have developed a small website with a simple database using XAMPP. It worked fine. Now that I have uploaded it to a commercial hosting server, the PHP code that worked successfully within Xampp is being rejected ERROR [04-Jul-2023 02:55:12 UTC] PHP Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::get_result() in home/n3hyilyj4kst/public_html/mydomain.online/galery/fetchit.php:22 Is this normal or is this a developing feature with commercial servers Warren
  11. I am learning how to use PHP to handle input in a Contact Form on my website. Using PHP I can send the form data to my email client. However I cannot achieve the outcome of sending a copy to the email address of the submitter. I have searched the Internet particularly Stack Overflow and have found code that I am told will achieve this outcome Here is the code: <?php if(isset($_POST['submit'])){ $to = "email@example.com"; // this is your Email address $from = $_POST['email']; // this is the sender's Email address $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $subject = "Form submission"; $subject2 = "Copy of your form submission"; $message = $first_name . " " . $last_name . " wrote the following:" . "\n\n" . $_POST['message']; $message2 = "Here is a copy of your message " . $first_name . "\n\n" . $_POST['message']; $headers = "From:" . $from; $headers2 = "From:" . $to; mail($to,$subject,$message,$headers); mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender // echo "Mail Sent. Thank you " . $first_name . ", we will contact you shortly."; OR // You can also use header('Location: thank_you.php'); to redirect to another page. } ?> Adjusting it for my own circumstances and settings it will still send the information in the form to me but will not send the information to the submitter's email address. What is particularly confusing is, if I modify the code by taking out this line of code mail($to,$subject,$message,$headers); Which includes my email address ($to), it still works and the information including ($subject) is still sent to my email address. I would appreciate any assistance that anyone would offer
×
×
  • 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.