10,940 Topics

Member Avatar for
Member Avatar for cored0mp

A script that was working fine on 100 records per batch choked when I fed it 1,000 records. It gave: mysql.connector.errors.OperationalError: 1040 (08004): Too many connections So I went ahead and made sure to connect.close() everywhere that I opened a connection, and the script made it much further but eventually …

Member Avatar for jkon
0
68
Member Avatar for cored0mp

This week I'm working on the data warehousing capabilities of my application. Now most people here who have built more than a couple of applications can tell you how useful it is to include a datestamp on records or requests as they come in. The advantages are numerous. So much …

Member Avatar for WendyDolan
1
70
Member Avatar for pallavi2501

I’m looking for practical advice and best practices that can help improve a site's speed, considering factors like image optimization, code minification, and server response times. How do you balance performance improvements with maintaining a rich user experience? What tools or techniques have you found most useful in diagnosing and …

Member Avatar for adwinafram
4
198
Member Avatar for cored0mp

Hello Gang! I'm grateful once again for the advice to use MySQL over Postgres. It's been a pretty smooth experience so far. Unfortunately I had to migrate to a different host and have been getting an undefined variable error. Mysql is Running. I used the package manager to get python-mysql.connector …

Member Avatar for cored0mp
1
60
Member Avatar for FarrisFahad

I am having a problem understanding the following ... I am an okay web developer. I am not great. But I want to make money from my skills. Having said that, when I go to websites like Freelancer to search for a project to work on everyone is asking for …

Member Avatar for jkon
2
114
Member Avatar for Paplu

![WhatsApp_Image_2024-09-24_at_6.48.00_PM.jpeg](https://static.daniweb.com/attachments/4/13a53e2c778a9eb1d9f9055cdd5ceeb9.jpeg) ![WhatsApp_Image_2024-09-24_at_6.48.00_PM_(2).jpeg](https://static.daniweb.com/attachments/4/c1e539c7bd293b3d7bf99779bd43a179.jpeg) ![WhatsApp_Image_2024-09-24_at_6.48.00_PM_(1).jpeg](https://static.daniweb.com/attachments/4/ff2865a364a3277cbd970fedd88efb3e.jpeg) here is three Sql table name of them - 1. orders 2.order_item 3. target_value I am trying Two way here is may two code : 1 SELECT I.target_id as Iid, I.target_date as Idate, I.customer_name as Icust, I.target_product as Icat, I.target_pay as Ipay, I.target_rec as Irec, I.active as …

Member Avatar for Paplu
0
100
Member Avatar for yan336484
Member Avatar for cored0mp

Recently made a decision for an app I'm working on to accumulate data in batches AND THEN to insert it into the database with one statement rather than adding 1,000 records through one thousand separate inserts. Is this done better through file or memory? If I write the segments of …

Member Avatar for DGPickett
1
191
Member Avatar for cored0mp

Hey Gang! I'm hitting a point with my (python/mysql/linux) app for processing large amounts of network records where I need to make a design decision. I definitely want my app to have high performance. Because optimization as a skill set is so rare there is no reason not to employ …

Member Avatar for Pelorus_1
2
69
Member Avatar for Dani

I was consistently receiving MySQL "Packets out of order" error messages when attempting to connect to MySQL, mostly on my AJAX pages, but I couldn't attribute it to anything or reproduce it in any way. I did notice, however, that when switching MySQL persistent connections from on to off, the …

Member Avatar for Haseeb_12
5
1K
Member Avatar for nander

Hello I am trying to query a database to show records only for the current user using variable I get the correct data but only 1 row with results any guidance? // Query database to retrieve records associated with the user $sql = "SELECT * FROM table_name WHERE variable_name = …

Member Avatar for Chris_103
0
120
Member Avatar for Dani

What are some ways to improve MySQL performance on queries against large tables that include the HAVING BY clause. It's my understanding that anything in there doesn't benefit from table indexes.

Member Avatar for toneewa
0
702
Member Avatar for FarrisFahad

Hello webmasters, I am currently building a template that I am going to sell on different websites like Codester and CodeGrape. I want to build a business directory. Here is what I have come up with ... 1. users can register and add listings. 2. admin can create categories for …

Member Avatar for antwanlee
0
68
Member Avatar for Dmytro_2

Hi, can you recommend a cool site that will help with transportation of things?

Member Avatar for Reverend Jim
-2
15
Member Avatar for cored0mp

Hey Gang! OK today I am having trouble with my transaction processing application implemented in python/MySQL. Here is some "working" testing code. import psycopg2 from psycopg2 import Error import binascii from binascii import unhexlify import mysql.connector as mysql sql='''CREATE PROCEDURE testprocedure(OUT tacos INT) BEGIN show tables; SET tacos := 1 …

Member Avatar for Dani
1
104
Member Avatar for cored0mp

Hey! I've been asked to store some data from a client in mysql in an encoded format using python. Nothing could be easier, right? I will later need to decode the same data using mysql exclusively. Given that constraint, I thought that base64 would be the go to since nearly …

Member Avatar for cored0mp
2
533
Member Avatar for jayashree10

Security matters. How can I guard against things like SQL injection or cross-site scripting? It will be really helpful if somebody could help.

Member Avatar for Dani
0
45
Member Avatar for Cameron_12

Hey guys, so I've been trying to create a website that allows users to update and delete records through the database I've set up in SQLyog. In my update confirmation file I've added location theme description to be updated and changed for all users. but for some reason its unable …

Member Avatar for AndreRet
3
165
Member Avatar for Vandiun

I'm working on an SQL query for a complex reporting system that involves multiple tables and joins. However, the query's performance is not meeting my expectations, and I suspect that the way I've structured my joins might be inefficient. Here's a simplified version of my query: SELECT orders.order_id, customers.customer_name, products.product_name, …

Member Avatar for DGPickett
2
150
Member Avatar for Dani

Sometimes you need to delete duplicate rows in a database :) In the future, set UNIQUE keys when you need them :) In the example below, we have a table appropriately named `TABLE_NAME` and there are multiple rows that have the same value for the `duplicate_field` field. In this example, …

Member Avatar for Usamatamimi
4
4K
Member Avatar for Abhishek Upadhy_1

Web development refers to the creating, building, and maintaining of websites. It includes aspects such as web design, web publishing, web programming, and database management. It is the creation of an application that works over the internet i.e. websites.

Member Avatar for webdesing
-1
116
Member Avatar for nander

Anyone seen or had this happen before, whenever I add, edit or delete in this datable. It only does this when I add the js pagination\search ![TableDuplicate.JPG](https://static.daniweb.com/attachments/4/792aec684975bfed8e5e50cce0835187.JPG)

1
50
Member Avatar for borobhaisab

Hello There, Look at this PAGINATION I built. This script I built from scratch and is working fine to query my Mysql DB and show results. But I need your feed-back to know if I managed to use the functions in the correct order or not. //FUNCTIONS IN USE TO …

Member Avatar for pritaeas
0
50
Member Avatar for Toro_1

Hello! I have created a project on Android studio, and i use java as langage, i want to create a biometric system with fingerprint, what i mean is that i want to use android fingerprint device to get fingerprint id and store it in MySQL with some personal informations, so …

Member Avatar for vincentlnalls
0
199
Member Avatar for borobhaisab

Hiya, I need to learn the SQL query that counts all the points from more than one column and orders the matching rows based on most points in descending order. EXAMPLE 1: I do a keyword search for "mobile phone tutorial apps". Note 4 words. Sql should find all the …

Member Avatar for Dani
0
188
Member Avatar for nander

PHP Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in <?php include("header.php"); $_SESSION['loc'] = "viewkeyowners.php"; if ($_SESSION['loggedin'] <> 1) { header("Location: logintest.php"); exit(); } //this is done because if user closes a tab/page, and logs back in(still in session), it would redirect to the last opened tab/page function …

Member Avatar for Dani
0
73
Member Avatar for Mindmade

What are the top 3 most important things to consider for a successful ecommerce website?

Member Avatar for acs_cobra
-1
120
Member Avatar for Pranay_2

I am having trouble showing the export buttons, it works perfectly if the data is not fetched from database with the basic example however they are not showing with my php code, I have included the script and necessarry files from https://live.datatables.net/kugajayu/1/edit. Please help, below is my script. <!DOCTYPE html> …

Member Avatar for Pranay_2
0
1K
Member Avatar for portfox

Hi Wanted to utilize the php/mysql insert into the FPDI pdf export tool. I have it working just as plain text which is nice. But, i'd like to to have mysql place db entries into it. I've declared my sql connection, just using dreamweaver at the moment. I'm struggling to …

Member Avatar for Dani
1
83
Member Avatar for borobhaisab

Hiya, It seems to me that if I put a condition on ```` mysqli_stmt_fetch($stmt); ```` to check if user credentials was ok enough for the data to be fetched, then the whole purpose of using the following function is defeated. ```` password_verify() ```` This is what I mean .. ```` …

Member Avatar for FilipKappa
0
61

The End.