Re: [PHP-DB] PHP ODBC odbc_fetch_array returns uninitialized values for Booleans

2015-06-29 Thread Bastien Koert
Is it a truly a three state field (true, false, null) or just T/F? Perhaps a default value for the field might be better? On Mon, Jun 29, 2015 at 11:42 AM Bruce Bailey wrote: > *Description* > > The PHP function odbc_fetch_array returns uninitialized values for > PostgreSQL boolean values. On o

Re: [PHP-DB] Removing slashes from the database

2015-06-04 Thread Bastien Koert
Ron, If this is a display issue, have you tried running stripslashes($outputstring) on the output from the database? That is the usual way to handle it Bastien On Thu, Jun 4, 2015 at 7:29 AM Ron Piggott wrote: > > On 03/06/15 09:37, Aziz Saleh wrote: > > On Wed, Jun 3, 2015 at 12:25 AM, Ron Pi

Re: [PHP-DB] Re: [PHP-WIN] Need Help with 2 MYSQL Table

2015-05-02 Thread Bastien Koert
Combine them in SQL and loop through the dataset select c.*, cd.* from customers c inner join customer_details cd on c.id = cd.customer_id [where clause as needed] loop thru the recordset from that query just as you would with a query from a single table and link the id to the edit page while (

Re: [PHP-DB] Code Security

2015-03-09 Thread Bastien Koert
; > PHP code. > > > > On Fri, Feb 13, 2015 at 12:03 AM, Ethan > Rosenberg > > > > > <mailto:erosenberg@ <mailto:erosenberg@>__ > hygeiabio__medical.com > > <htt

Re: [PHP-DB] Lost data after space in PHP variables

2015-02-18 Thread Bastien Koert
Generally input names shouldn't have spaces, use underscores if needed On Tue Feb 17 2015 at 4:34:55 PM rahul bhola wrote: > Can you post some code snippet here > > cheers > Rahul >

Re: [PHP-DB] Code Security

2015-02-06 Thread Bastien Koert
5 at 11:24 PM, Ethan Rosenberg < erosenb...@hygeiabiomedical.com> wrote: > On 02/05/2015 11:04 AM, Bastien Koert wrote: > >> I'm with the two Richard's on this, those users shouldn't have telnet >> access to the host server at all. Users should be using the brow

Re: [PHP-DB] Code Security

2015-02-05 Thread Bastien Koert
I'm with the two Richard's on this, those users shouldn't have telnet access to the host server at all. Users should be using the browser to access your site. Other than that, the most important thing you can do is to regularly back up your code and database to another location so that if somethin

Re: [PHP-DB] Re: [PHP] SESSIONS - SOLVED

2015-01-02 Thread Bastien Koert
ables to be transferred. > > From another post to the UNIX list, this works. > > > <!-- > window.open("HandleFood.php","_self") > //-->\ > > > and the SESSION variables transfer. > > Sorry for bothering you with such trivia. >

Re: [PHP-DB] Popular website search engines

2014-03-14 Thread Bastien Koert
wordpress has a built in search as well. It depends on what you what you are wanting to do On Thu, Mar 13, 2014 at 2:46 PM, Matt Pelmear wrote: > Besides the usual suspects that are 3rd party, a common solution I've seen > is Solr/Lucene: > https://lucene.apache.org/solr/ > > > -Matt > > > On 0

Re: [PHP-DB] One query, different tables?

2013-08-09 Thread Bastien Koert
Why do you have to tables with products? Couldn't you have a type or category column and then have to only query one table? Bastien On Fri, Aug 9, 2013 at 11:52 AM, Niel Archer wrote: > > Hello. > > I am newbie in this and need som basic help. > > > > I have a form witch checkbox'es with diffe

[PHP-DB] Need some opinions on solution

2012-10-17 Thread Bastien Koert
Hi All, Below is a situation I ran into recently. To me, the decision made shows how to not solve a problem but merely compound the issue. Scenario: There is an app currently running on a highly loaded 4.11 MySQL db. Customers are complaining about the slow performance. The app has 3 important f

Re: [PHP-DB] Another PDO ?

2012-09-10 Thread Bastien Koert
On Mon, Sep 10, 2012 at 9:48 AM, Jim Giner wrote: > Reading up on the pdostatement class. Wondering what the intent of the > columnCount function is. I mean, aren't the number of columns in a result > known when you write the query? Granted, you might have some very complex > query that you may

Re: [PHP-DB] mysqli_connect ??

2012-09-07 Thread Bastien Koert
On Fri, Sep 7, 2012 at 10:54 AM, Jim Giner wrote: > Experimenting with prepared statements - trying out for the first time. > > I keep getting a fatal error on this statement: > > mysqli_connect(.) > > Message is: > Fatal error: Call to undefined function mysqli_connect() in > /home/albany/php

Re: [PHP-DB] I'm completely lost here

2012-08-24 Thread Bastien Koert
On Fri, Aug 24, 2012 at 8:34 PM, Gary Chambers wrote: > David, > >> The database gets updated with a record, but all the fields end up being >> empty in the db. Can anyone see what's out of whack here? I'd appreciate >> the help. http://pastebin.com/y8kcymnN > > There isn't much context to your r

Re: [PHP-DB] Re: PDO Mysql data truncation missing error

2012-08-21 Thread Bastien Koert
On Tue, Aug 21, 2012 at 4:44 PM, Matt Pelmear wrote: > Amit, > > Thanks for the suggestion. Unfortunately, even when I explicitly enable > E_WARNING or even E_ALL error reporting in php I still do not receive any > indication that data was truncated on insert. > > -Matt > > > On 08/21/2012 07:09 A

Re: [PHP-DB] Problem with mysql and php

2011-11-28 Thread Bastien Koert
On Mon, Nov 28, 2011 at 9:19 PM, Phil Dobbin wrote: > On 29/11/11 02:08, "Jason Pruim" wrote: > >>> PostgreSQL? >>> >>> ;-)... >> >> In all seriousness... Would it help or change it in anyway? :) >> >> I am free to use what I want (I believe) on this project... > > It's well worth looking into. P

Re: [PHP-DB] Exporting mySQL to Excel

2011-11-08 Thread Bastien Koert
On Tue, Nov 8, 2011 at 1:33 PM, Bastien Koert wrote: > On Tue, Nov 8, 2011 at 1:31 PM, Ron Piggott > wrote: >> What is the preferred method used to export mySQL to Excel within the >> context of PHP?  I have looked on Google and found a wide variety of >> options

Re: [PHP-DB] Exporting mySQL to Excel

2011-11-08 Thread Bastien Koert
On Tue, Nov 8, 2011 at 1:31 PM, Ron Piggott wrote: > What is the preferred method used to export mySQL to Excel within the context > of PHP?  I have looked on Google and found a wide variety of options.  Ron > > Ron Piggott > > > > www.TheVerseOfTheDay.info > phpmyadmin supports this easily --

Re: [PHP-DB] UPDATE query

2011-03-08 Thread Bastien Koert
On Tue, Mar 8, 2011 at 11:16 AM, Ron Piggott wrote: > > I am wondering if there is a way to do an UPDATE query where only some of the > text changes. > > The column I need to modify is named “toll_free” > What I need to search for is: 800- > I need it to replace it with is 1-800- > - BUT I don’t

Re: [PHP-DB] Leap Year

2011-01-31 Thread Bastien Koert
On Mon, Jan 31, 2011 at 8:06 AM, Ron Piggott wrote: > > Does mySQL have the ability to figure out if it is leap year?  If so, what is > the correct syntax for: > > AND `day` <> 366 "unless it is leap year" > Ron > > The Verse of the Day > “Encouragement from God’s Word” > http://www.TheVerseOfThe

Re: [PHP-DB] RSS Feed

2011-01-30 Thread Bastien Koert
On Sun, Jan 30, 2011 at 2:27 PM, Ron Piggott wrote: > > I have a question about the mySQL query below.  The purpose is to find the > last 15 days Bible reading for an RSS feed. > > In the table each day’s reading is assigned the day # in the year (between 1 > and 365).  But if the query is ran o

Re: [PHP-DB] Connecting to MySQL

2011-01-14 Thread Bastien Koert
On Fri, Jan 14, 2011 at 2:15 PM, Cristiano Di Buduo wrote: > > I just downloaded both PHP and MySQL, both newest stable versions, both are > working well, but when i try{} to : > >     $dbh = new PDO('mysql:host=localhost;dbname=test', "user", "passwd"); > > i catch{} a "could not find driver" er

Re: [PHP-DB] combining the results of mysql query and finding the unique tuples in php

2011-01-07 Thread Bastien Koert
On Fri, Jan 7, 2011 at 9:46 AM, Toby Hart Dyke wrote: > On 1/7/2011 12:10 AM, Fahim M wrote: >> >> Hi >> I have a certain number of mysql tables(relation), say 50, some of them >> having 5 fields and some with 6 fields. a particular search item may be >> found in multiple tables with multiple rows

Re: [PHP-DB] NULL to 0 result

2010-12-14 Thread Bastien Koert
On Tue, Dec 14, 2010 at 4:53 PM, Ron Piggott wrote: > > What change is needed to this query so if “currently_in_rss” is NULL it will > be assigned a value of 0 > > SELECT `reference`, COUNT(`reference`) AS currently_in_rss FROM > `ministry_profiles` WHERE `rss_feed_include` = 1 GROUP BY `rss_fee

Re: [PHP-DB] Incorrect encoding when data read from a mysql database

2010-12-08 Thread Bastien Koert
On Fri, Dec 3, 2010 at 4:42 AM, Neil Jackson wrote: > Hi, > I am designing a website that requires storing data in 3 different languages, > English, Portuguese and Tetum. > > When I read the data from the database the accented characters are displayed > as a ? in Firefox and Opera, a square in IE

Re: [PHP-DB] query help

2010-11-17 Thread Bastien Koert
On Wed, Nov 17, 2010 at 8:51 AM, Vinay Kannan wrote: > Hello PHP Gurus, > > I need your help on an insert query. > > I wanted to know if there is way to insert an array of values into a DB. An > eg would explain this better : > > If I have 2 tables in a DB, 1) users has 3 columns 2) hobbies = 5 co

Re: [PHP-DB] Incrementing Primary Key

2010-10-28 Thread Bastien Koert
gt; Sent: Thursday, October 28, 2010 2:02 PM > To: Bastien Koert > Cc: Max E.K; php-db-lists.php.net; rquadl...@googlemail.com > Subject: Re: [PHP-DB] Incrementing Primary Key > > At 01:17 PM 10/28/2010, Bastien Koert wrote: >>On Thu, Oct 28, 2010 at 1:00 PM, Ethan Rosenberg > w

Re: [PHP-DB] Incrementing Primary Key

2010-10-28 Thread Bastien Koert
On Thu, Oct 28, 2010 at 1:00 PM, Ethan Rosenberg wrote: > At 03:40 AM 10/28/2010, Max E.K wrote: > >> From: "Ethan Rosenberg" >> To: rquadl...@googlemail.com, "Ethan Rosenberg" >> Cc: "php-db-lists.php.net" >> Sent: Thursday, October 28, 2010 4:55:34 AM GMT +01:00 Amsterdam / Berlin >> / Bern /

Re: [PHP-DB] Re: Need Help with database output

2010-08-30 Thread Bastien Koert
On Mon, Aug 30, 2010 at 12:14 PM, nagendra prasad wrote: > Hi All, > > Thanks for all your replies. I have found what I needed. I used Dreamweaver > to show the database in 3 different columns. However now I don't know how to > add a search engine to it. Right now its showing all the records in my

Re: [PHP-DB] Need Help in Mysql database

2010-06-30 Thread Bastien Koert
On Wed, Jun 30, 2010 at 10:52 AM, nagendra prasad wrote: > Hi All, > > I have a huge set of MP3 database. My problem is that when I try to search > in my database its getting very slow. I was wondering if I split that > database into 2 or more tables. Will this improve the speed of searching? Is >

Re: [PHP-DB] ie multi tab label share one cookie?

2010-06-09 Thread Bastien Koert
On Wed, Jun 9, 2010 at 10:28 PM, win.a wrote: > It's known  that the IE browser  share on session in the same APP > How about cookie ,the same ?or use its own? > Thanks in advacne! > > All you best > > What we are struggling for ? > The life or the life ? > > -- > PHP Data

Re: [PHP-DB] deleting rows with composite primary key

2010-05-18 Thread Bastien Koert
On Tue, May 18, 2010 at 2:51 PM, Niel Archer wrote: >> > Is there a different syntax to the mysql delete statement when the "WHERE" >> > clause points only to half of the primary key? >> > >> > The structure is as follows: >> > CREATE TABLE IF NOT EXISTS ` table1` ( >> >   `id1` int(10) unsigned N

Re: [PHP-DB] Extending my login - not sure how to add my code block in

2010-05-11 Thread Bastien Koert
On Tue, May 11, 2010 at 12:26 PM, Barry Zimmerman wrote: > I have a login script that is great and I want to expand on this but not > sure where to place my new code I have written, I have placed it where I > thought but keep getting errors for else and others when attempting to add > this. > > Th

Re: [PHP-DB] Building indexes

2010-03-19 Thread Bastien Koert
[snip] > Here's an example of a tough query (there are lots of Smiths!). > > SELECT voter1.County, voter1.`First Name`, voter1.`Middle Name`, > voter1.`Last Name`, voter1.`Residential ZipCode`,voter1.`House Number`, > voter1.`Mailing Address`, voter1.`Street Name`, voter1.`Residential City`, > vote

Re: [PHP-DB] Need a tool for mysql file

2010-02-25 Thread Bastien Koert
On Thu, Feb 25, 2010 at 9:52 AM, nagendra prasad wrote: > Hi All, > > I have a mysql database file of around 1 GB in size. Is their any tool which > which I can see all the database without uploading it on phpmyadmin on > localhost. I have tried to upload it on localhost but it said the file size

Re: [PHP-DB] Login query

2010-02-18 Thread Bastien Koert
On Thu, Feb 18, 2010 at 4:40 PM, Ron Piggott wrote: > I am wondering what others do for a login query.  I think there could be > two results: correct e-mail & password; correct e-mail & wrong password > > So far my login query is: > > SELECT * FROM `member` WHERE `email` = '$my_email' AND `pass` L

Re: [PHP-DB] FW: Oracle Finalizes Acquisition of Sun

2010-01-28 Thread Bastien Koert
[snip] [/snip] PS We will now proceed to fire some 20,000 employees as they will no longer be needed. -- Bastien Cat, the other other white meat -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Role Based Access Control and Role Based Security

2010-01-25 Thread Bastien Koert
I developed an implementation that combines roles with fine grained access. Each role is given a set of permissions ( the current set is global to the app, the next will be per application) in it, I specify a db field ( varchar 255) that holds a binary permission scheme. I.E. 10001 etc

Re: [PHP-DB] Automatic logoff

2010-01-25 Thread Bastien Koert
On Mon, Jan 25, 2010 at 1:48 PM, listread wrote: > Has anyone considered a way to run a script or automatically access a php > page when a user leaves a site without logging off? > > The idea is to gracefully end that user's session. > > Thanks! > > -- > PHP Database Mailing List (http://www.php.n

Re: [PHP-DB] result set in php pagination

2010-01-23 Thread Bastien Koert
The easiest thing to do is either A) store the author name in a session for the duration of the searches B) add the name to the pagination url so that its passed along withe the page number On 1/23/10, Joe Keenan wrote: > I am using php and mysql. > > The problem which I am hoping someone can

Re: [PHP-DB] Redirect upon successful form submission

2009-12-15 Thread Bastien Koert
Christoph Rosse wrote: >> >> you could also validate the form in a seperate php file with no output and >> then redirect to the "error" and the "another page" ? >> >> >> Bastien Koert schrieb: >>> >>> On Tue, Dec 15, 2009 at 12

Re: [PHP-DB] Redirect upon successful form submission

2009-12-15 Thread Bastien Koert
On Tue, Dec 15, 2009 at 12:48 PM, Vinay Kannan wrote: > Hi, > > I have 2 pages on php, the first page has a small form to accept a > membership number from the user, which checks for membership number in the > DB, if the membership no does not exist, gives an error saying 'you are not > a member c

Re: [PHP-DB] Multiple MySQL schemas

2009-12-08 Thread Bastien Koert
On Tue, Dec 8, 2009 at 12:54 PM, Philip Thompson wrote: > Hi all. > > We are wanting to create an app that contains multiple clients. Each clients > has anywhere from 1 user to more than a hundred. We had the idea of > separating each client into its own database schema. This reduces the single

Re: [PHP-DB] Multiple instances of mysql_connect() in single PHP document.

2009-11-10 Thread Bastien Koert
On Tue, Nov 10, 2009 at 4:14 PM, Timothy Legg wrote: > > Hello, > > Is it wrong to have mysql_connect() called twice within a single PHP > document, such as this?  I have been running into some fairly annoying > query failures that commute when I change the order of these two blocks of > code.  I

Re: [PHP-DB] newbie: how to return one iteration *per unique date (DAY!)* in a timestamp column?

2009-08-02 Thread Bastien Koert
On Sun, Aug 2, 2009 at 11:13 PM, Govinda wrote: >> >> What does the resultset look like? > > I am getting every record in the table back my bad, i reversed the mysql and php date function formats try SELECT distinct( DATE_FORMAT( fieldname, '%Y-%m-%d' ) ) FROM table ORDER BY field DESC -- Ba

Re: [PHP-DB] Access a database on another domain

2009-08-02 Thread Bastien Koert
On Sun, Aug 2, 2009 at 10:15 PM, Chris wrote: > Neil Jackson wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hi, >> I host a number of running clubs websites. They are all hosted on >> different domains on a hosting service. >> >> They all share a common database table of fixtur

Re: [PHP-DB] newbie: how to return one iteration *per unique date (DAY!)* in a timestamp column?

2009-08-02 Thread Bastien Koert
On Sun, Aug 2, 2009 at 11:08 PM, Govinda wrote: >> On Sun, Aug 2, 2009 at 8:02 PM, Govinda >> wrote: You need to do this on the mysql side, not in php - php can't summarize the data before processing it, so you need to use something like the date() function in mysql on your

Re: [PHP-DB] newbie: how to return one iteration *per unique date (DAY!)* in a timestamp column?

2009-08-02 Thread Bastien Koert
On Sun, Aug 2, 2009 at 8:02 PM, Govinda wrote: >> >> You need to do this on the mysql side, not in php - php can't summarize >> the data before processing it, so you need to use something like the date() >> function in mysql on your timestamp column. >> >> >> http://dev.mysql.com/doc/refman/5.0/en/

Re: [PHP-DB] How to fix config mysql?

2009-07-23 Thread Bastien Koert
Sorry for top posting, a little flaw in the web version of gmail. Restart the web server to get the ini change to take effect bastien On Thursday, July 23, 2009, Ankur Singh wrote: > Please add mysql dll to you php extension directory > > 2009/7/23 yi wang : >> Hi, all! >> >> I have intalled ap

Re: [PHP-DB] general theory behind 'primary_key' & 'auto_increment' flags, and ON DUPLICATE KEY UPDATE ?

2009-07-15 Thread Bastien Koert
On Wed, Jul 15, 2009 at 4:40 PM, Govinda wrote: > > On Jul 15, 2009, at 7:37 AM, Bastien Koert wrote: > >> On Wed, Jul 15, 2009 at 9:21 AM, Govinda >> wrote: >>> >>> Reading docs..  I want to be sure of things...  have your verification of >>> my &g

Re: [PHP-DB] general theory behind 'primary_key' & 'auto_increment' flags, and ON DUPLICATE KEY UPDATE ?

2009-07-15 Thread Bastien Koert
On Wed, Jul 15, 2009 at 9:21 AM, Govinda wrote: > Reading docs..  I want to be sure of things...  have your verification of my > understanding(s)- > > Does setting a mysql db column (say "myPrimarykeyID") with the 'primary_key' > & 'auto_increment' flags totally negate the logic for ever having to

Re: [PHP-DB] Cant get Mysql stored procedure to work.

2009-07-13 Thread Bastien Koert
On Mon, Jul 13, 2009 at 1:33 PM, Patrick Moloney wrote: > Bastien Koert wrote: >> >> On Mon, Jul 13, 2009 at 11:52 AM, Patrick Moloney >> wrote: >>> >>> I've had no success trying to execute any stored procedure from php. >>> I'm just tryi

Re: [PHP-DB] Cant get Mysql stored procedure to work.

2009-07-13 Thread Bastien Koert
On Mon, Jul 13, 2009 at 11:52 AM, Patrick Moloney wrote: > I've had no success trying to execute any stored procedure from php. > I'm just trying to follow the example for multi-query in the php manual, and > have tried an example from Artfulsoftware.com. I have one input and one > output parameter

Re: [PHP-DB] mysql_insert_id() and JOIN

2009-07-13 Thread Bastien Koert
[snip] > Sorry my question... but why I must use JOIN if I can use SELECT * FROM > table1 AND table2 AND table3 WHERE table1.id=table2.id=table3 not? > thanks > > +                                                                          _ [/snip] select table1.field1, table1.field2, table2.field

Re: [PHP-DB] PHP- Mysql problem

2009-06-18 Thread Bastien Koert
On Thu, Jun 18, 2009 at 6:03 AM, NADARAJAH SIVASUTHAN NADARAJAH wrote: > > > > Dear all, > >        When I try to retrive data from two tables using JOIN OR INNER JOIN it > display error message > > given below; > > > > Warning: mysql_query() [function.mysql-query]: Access denied for user > 'ODBC

Re: [PHP-DB] PHP-Extension for Cego database

2009-06-18 Thread Bastien Koert
On Thu, Jun 18, 2009 at 2:00 AM, Bjoern Lemke wrote: > Hi folks, > > since I am providing an opensource dbms called cego > ( more information about cego on my home page www.lemke-it.com ), > I am interested in the integration of the database into PHP. > > Is there anyone out there who can support t

Re: [PHP-DB] MySQL - LIMIT 1 on primary KEY - makes sense?

2009-06-03 Thread Bastien Koert
2009/6/3 Martin Zvarík : > "SELECT * FROM xxx WHERE primary_id=123 LIMIT 1" > > Is it useless (LIMIT 1) ? > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > It doesn't do anything...you are already returning just the one row since th

Re: [PHP-DB] MySQL - LIMIT 1 on primary KEY - makes sense?

2009-06-03 Thread Bastien Koert
2009/6/3 Martin Zvarík : > "SELECT * FROM xxx WHERE primary_id=123 LIMIT 1" > > Is it useless (LIMIT 1) ? > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Bastien Cat, the other other white meat -- PHP Database Mailing List

Re: [PHP-DB] php and mysql image script

2009-05-28 Thread Bastien Koert
On Thu, May 28, 2009 at 4:19 PM, Wilson Osemeilu wrote: > I need a simple php mysql image upload script with display script too and > to make this easier the mysql database table to use > > > > STFW -- Bastien Cat, the other other white meat

Re: [PHP-DB] One table, multiple queries?

2009-05-22 Thread Bastien Koert
On Fri, May 22, 2009 at 4:24 PM, Dee Ayy wrote: > It sounds like you are wanting to "transpose" rows and columns. But > you used the terms convert and fields, so google may not be helping > you. > > I found this: > > http://forums.mysql.com/read.php?86,23026,25752#msg-25752 > > -- > PHP Database

Re: [PHP-DB] Paging

2009-05-13 Thread Bastien Koert
On Mon, May 11, 2009 at 9:07 PM, Joey Hendricks wrote: > Hi everybody, I have a paging question. I have a page where you can view a > persons 'profile'. And I have a list taken from the db of there books. I can > get all the books on one page but I can't figure out the WHERE from the get. > This i

Re: [PHP-DB] MySQL: did anyone start a transaction?

2009-05-11 Thread Bastien Koert
On Fri, May 8, 2009 at 6:23 PM, Bogdan Stancescu wrote: > Hello all, > > I asked this question on php-general last month > (http://marc.info/?t=12404923034&r=1&w=2), and received some answers > -- but I was directed to this list, so here. > > My question is: can I tell programatically whether

Re: [PHP-DB] Query stopping after 2 records?

2009-04-27 Thread Bastien Koert
On Mon, Apr 27, 2009 at 10:19 AM, Miller, Terion < tmil...@springfi.gannett.com> wrote: > I need help/advice figuring out why my query dies after 2 records. Here is > the query: > > // Build your INSERT statement here > > > $query = "INSERT into `warrants` (wid, name, age, warrant, bond,

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

2009-03-06 Thread Bastien Koert
On Fri, Mar 6, 2009 at 1:06 PM, Joao Gomes Madeira wrote: > Hi Sashi: > > You're incurring in this error because the headers for the page have > already been issued in the head section of your page. > When you issue the php header() function, it will generate an error. > > Anyway, you are storing

Re: [PHP-DB] re:looking for SQL documentation tool

2009-03-04 Thread Bastien Koert
On Wed, Mar 4, 2009 at 9:42 AM, Yves Sucaet wrote: > The professional version of SQLyog (http://www.sqlyog.com) has this > capability. It's not free though. > > If you're looking for a free tool, I think the standard out there is > DBDesigner: http://www.fabforce.net/dbdesigner4/ > > Alternativel

Re: [PHP-DB] re:looking for SQL documentation tool

2009-03-04 Thread Bastien Koert
On Wed, Mar 4, 2009 at 5:45 AM, mrfroasty wrote: > Hello guysis there any tool that can create data relation from sql > document?I have seen phpmyadmin, but still I am looking for other > software to see what they have to offer... > > Thanks > > -- > Extra details: > OSS:Gentoo Linux-2.6.

Re: [PHP-DB] Issue 45979: PHP code attached

2009-02-22 Thread Bastien Koert
On Sun, Feb 22, 2009 at 4:43 PM, Chris wrote: > > This is the page called >> ~~~ >> >> > #phpinfo(); # phpinfo displays the correct info. >> #exit; >> >> $sqldb= $_POST["sqldb"]; >> $sqluser = $_POST["sqluser"]; >> $sqlpass = $_POST["sqlpass"]; >> $sqlhost = $_POST["sq

Re: [PHP-DB] Cannot find mysqlnd.dll in Windows distribution

2009-02-21 Thread Bastien Koert
On Sat, Feb 21, 2009 at 8:44 AM, Heddon's Gate Hotel < ho...@heddonsgate.co.uk> wrote: > Hello, > > (I hope I am posting to the PHP databases mailing list. I have tried > getting automated help and contacting the list owner, but I just get weird > automated replies. If I am not going about this

Re: [PHP-DB] Re: SELECT query

2008-12-21 Thread Bastien Koert
On Sun, Dec 21, 2008 at 7:56 PM, Ron Piggott wrote: > > One more thing ... Bible is stored by verses, t is the text of the verse > > On Sun, 2008-12-21 at 19:52 -0500, Ron Piggott wrote: > > I am working on a web based Bible searching query. So far I am able to > > generate: > > > > SELECT * FRO

Re: [PHP-DB] Yet another Call to Undefined Function help request

2008-12-09 Thread Bastien Koert
On Tue, Dec 9, 2008 at 10:33 AM, Alex Moen <[EMAIL PROTECTED]> wrote: > OK, sounds good, what am I looking for? I don't see the module being > declared in my php.ini file on either of my servers. > > Alex > > Fortuno, Adam wrote: > >> Alex: >> >> It sounds like the MySQL extension module isn't lo

Re: [PHP-DB] re:database tables relations advice

2008-11-30 Thread Bastien Koert
On Fri, Nov 28, 2008 at 5:52 PM, Fergus Gibson <[EMAIL PROTECTED]> wrote: > On Thu, Nov 27, 2008 at 11:19 AM, Bastien Koert <[EMAIL PROTECTED]> wrote: > > 2. It is possible to use the application to handle the keys instead of > the > > database, it involves

Re: [PHP-DB] re:database tables relations advice

2008-11-27 Thread Bastien Koert
On Thu, Nov 27, 2008 at 1:36 PM, Fortuno, Adam <[EMAIL PROTECTED]>wrote: > Mr. Froasty, > > From your note, it sounds like you want to use foreign keys; as Daniel > pointed out. I think an example would be helpful here. The subject of > foreign keys is bigger than a bread box so I'll just touch on

Re: [PHP-DB] When does using multiple tables make sense?

2008-10-20 Thread Bastien Koert
On Mon, Oct 20, 2008 at 7:59 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Good morning everyone! > [snip][/snip] > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I would suggest breaking the client and contacts into two tables. It

Re: [PHP-DB] mysql_numrows

2008-10-14 Thread Bastien Koert
On Sun, Oct 12, 2008 at 5:54 PM, Chris <[EMAIL PROTECTED]> wrote: > Ron Piggott wrote: > >> When I do the following command: >> >> $number_of_entries=mysql_numrows($blog_activity_result); >> >> and there are no rows I get an error (Warning: mysql_numrows(): supplied >> argument is not a valid MySQ

Re: [PHP-DB] load page in another frame

2008-10-12 Thread Bastien Koert
On Sun, Oct 12, 2008 at 6:10 AM, Velen <[EMAIL PROTECTED]> wrote: > Hi > > I have 3 frames on my index page using frameset. I want to display another > content in the other frames when a user has logged in successfully. > > My code is like that: > > ## if user exists and have corresponding passwo

Re: [PHP-DB] Foreign Key Versus Table Index

2008-10-02 Thread Bastien Koert
On Thu, Oct 2, 2008 at 6:50 AM, Jack van Zanen <[EMAIL PROTECTED]> wrote: > I am not up to scratch with innodb, but in oracle > you would have a Primary key on both the id fields in the Car and person > table and a Foreign key on PersonId linking it to Id in the Person table. > > IN your select a

Fwd: [PHP-DB] query optimization

2008-09-28 Thread Bastien Koert
On Sun, Sep 28, 2008 at 6:28 PM, Chris <[EMAIL PROTECTED]> wrote: > Yves Sucaet wrote: > >> Hi Jack, >> >> I'm expecting less than 10 records in the resulting set. >> The BlockUnit table contains 337,253 records; the InteractionParts table >> contains 279,953 records. >> >> It takes currently 8.3

Re: [PHP-DB] re:php debugging skills

2008-09-26 Thread Bastien Koert
On Fri, Sep 26, 2008 at 11:22 AM, muhsin <[EMAIL PROTECTED]> wrote: > Could you guys share your development setup, like what kinds of software > (IDE's/Editors) you are using for developing php scripts? > It might sound silly but I am just curios, as I just got started in php > programming en i ha

Re: [PHP-DB] Building WHERE SQL clauses

2008-09-15 Thread Bastien Koert
On Mon, Sep 15, 2008 at 1:33 PM, Stephen Wellington < [EMAIL PROTECTED]> wrote: > You probably want something like this: > > SELECT * FROM chico as c, harpo as h WHERE c.operator = "Bill" OR > c.operator = > "Jessica" OR h.operator = "Bill" OR h.operator ="Jessica" > > However if those tables real

Re: [PHP-DB] $_SESSION issues - possible security hole?

2008-08-10 Thread Bastien Koert
On Sun, Aug 10, 2008 at 4:23 PM, Darron Butler <[EMAIL PROTECTED]> wrote: > Thanks for your thoughts. To answer your first question, I'm using > extract() > because this is a page where admins and super users can edit the > permissions > of others for the site. Therefore, I have to query the datab

Re: [PHP-DB] Date Translation in MySQL

2008-08-10 Thread Bastien Koert
On Tue, Aug 5, 2008 at 4:33 PM, Ben Miller <[EMAIL PROTECTED]>wrote: > Figured there had to be an easier way. Thank you so much. > > -Original Message- > From: Simcha Younger [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 05, 2008 2:48 PM > To: php-db@lists.php.net > Subject: RE: [PHP-

Re: [PHP-DB] Slow query

2008-07-23 Thread Bastien Koert
On Wed, Jul 23, 2008 at 4:48 AM, Chris <[EMAIL PROTECTED]> wrote: > Steven Macintyre wrote: > > Hi all, > > > > Below is the query we are getting a slow response on ... 2seconds ... > > with 4 records we were hoping to get it much quicker. > > > > Can someone advise if i can optimise this? > > >

Re: [PHP-DB] Apache crashes every time I call mysqli_fetch_assoc()

2008-07-09 Thread Bastien Koert
On Wed, Jul 9, 2008 at 1:32 PM, Bonger O <[EMAIL PROTECTED]> wrote: > Hi, > > I have set up an environment on my Vista laptop comprising of Apache 2.2, > MySQL Server 5.1 and Php 5.2.5. > > I'm using a simple php program that I found in a PHP/SQL book. The PHP > program queries a MySQL table and t

Re: [PHP-DB] upload file

2008-07-05 Thread Bastien Koert
On Sat, Jul 5, 2008 at 5:50 PM, Roberto Carlos García Luís < [EMAIL PROTECTED]> wrote: > Ron, > > You can use a Editor that have the service. > > For example Dreamweaver or create a link to a ftp server. > > > > El 05/07/2008, a las 10:52 a.m., Ron escribió: > > Is it possible to upload directly

Re: [PHP-DB] upload file

2008-07-05 Thread Bastien Koert
On Fri, Jul 4, 2008 at 11:35 PM, Ron <[EMAIL PROTECTED]> wrote: > Hi, > > I dont know if this question is allowed here: > > i have a web interface that let's user upload file, but i have 2 servers > and use dns round-robin. when a user uploads a file, it will only be > uploaded on one of the serv

Re: [PHP-DB] Create Search engine with multiple form fields

2008-06-29 Thread Bastien Koert
On Sun, Jun 29, 2008 at 11:07 AM, Nasreen Laghari <[EMAIL PROTECTED]> wrote: > Hi, > > I have an HTML form which has more then one fields. User can precise its > search using one or more input fields E.g GigName,Date, Genre,Venue. > The data is coming from 3 tables. Below Query brings one tables

Re: [PHP-DB] Recommended web developers

2008-06-24 Thread Bastien Koert
On Tue, Jun 24, 2008 at 11:00 AM, A. Joseph <[EMAIL PROTECTED]> wrote: > Which company in India or USA can you recommend to design a complex > website for my company. > > The site will be a social site, will include, Blog, Articles, Shops, > Music, Movie, Directory, Pre-paid card system, Culture a

Re: [PHP-DB] Searching shopping cart

2008-05-30 Thread Bastien Koert
On 5/30/08, Ron Piggott <[EMAIL PROTECTED]> wrote: > > > I don't understand what is going wrong: > > CREATE FULLTEXT INDEX > ON shopping_cart_product(product_name, product_description) > > gives me this error: > > #1064 - You have an error in your SQL syntax; check the manual that > corresponds

Re: [PHP-DB] Conditional INNER JOIN

2008-05-24 Thread Bastien Koert
erence = > shopping_cart_sales_shipping_address.reference > > On Sat, 2008-05-24 at 19:40 -0400, Bastien Koert wrote: > > > > > > On 5/24/08, Ron Piggott <[EMAIL PROTECTED]> wrote: > > Is it possible to do a conditional INNER JOIN

Re: [PHP-DB] Conditional INNER JOIN

2008-05-24 Thread Bastien Koert
On 5/24/08, Ron Piggott <[EMAIL PROTECTED]> wrote: > > Is it possible to do a conditional INNER JOIN ? > > So far I have > > SELECT * FROM ( shopping_cart_orders INNER JOIN > shopping_cart_sales_shipping_address ON > shopping_cart_orders.shipping_address_reference = > shopping_cart_sales_shipping_a

Re: [PHP-DB] Partial UPDATE execution? Perl DBI MySQL

2008-05-22 Thread Bastien Koert
On Thu, May 22, 2008 at 5:27 PM, Dee Ayy <[EMAIL PROTECTED]> wrote: > Has anyone ever seen a partial execution of an UPDATE statement? > > I'm using Perl DBI to update a table in MySQL. > > The strangest thing to me is that a varchar(35) field which holds a custom > date/time format was updated co

Re: [PHP-DB] Re: php and mssql on seperate servers

2008-04-24 Thread Bastien Koert
On Thu, Apr 24, 2008 at 2:54 PM, Peter Westergaard <[EMAIL PROTECTED]> wrote: > Rick Taylor wrote: > >> I'm new to PHP and having issues. We have seperate servers for them. We >> can use ODBC to test the connection and it works fine. However, when we try >> to run the site we get a message of *

RE: [PHP-DB] Case sensitive query

2008-03-06 Thread Bastien Koert
Hey Ron Sure can with the BINARY keyword http://dev.mysql.com/doc/refman/5.0/en/string-comparison-functions.html Bastien> From: [EMAIL PROTECTED]> To: php-db@lists.php.net> Date: Thu, 6 Mar 2008 22:45:09 -0500> Subject: [PHP-DB] Case sensitive query> > Is it possible to do a case sensiti

RE: [PHP-DB] Password Reset

2008-02-27 Thread Bastien Koert
generate a new password and email that to the user bastien > Date: Tue, 26 Feb 2008 22:52:01 -0800> From: [EMAIL PROTECTED]> To: > php-db@lists.php.net> Subject: [PHP-DB] Password Reset> > Hi,> > I have > encrypted password in database and I encrypted using MD5(). As it is a > one-way Hash so

RE: RES: [PHP-DB] INSERT query with Primary and foreign key

2008-02-26 Thread Bastien Koert
do you mean that you have a primary key on table a with an fk to table b? and on table b you have a primary key and an fk to table a? if so, you've created a circular referential integrity constraint. The table deadlocks since the values must exist in the other (tables a and b) table. There a

RE: [PHP-DB] pg_escape with copy

2008-02-26 Thread Bastien Koert
try using htmlentitites first to conver the ' to ' instead bastien > Date: Mon, 25 Feb 2008 21:46:17 -0500> From: [EMAIL PROTECTED]> To: > php-db@lists.php.net> Subject: [PHP-DB] pg_escape with copy> > I have data > that I'm running through pg_escape_sting in php and then adding> to stdin for

RE: [PHP-DB] independent session data for multiple browser windows

2008-02-15 Thread Bastien Koert
That just sounds like such recipe for disaster. What about running multiple divs with each data set in that 'window'? Then you could pass each datasets relevant ids along to keep thing separate... Another option could to create multiple [i]frames and do the same thing? Bastien> To: php-db@li

RE: [PHP-DB] About mysql_connect()

2008-02-06 Thread Bastien Koert
i use if (!($conn=mysql_connect($host, $username, $pwd))) {notify("error connecting to DB");die(); }else{ return $conn; } in a function bastien > Date: Wed, 6 Feb 2008 02:07:11 -0800> From: [EMAIL PROTECTED]> To: > php-db@lists.php.net> Subject: [PHP-DB] About m

RE: [PHP-DB] Formatting in Text Area

2008-02-01 Thread Bastien Koert
$text = nl2br($text); bastien > Date: Fri, 1 Feb 2008 08:07:17 -0500> From: [EMAIL PROTECTED]> To: > php-db@lists.php.net> Subject: [PHP-DB] Formatting in Text Area> > I have a > "customer description" text area field on my form which feeds through php to > FMP, and spits out a confirmation

[PHP-DB] RE: A little SQL help

2008-01-31 Thread Bastien Koert
After some playing and a little sleep This is the corrected query SELECT tour.event_start_date, tour.event_end_date, tour.event_name, CASE WHEN result IS NULL THEN 'N/A'ELSE resultEND FROM tourLEFT OUTER JOIN angler_results ON angler_results.tour_id = tour.record_idWHERE ( angler_results.an

  1   2   3   4   5   6   7   8   >