Re: [PHP-DB] mysqldump permissions

2011-06-05 Thread kesavan trichy rengarajan
Give the user show view permission http://dev.mysql.com/doc/refman/5.1/en/privileges-provided.html#priv_show-view On 06/06/2011 7:57 AM, Ron Piggott ron.pigg...@actsministries.org wrote: I created a VIEW “table” yesterday. Last night when the cron job ran to back up the database I received this

Re: [PHP-DB] SELECT WHERE length of content question

2011-03-09 Thread kesavan trichy rengarajan
Have a look at this: http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#function_char-length On Thu, Mar 10, 2011 at 9:49 AM, Ron Piggott ron.pigg...@actsministries.org wrote: Is there a command in mySQL that would allow me to SELECT the rows where the `fax` column is more than 11

Re: [PHP-DB] Oracle PDO UTF-8 problem

2011-01-13 Thread kesavan trichy rengarajan
Try increasing this: PDO::MYSQL_ATTR_MAX_BUFFER_SIZE More info here: http://php.net/manual/en/ref.pdo-mysql.php On Thu, Jan 13, 2011 at 7:23 PM, Karsten Lehmann lehm...@maqsima.de wrote: Hello I try to read a 2000 character long string out of database. The database is an oracle 10g Express

Re: [PHP-DB] ON DUPLICATE KEY UPDATE

2010-11-27 Thread kesavan trichy rengarajan
Read through this: http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html, especially the last 2 paragraphs. On Sun, Nov 28, 2010 at 12:40 PM, Ron Piggott ron.pigg...@actsministries.org wrote: My question is with the syntax below: If the “ON DUPLICATE KEY UPDATE `name` = '$name'”

Re: [PHP-DB] Database and Table creation

2010-10-19 Thread kesavan trichy rengarajan
Hi Ethan, Database Creation: http://www.php.net/manual/en/function.mysql-create-db.php http://www.php.net/manual/en/function.mysql-create-db.phpAdding Tables, Extract Data: http://www.freewebmasterhelp.com/tutorials/phpmysql/1 http://www.freewebmasterhelp.com/tutorials/phpmysql/1Explore the

Re: [PHP-DB] finding out if a user left our website ?

2010-08-25 Thread kesavan trichy rengarajan
Have a look at this: https://developer.mozilla.org/en/DOM/window.onunload https://developer.mozilla.org/en/DOM/window.onunloadBut, as someone pointed out a few days ago, please do not post stuff that is not related to PHP DB. On Thu, Aug 26, 2010 at 6:32 AM, Vinay Kannan viny...@gmail.com wrote:

Re: [PHP-DB] CURDATE

2010-08-16 Thread kesavan trichy rengarajan
Try: DATE(date_accessed) = CURDATE(). Have a look at this: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_dateto understand what's happening. Regards, Kesavan. On 17/08/2010 6:26 AM, Ron Piggott ron.pigg...@actsministries.org wrote: I am wondering why: SELECT *

Re: [PHP-DB] Help with mysql data sorting using php

2010-05-17 Thread kesavan trichy rengarajan
take a look at this: http://datatables.net/examples/data_sources/server_side.html On Mon, May 17, 2010 at 5:30 PM, nagendra prasad nagendra802...@gmail.comwrote: Hi Artur, I am a beginner to this stuff. So, If you or anyone can give me some example codes or may be some links for my

Re: [PHP-DB] Updating MySQL Database after install

2010-05-04 Thread kesavan trichy rengarajan
You need to use the ALTER statement. doc: http://dev.mysql.com/doc/refman/5.1/en/alter-table.html http://dev.mysql.com/doc/refman/5.1/en/alter-table.htmlexample: http://www.1keydata.com/sql/sql-foreign-key.html On Wed, May 5, 2010 at 8:21 AM, Karl DeSaulniers k...@designdrumm.comwrote: Hi, I

Re: [PHP-DB] Calculator

2010-03-16 Thread kesavan trichy rengarajan
http://www.javascriptkit.com/script/cut18.shtml JS based solution would be the easiest. On Wed, Mar 17, 2010 at 3:07 PM, Karl DeSaulniers k...@designdrumm.comwrote: Hello, I have been asked to see if I can set up an online calculator. I was wondering if anyone had some pointers on where I

Re: [PHP-DB] Upgrading PHP Version 5.1.6

2010-03-05 Thread kesavan trichy rengarajan
Well, you can always backup your databases through phpMyAdmin (export) or from commandline using mysqldump just to be on the safer side. On Sat, Mar 6, 2010 at 12:51 PM, David McGlone da...@dmcentral.net wrote: On Friday 05 March 2010 12:35:43 Vinay Kannan wrote: Hello, I am currently

Re: [PHP-DB] Prepared Statement Insert Problem

2009-07-21 Thread kesavan trichy rengarajan
Remove the quotes around the variables in all your statements. For example, this statement: mysqli_stmt_bind_param($submitadmin, isss, '$numrows', '$admin', sha1('$password'), '$email'); could be rewritten as: mysqli_stmt_bind_param($submitadmin, isss, $numrows, $admin, sha1($password), $email);

Re: [PHP-DB] Re: [PHP] A prepared statements question

2009-07-12 Thread kesavan trichy rengarajan
Why don't using consider using PDO for this purpose? Examples can be found here: http://au.php.net/manual/en/pdo.prepare.php On Sun, Jul 12, 2009 at 2:52 PM, Daniel Brown danbr...@php.net wrote: [Redirected to PHP-DB: php...@lists.php.net] On Sun, Jul 12, 2009 at 00:31, Jason

Re: [PHP-DB] Get ID of ROW when using aggregate functions

2009-04-08 Thread kesavan trichy rengarajan
there is probably a better way to achieve this, but, this is a quick solution mysql SELECT * FROM test where sallary IN (SELECT MAX(SALLARY) FROM test GROUP BY company); +++---+-+ | id | name | company | sallary | +++---+-+ | 2 | Peter

Re: [PHP-DB] Retrieving Image Location in MySQL

2009-03-07 Thread kesavan trichy rengarajan
drop the images into a folder within your WAMP servers htdocs directory and then update your database tables with the new location.. for security reasons you will not be able access files outside your web directory through PHP On Sun, Mar 8, 2009 at 11:34 AM, Sashikanth Gurram sashi...@vt.edu

Re: [PHP-DB] Problem with PDO exceptions

2009-03-07 Thread kesavan trichy rengarajan
yup, I have set the |PDO::ATTR_ERRMODE| attribute to |PDO::ERRMODE_EXCEPTION| and I am still not getting an exception! My Code is something like this: $query = $db-prepare($sql); $query-execute($bind); $row = $query-fetch(PDO::FETCH_ASSOC); wher $db is the PDO obj and

Re: [PHP-DB] Problem with PDO exceptions

2009-03-07 Thread kesavan trichy rengarajan
I am sorry, setting |PDO::ATTR_ERRMODE| attribute to |PDO::ERRMODE_EXCEPTION| *does* throw an Exception when the table cannot be found. Stupid me; I was trying to catch Exception rather than a PDOException. On Sun, Mar 8, 2009 at 6:03 PM, kesavan trichy rengarajan k...@trk7.comwrote: yup, I