Skip to content
Advertisement

Tag: mysql

Codeigniter Having undefined index

I need to access a table by referencing another table ID and by doing so I created first a foreach loop to retrieve the first table data then give its ID reference to the second table. I have done it in my other function but I don’t know in this function prompts me that it’s undefined index. Here is my

how to optimize this sql insertion php code?

I have mysql database and I want to insert about 40’000 rows into it from PHP code , but my code takes more than 15 minutes to insert the rows, is there any chances to optimize it? where is my problem(PHP code / database design) ? here are the details: – the row data are stored in a utf-8 txt

Show checkbox values from database in PHP

In Database I have a column ‘language’ which have values English, Arabic, Urdu respectively. Now, I am getting these values and show these values in checkboxes for update purposes. I have to check the checkbox if it matches the value with database value and then make it checked otherwise unchecked. But I am getting the wrong results.. Below code is

PHP MySql delete query

I have a delete script on my dashboard that WAS working before moving domains. ( not sure if that is relevant ) The code for my ‘deletejob.php’ is below. <?php error_reporting(0); $host = '…

How to use SQL prepared statement in php pdo

I create prepared statement for sql that give me the right result in mysqlWorkbench, but when I tried to use the same query with php pdo, it returns me an empty Array. So how to use my prepared statement with php pdo ? This is my code: Answer I found a solution that give me the right result. I create

Advertisement