Help needed with php website Programming Web Development by Classica Blue Need webmaster fluent in php/mysql to make ongoing updates to my fairly simple e-commerce website. Please advise hourly rate and availability. Re: Help needed with php website Programming Web Development by Dani Daniweb’s forums are not a marketplace and we don’t allow solicitations. However, may I recommend Upwork or (for higher budgets) Toptal? I have had a really good experience hiring from Upwork. Re: Trying to display all records for a specific customer Programming Web Development by gottaloveit …the body out of the loop. <?php /*error_reporting(E_ALL); ini_set('display_errors', 1);*/ $…lt;tr> <td><?php echo $row['InvoiceNumber']; ?></td&… Re: Hi everyone, I'm Mansour_4 Community Center Say Hello! by Dani Hi and welcome! I haven’t looked at Python since college, but I can help with any and all php questions you might have, should you decide to venture down that road. PHP Fatal error: Uncaught Error: Unsupported operand types error Programming Web Development by ianhaneybs …;>Select Customer</option> <?php $sql="SELECT * from tblcustomers";…?> <option value="<?php echo $row->customername;?>"… Image Analysis Using Llama 3.2 Vision Instruct Model Programming Computer Science by usmanmalik57 … = analyze_image(query, image_url) print(response) ``` **Output:** ![image-2.png](https://static.daniweb.com/attachments/4/c405308ef4fc7691b141eaa4a0e9b785.png… response = analyze_image(query, image_url) print(response) ``` **Output:** ![image-5.png](https://static.daniweb.com/attachments/4/960faa7db6ce3a120830a3c2cb5cb147.png… Re: PHP Fatal error: Uncaught Error: Unsupported operand types error Programming Web Development by Dani The code `$_SESSION["cart_item"][$k]["quantity"] += $_POST["quantity"];` means that, whatever the value within `$_POST['quantity']`, you want to add that value to `$_SESSION["cart_item"][$k]["quantity"]`. The error of unsupported operand types means that you're trying to add values that can't be … Re: Paths in PHP not work. Programming Web Development by WendyDolan To resolve path issues in PHP, ensure your CSS files are correctly linked using absolute paths like base_url/style.css or relative paths based on your folder structure. Use echo $_SERVER['DOCUMENT_ROOT'] to debug and confirm the correct path to your files. Trying to display all records for a specific customer Programming Web Development by ianhaneybs …<tr> <td><?php echo $row['InvoiceNumber']; ?></td>…;/tr> </tbody> <?php //echo "Start Date: {$row['CustomerName']}&… Re: Trying to display all records for a specific customer Programming Web Development by Reverend Jim I don't work with PHP although I've done a fair bit of SQL and … Re: Trying to display all records for a specific customer Programming Web Development by Biiim ….product_id` Then I would throw that into a an associative PHP array and display it how I wanted `foreach($returned_result_set as… $row){var_dump($row);}` you could use PHP arrays to put all products into an array for each… Creating a Pixel Desktop App with ChatGPT in Just 20 Minutes Community Center by Johannes C. …/downloads/PixelPotion.zip). Its functionality is simple: you select an image from your computer (.jpg, .png, .webp, etc.), choose the pixelation… level depended entirely on the original resolution of the input image, so I thought it would be better if users could… Re: Python - MySQL - Too many connections? Programming Databases by Dani …number of MySQL queries (typically 0-3) throughout the PHP script POST Requests: * Open a non-persistent MySQL …connection at the beginning of the PHP script * Start a transaction * Execute *n* …number of MySQL queries (typically 3-5) throughout the PHP script * End the transaction * Close the MySQL connection … Python - MySQL - Too many connections? Programming Databases by cored0mp … to prevent this type of crash. Because if this were PHP it wouldn't be happening, I admit that. How can… type of error from happening again, short of switching to PHP? Re: Creating a Pixel Desktop App with ChatGPT in Just 20 Minutes Community Center by jkon I understand that a chatbot is more friendly to use than Google, but the same functionality is in 1000 places in Python code on Internet. It would be easier to Google it and use the code. Do you believe that using a chatbot saved you time for this ? Re: Creating a Pixel Desktop App with ChatGPT in Just 20 Minutes Community Center by Johannes C. > I understand that a chatbot is more friendly to use than Google, but the same functionality is in 1000 places in Python code on Internet. It would be easier to Google it and use the code. Do you believe that using a chatbot saved you time for this ? Absolutely! You are right that the code was the easy part that I probably could have fixed… Re: Python - MySQL - Too many connections? Programming Databases by Dani Are you connecting to MySQL with persistent connections? What happens if you don't use persistent connections? Also, I'm confused what you mean about it complaining about too many connections simply by you changing how many records a single connection works with? Re: Python - MySQL - Too many connections? Programming Databases by Dani > So I went ahead and made sure to connect.close() everywhere that I opened a connection How many times do you have a single script opening and closing a connection to MySQL? Is this a web script? Re: Python - MySQL - Too many connections? Programming Databases by cored0mp **Are you connecting to MySQL with persistent connections? ** Most coders close connections (remember, these are local connections) after each transaction. That was how I was taught. I’m very open to looking at other ways of doing it but for what it’s worth one would be ill-advised to try to recycle connections in any program anywhere near a … Re: Python - MySQL - Too many connections? Programming Databases by Reverend Jim Generally it is hard to offer SQL suggestions without seeing the code. Are you closing the connection manually, or are you using a context manager? Re: Python - MySQL - Too many connections? Programming Databases by jkon Its hard in a Python script to "create too many connections" to a DB. You don't have many concurrent clients , you don't have web requests , is this a server of some kind ? . From your line " Specifically it was choking on a scanning algorithm." I thought that it might create a new connection for each query (or for a group). … Re: How Can I Increase More Traffic of My Website? Programming Web Development by m2host Use social media to promote your blogs. Image Generation with State of the Art Flux Diffusion Models Programming Computer Science by usmanmalik57 … image_name): init_image = load_image(url) images = mod_pipe( prompt=prompt, image=init_image, num_inference_steps=50, strength=0.85, guidance_scale= 10.0, ).…(url, prompt, name) ``` Here is the input image. **Input Image:** ![1280px-Taj_Mahal,_Agra,_India_edit3.jpg](https://static.daniweb.com… Re: AngularJS route url param to php script Programming Web Development by Sanket_17 To pass an AngularJS route URL parameter to a PHP script, follow these general steps: In AngularJS, define a route …’s $http service to send the parameter to your PHP backend. In your PHP script, retrieve the parameter using $_GET or $_POST… Text and Image to Video Generation using Diffusion Models in Hugging Face Programming Computer Science by usmanmalik57 …-stay-small-forever image = load_image("/content/image-73073-800.jpg") image = image.resize((1024, 576)) image ``` **Output:** ![input-image-for-video-generation.…(frames, "image_to_video.mp4", fps=7) ``` **Output:** ![image-to-video.gif](https://static.daniweb.com/attachments/4/307a059fe635cb04e2a71c8ac01f7283… Re: Image Generation with State of the Art Flux Diffusion Models Programming Computer Science by autowrecking Impressive Thanks for sharing. Re: Paths in PHP not work. Programming Web Development by rproffitt Let's see a little more code. Also, read https://www.php.net/manual/en/function.error-log.php to see how to log what your current directory is and more. Re: Paths in PHP not work. Programming Web Development by Dani …. When you set `$path = $_SERVER['DOCUMENT_ROOT'];` you are setting a PHP variable named $path to whatever the value of the document… Paths in PHP not work. Programming Web Development by pinkod02 How to figure out the paths, why the styles are not applied, the file is not found, I tried many methods, but as a rule nothing works, it happens that the main page applies styles, in other files there is none or there is no file at all, it is clear that you need to register the paths, but how? I tried $path = $_SERVER['DOCUMENT_ROOT']; this does … Re: Top strategies for improving website performance and load times Programming Web Development by dineshkumar01 … times, focus on these key strategies: Optimize Images: Compress and resize images without sacrificing quality to reduce loading times. Minimize HTTP…