asking question

2011-09-21 Thread valery-christian
the meaning of Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\EasyPHP 2.0b1\www\memo3\index.php on line 64

Re: asking question

2011-09-21 Thread Reindl Harald
your variable is not the result of mysql_query() empty, contains something else or whatever Am 21.09.2011 14:16, schrieb valery-christian: the meaning of Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\EasyPHP 2.0b1\www\memo3\index.php

Can I Develop using Community Edition and Deploy onto Enterprise Edition??

2011-09-21 Thread Alastair Armstrong
Hi Please I need some advice. We are in the process of upgrading from the Free Community Edition of MySQL on our Live environment to the Enterprise Edition. Do we need to do the same for my Development environment or can I continue developing on the Community Ed and then simply deploy any

Re: Can I Develop using Community Edition and Deploy onto Enterprise Edition??

2011-09-21 Thread Johan De Meersman
- Original Message - From: Alastair Armstrong alasta...@voxorion.co.za We are in the process of upgrading from the Free Community Edition of MySQL on our Live environment to the Enterprise Edition. Do we need to do the same for my Development environment or can I continue

RE: asking question

2011-09-21 Thread Jerry Schwartz
It is important to call all of the MySQL functions in the right order. It is very easy to skip one if you are just learning. I'm not going to give you the exact function calls, because there are several sets. Pick a set (PDO works with different databases, so it is most portable) and then keep

Re: Can I Develop using Community Edition and Deploy onto Enterprise Edition??

2011-09-21 Thread Claudio Nanni
There is no difference. It's just a marketing thing. Enterprise is mainly Support + Enterprise monitor, the source code is exactly the same, the binaries are just (as they say) with more optimized compilation, more often patches are released if you are an Enterprise subscriber. The only extra

RE: asking question

2011-09-21 Thread Jerry Schwartz
I should have mentioned that there is an example for mysql in the documentation: http://www.php.net/manual/en/mysql.examples-basic.php. It is the simplest interface, but it is not object-oriented. Mysqli can be used either as procedures or as objects. The differences between mysql, mysqli, and

Stored Procedure Question

2011-09-21 Thread Brandon Phelps
Hello all, I would like to create a stored procedure that does the following: 1. Accepts 4 values as parameters 2. SELECTS 1 record (LIMIT 1) from a table where the 4 parameters match fields in that table a. If a record was returned then UPDATE the table b. If a record was not

Re: Stored Procedure Question

2011-09-21 Thread Derek Downey
SELECT id INTO @row_id FROM myTable WHERE blah blah LIMIT 1; Source http://dev.mysql.com/doc/refman/5.5/en/select-into-statement.html On Sep 21, 2011, at 2:23 PM, Brandon Phelps wrote: Hello all, I would like to create a stored procedure that does the following: 1. Accepts 4 values as

Re: Stored Procedure Question [SOLVED]

2011-09-21 Thread Brandon Phelps
Ah ha! Thanks Derek. I thought INTO was used strictly for inserting the selected records into another table. Much appreciated. On 09/21/2011 02:34 PM, Derek Downey wrote: SELECT id INTO @row_id FROM myTable WHEREblah blah LIMIT 1; Source

Re: table design question

2011-09-21 Thread Jan Steinman
From: Richard Reina gatorre...@gmail.com I want to create a US geography database. So far I have categories such as state nick names (some states have more than one), state mottos (text 25 to 150 characters), state name origins (100-300 characters), state trivial facts, entry into union.

Re: Can I Develop using Community Edition and Deploy onto Enterprise Edition??

2011-09-21 Thread Prabhat Kumar
you don't need enterprise for the development environment, you can develop in community version and deploy in enterprise version. but make sure release version should be same for both. On Wed, Sep 21, 2011 at 7:06 AM, Alastair Armstrong alasta...@voxorion.co.za wrote: Hi Please I need some

Re: Can I Develop using Community Edition and Deploy onto Enterprise Edition??

2011-09-21 Thread John Daisley
Partitioning is available in the community edition and has been for a while now. Support is the only real difference and since Oracle took over the support available in the community is usually faster and better than you get from Oracle. John On Wed, 2011-09-21 at 16:23 +0200, Claudio Nanni

Slower performance with LOCK TABLES

2011-09-21 Thread Hank
According to everything I've read, using LOCK TABLES...WRITE for updates, inserts and deletes should improve performance of mysql server, but I think I've been seeing the opposite effect. I've been doing quite a bit of testing on a 64bit install of CentOS 5.5 installed as a guest OS on a VMWare

Re: Slower performance with LOCK TABLES

2011-09-21 Thread Antony T Curtis
LOCK TABLES...WRITE is very likely to reduce performance if you are using a transactional storage engine, such as InnoDB/XtraDB or PBXT. The reason is that only one connection is holding the write lock and no other concurrent operation may occur on the table. LOCK TABLES is only really