Re: RES: [PHP-DB] input field validation

2008-05-16 Thread Jon L.
)) { alert('Please enter an integer for ...'); } } - Jon L. On Mon, May 12, 2008 at 11:47 AM, YVES SUCAET [EMAIL PROTECTED] wrote: Nope, it's not. The problem was formulated as Integer detection. not numerical detection in general. isNaN will return positive for e.g. floating point values

Re: [PHP-DB] Why $row is EMPTY

2008-04-29 Thread Jon L.
()); while ($row = mysql_fetch_array($result)) { echo Program is in While loop; $g_name = $row[gig]; $vname = $row[venue]; $genre = $row[genre]; echo(Gig Name: .$g_name); } - Jon L. On Tue, Apr 29, 2008 at 1:27 PM, Nasreen Laghari [EMAIL PROTECTED] wrote: Hi, Why my

Re: [PHP-DB] Dynamic Navigation with Limit

2008-04-03 Thread Jon L.
. - Jon L. On Thu, Apr 3, 2008 at 6:57 PM, Nasreen Laghari [EMAIL PROTECTED] wrote: Hi, I'm trying to put limit of data fetch as well as dynamic navigation. Below is the try which I did but something is going wrong as $screen value is not increasing so when I click on NEXt button it refreshes

Re: [PHP-DB] Problem when using SQL_CUR_USE_ODBC on connect

2008-04-01 Thread Jon L.
(This isn't a solution, per se...just a suggestion.) I don't know how they compare; I've never personally used the ODBC functions... But, you may give the MSSQL functions a try: http://php.net/mssql - Jon L. On Mon, Mar 31, 2008 at 3:27 PM, cfs [EMAIL PROTECTED] wrote: I'm using PHP

Re: [PHP-DB] resources and resource types

2008-03-31 Thread Jon L.
Here's the manual: http://php.net/language.types.resource Also: http://php.net/resource An entire list of all possible resource types and respective functions. Read up, man. - Jon L. On Mon, Mar 31, 2008 at 1:39 PM, Richard Dunne [EMAIL PROTECTED] wrote: When I did a search on resource(5

Re: [PHP-DB] resources and resource types

2008-03-31 Thread Jon L.
What I get for not refreshing. ;) Sorry, man. Didn't know you already gave the links. - Jon L. On Mon, Mar 31, 2008 at 1:56 PM, Andrés G. Montañez [EMAIL PROTECTED] wrote: The ID of the resource changes on every new resource. There is no co-relation between resources and resources id

Re: Re: [PHP-DB] numeric string to single digit array

2008-03-26 Thread Jon L.
; $nums = string_to_array(preg_replace(/[^0-9]+/, , $nums)); - Jon L. On Wed, Mar 26, 2008 at 1:35 PM, Richard Dunne [EMAIL PROTECTED] wrote: Using this extract from http://ie.php.net/manual/en/control-structures.foreach.php Amaroq 09-Mar-2008 06:40 Even if an array has only one value

Re: [PHP-DB] Re:Multiple values in SELECT query

2008-03-10 Thread Jon L.
it, as Matt suggested, using IN: WHERE variable IN (1, 2) Did that help any? - Jon L. On Mon, Mar 10, 2008 at 3:40 PM, Neil Smith [MVP, Digital media] [EMAIL PROTECTED] wrote: At 19:34 09/03/2008, you wrote: From: Ron Piggott [EMAIL PROTECTED] Date: Sun, 09 Mar 2008 15:34:05 -0400 Message-Id

Re: [PHP-DB] Re:Multiple values in SELECT query

2008-03-10 Thread Jon L.
, if you use IN, the listing_type tests will already be grouped. WHERE name LIKE ABC AND listing_type IN (1, 2) - Jon L. On Mon, Mar 10, 2008 at 4:02 PM, Jon L. [EMAIL PROTECTED] wrote: Now I've spoon fed you Damn, Neil...you're a d-bag. Next time you go to offer help, it may assist you

Re: [PHP-DB] Re:Multiple values in SELECT query

2008-03-10 Thread Jon L.
[Correction] Change: Also, reversing the order should work (since grouping is left-to-right): To: Also, reversing the order should work (since AND/OR/etc. are read left-to-right): - Jon L. On Mon, Mar 10, 2008 at 4:18 PM, Jon L. [EMAIL PROTECTED] wrote: As much as I hate admitting

Re: [PHP-DB] mysql_connect() Help

2008-03-08 Thread Jon L.
should check out the following page on adding users: http://dev.mysql.com/doc/refman/5.0/en/adding-users.html And read up on the following commands: CREATE USER: http://dev.mysql.com/doc/refman/5.0/en/create-user.html GRANT: http://dev.mysql.com/doc/refman/5.0/en/grant.html - Jon L. On Sat, Mar 8

Re: [PHP-DB] mysql_connect() Help

2008-03-08 Thread Jon L.
` Status: b:1; (1) Error : '' (0) Closing connection Status: b:1; (1) Error : '' () - Jon L. On Sat, Mar 8, 2008 at 5:53 PM, Manysh [EMAIL PROTECTED] wrote: Thanks for your input, Jon. Few more observations... Yes, I have PHP+Apache+MySQL installed for private use

Re: [PHP-DB] Help with JOIN query

2008-03-06 Thread Jon L.
You can try adding a quick test to the ON statement... SELECT * FROM TableA INNER JOIN TableB ON TableA.record_id = TableB.record_id AND TableB.timestamp = MAX(TableB.timestamp) Now, I haven't tested it. I can only say the theory of it is accurate. - Jon L. On Thu, Mar 6, 2008 at 12:46

[PHP-DB] Sybase-CT and Sybase SDK 12.5.0

2006-12-18 Thread Jon Adams
Does anyone has any detailed installation tips? I am on Solaris 10, using the /usr/sfw/bin/gcc (3.4.3) I am getting link errors against the php-cli disabling the php-cli, the link errors come against the apache binaries, all of the sybase stuff is undefined Help!

Re: [PHP-DB] pg_insert tyro question

2005-08-23 Thread Jon Crump
this project, however educational it has been), You seem to be using sanity check in a technical sense. What exactly would that be, when it's at home, and what would it look like? Thanks all for the good advice! Jon On Aug 22, 2005, at 4:22 PM, mike burnard wrote: I certainly agree

[PHP-DB] pg_insert tyro question

2005-08-22 Thread Jon Crump
[addentry] = Add Entry from the submit button. Is that what's screwing it up? Any clues would be much appreciated. Jon -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] pg_insert tyro question

2005-08-22 Thread Jon Crump
list to ensure the data elements are placed into the correct columns Bastien I'm not sure what any of this means, but it didn't turn out to be necessary. Jon -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] pg_connect gets fatal error

2005-08-14 Thread Jon Crump
? Apologies if these questions are naive, but I am a rank tyro in these matters. Jon -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] pg_connect gets fatal error

2005-08-13 Thread Jon Crump
, but not answered. Any help for a tyro? Jon -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] password in md5 to connect to mysql instead of clear password

2005-02-25 Thread Jon-Eirik Pettersen
On Thu, 24 Feb 2005 02:37:01 -0800 (PST), Gael Lams [EMAIL PROTECTED] wrote: Hi all I use the classic following rows to connect to a mysql database. I always put $passsword in clear in the php connection file and I wonder whether there is a way to have it in md5 so that someone reading the

Re: [PHP-DB] INNO tables - will I have problems?

2004-10-13 Thread jon
To quote the Mighty Gerard Samuel [EMAIL PROTECTED]: Julian Madle wrote: I obviously have no control of which ISP and end-user may choose, although our product will specify that Linux, PHP4, and MySQL4 (or higher) are installed. The manual says that these are built-in on version 4.0 and

[PHP-DB] DB Connectivity Problem

2004-08-25 Thread Jon Foreman
. Thanks, Jon -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] selecting a constant or label in php

2003-12-03 Thread Jon Davis
Sorry for another newbie question, I'm learning. In Sybase I can do: select COMM_REGIONID , count(1) from COMM_REGIONID where PHYSICAL_ID is null select COMM_TKGRP , count(1) from COMM_TKGRP where PHYSICAL_ID is null I get parsing errors when putting it in this: $result = sybase_query(select

RE: [PHP-DB] selecting a constant or label in php

2003-12-03 Thread Jon Davis
. From: Jon Davis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP-DB] selecting a constant or label in php Date: Wed, 03 Dec 2003 09:39:33 -0600 Sorry for another newbie question, I'm learning. In Sybase I can do: select COMM_REGIONID , count(1) from COMM_REGIONID where PHYSICAL_ID is null

[PHP-DB] Oracle to Sybase PHP question

2003-11-25 Thread Jon Davis
Hello PHP gurus, I have just started to learn PHP, since I have inherited some previous PHP scripts that I must maintain. My question is this: I have to write a script that gets data from a view in Oracle. I then need to insert that data into a Sybase database. Can this be done? This will

Re: [PHP-DB] Using two colomns of mysql data as key/value pairs in arrays

2003-10-20 Thread Jon Kriek
the mysql_fetch_array() function; don't assign what you won't use. -- Jon Kriek http://phpfreaks.com Ignatius Reilly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] mysql_fetch_array( $result ) _ - Original Message - From: Devon [EMAIL PROTECTED] To: [EMAIL PROTECTED

Re: [PHP-DB] Using two colomns of mysql data as key/value pairs in arrays

2003-10-20 Thread Jon Kriek
Chris, we think along the same lines - posted a similar concern seconds before you. -- Jon Kriek http://phpfreaks.com Chris Boget [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] mysql_fetch_array( $result ) Actually, for an associative array (which the OP had made reference

Re: [PHP-DB] Using two colomns of mysql data as key/value pairs in arrays

2003-10-20 Thread Jon Kriek
(1) additional overhead (2) bad script-logic -- Jon Kriek http://phpfreaks.com Richard Hutchins [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Chris (Jon Kriek too, I guess), Curious as to why you say you avoid mysql_fetch_array() like the plague. I use it frequently and am

Re: [PHP-DB] Using two colomns of mysql data as key/value pairs in arrays

2003-10-20 Thread Jon Kriek
Easier is not always right or good script-logic Would it be easier for you to type: mysql_fetch_array($result, MYSQL_ASSOC) { It's easier for me to just always use mysql_fetch_array instead of figuring out whether I want mysql_fetch_row, mysql_fetch_assoc, or both. David T-G [EMAIL PROTECTED]

Re: [PHP-DB] Using two colomns of mysql data as key/value pairs in arrays

2003-10-20 Thread Jon Kriek
Trust me, I was not shooting anyone down, I would rather quit programming then do that - seriously. -- Jon Kriek http://phpfreaks.com David T-G [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP-DB] Using two colomns of mysql data as key/value pairs in arrays

2003-10-20 Thread Jon Kriek
That is your personal opinion to which you are entitled to, but again shooting someone down is just not the case in this situation. No, but IMNSHO he shot a rather rude hole in Ignatius. David T-G [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -- PHP Database Mailing List

Re: [PHP-DB] Using two colomns of mysql data as key/value pairs in arrays

2003-10-20 Thread Jon Kriek
30% increase is more than I was expecting, but nonetheless I was correct. -- Jon Kriek http://phpfreaks.com Peter Beckman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mysql_fetch_assoc() is faster -- use it. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP-DB] Using two colomns of mysql data as key/value pairs in arrays

2003-10-20 Thread Jon Kriek
Perhaps if you would stop sending your posts at attachments ;) Dude, your quoting *really* needs some help -- Jon Kriek http://phpfreaks.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: OCIBindByName Help Needed

2003-10-20 Thread Jon Kriek
ORA-01036: illegal variable name/number Make sure that the variable being bound is in the sql statement. -- Jon Kriek http://phpfreaks.com Roger Spears [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I've been working on this all day. I'm trying to insert some text

Re: [PHP-DB] Re: [PHP] $_POST in MySQL query issue...

2003-10-17 Thread Jon Kriek
less readable I disagree, but that is ok, that is allowed =) -- Jon Kriek http://phpfreaks.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: [PHP] $_POST in MySQL query issue...

2003-10-16 Thread Jon Kriek
I concur, assign the superglobal array to a variable ... $Name = strip_slashes($_POST['elementName']); $sql=INSERT INTO $table SET Name='$Name']; ... and then use that opportunity to run additional checks on the content. -- Jon Kriek http://phpfreaks.com -- PHP Database Mailing List (http

[PHP-DB] Re: [PHP] $_POST in MySQL query issue...

2003-10-16 Thread Jon Kriek
Actually, I meant to suggest addslashes() and mysql_espace_string() -- Jon Kriek http://phpfreaks.com Jon Kriek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I concur, assign the superglobal array to a variable ... $Name = strip_slashes($_POST['elementName']); $sql=INSERT

[PHP-DB] Re: looping code

2003-08-24 Thread Jon Drukman
[EMAIL PROTECTED] wrote: Hello all I have a helpdesk application that was written in php and I would like to create a script that will e-mail the systems staff how many open helpdesk tickets they have. There are 10 users and I can wrtie a script no problem to do a count and then e-mail that

[PHP-DB] Re: Don't know why query works this way

2003-08-24 Thread Jon Drukman
Aaron Wolski wrote: Here's some functions I use in my development which save on connect and query calls for me. aaron: i do more or less the same thing. allow me to criticize your functions in one very important respect: you do not check the return value of your calls! i would suggest that

[PHP-DB] Re: Not sure where this messages goes, but I have a question

2003-08-24 Thread Jon Drukman
fred jones wrote: Okay the weird part is that everything seems kosher, (no errors, the output from the select statement prints out the data I entered), the only problem being when I look in the database (via a webadmin or bringing up the data in another form) it's not there! In another words I'm

[PHP-DB] re: PHP4

2003-06-21 Thread Jon Miller
Does anyone know if PHP 4 on the Red Hat distro is only available on RHL8 or better? Thanks Jon L. Miller, MCNE, CNS Director/Sr Systems Consultant MMT Networks Pty Ltd http://www.mmtnetworks.com.au I don't know the key to success, but the key to failure is trying to please everybody. -Bill

[PHP-DB] re: Lastest versionof PHP

2003-06-19 Thread Jon Miller
of this also. Jon L. Miller, MCNE, CNS Director/Sr Systems Consultant MMT Networks Pty Ltd http://www.mmtnetworks.com.au I don't know the key to success, but the key to failure is trying to please everybody. -Bill Cosby -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP-DB] re: PHP and MySQL

2003-06-14 Thread Jon Miller
-4.2.2-8.0.5 libpng12.so.0 is needed by php-4.2.2-8.0.5 libstdc++.so.5 is needed by php-4.2.2-8.0.5 All of these are available in RHL8.0 Thanks Jon L. Miller, MCNE, CNS Director/Sr Systems Consultant MMT Networks Pty Ltd http://www.mmtnetworks.com.au I don't know the key

[PHP-DB] tutorials

2003-01-21 Thread Jon Miller
Looking for a php/mysql tutorial on how to handle mathamatical functions. -- Jon Miller [EMAIL PROTECTED] MMT Networks Pty Ltd -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Problem with declarations

2003-01-17 Thread Jon Miller
=HmPhne value= size=32/td /tr tr valign=baseline td nowrap align=rightnbsp;/td tdinput type=submit value=Insert Record/td /tr /table input type=hidden name=CustID value= input type=hidden name=MM_insert value=form1 /form pnbsp;/p /body /html Jon L. Miller, MCNE

[PHP-DB] Fatal error message

2003-01-16 Thread Jon Miller
as for as creating the form, just when try to run it I get the message. I should mentioned I just copied the file created to the linux location where the files are supposed to be. Thanks Jon L. Miller, MCNE, CNS Director/Sr Systems Consultant MMT Networks Pty Ltd http://www.mmtnetworks.com.au I don't know

[PHP-DB] IIS5 - php4 ISAPI

2002-05-14 Thread jon-david schlough
not the schweeet low level access that ISAPI provides, but I don't think the ISAPI php lib is stable enough yet to use in critical apps - most have better running php as CGI. just my 2 sense of it. cheers, jon-david

[PHP-DB] Newbie? - help inserting into firebird1.0

2002-03-26 Thread jon-david schlough
RingTFM, but any help would be greatly appreciated. TIA! jon-david -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Re: Newbie? - help inserting into firebird1.0

2002-03-26 Thread jon-david schlough
enough to discover. currently RingTFM... as per usual, all help is greatly appreciated. cheers, jon-david -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lutz Bruckner Sent: Tuesday, March 26, 2002 1:34 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Re: Newbie

Re: [PHP-DB] 1 query or 2 queries

2002-01-18 Thread Jon Farmer
Yes, Do a join on the two tables and only pull the book data from the first record. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: George Pitcher [EMAIL

[PHP-DB] Re: [PHP] Connecting from PHP to MySQL on another Server

2002-01-17 Thread Jon Farmer
to MSSQL Server? See above answer. Also you have any TCP/IP overhead to add on. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP Database Mailing List (http://www.php.net

Re: [PHP-DB] Problem with mail function

2002-01-15 Thread Jon Farmer
Hi Faye Maybe I shouldn't be trying to send that many emails at a time. I am on apache using mysql and php... -- put the line set_time_limit(0); at the top of your PHP script Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key

Re: [PHP-DB] Run php page automatically

2001-12-21 Thread Jon Farmer
it's better to do something like 0,10,20,30,40,50 * * * * /usr/bin/php -q /home/you/yourscript.php /dev/null or even */10 * * * * /home/you/yourscript.php /dev/null with the first line of you php script being #!/path/to/php -q -- PHP Database Mailing List (http://www.php.net/)

Re: [PHP-DB] Database query

2001-12-18 Thread Jon Farmer
Sorry the second elseif statement should have ended with : not ; -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Jon Farmer [EMAIL PROTECTED] To: [EMAIL PROTECTED

Re: [PHP-DB] compile with pgsql support

2001-12-11 Thread Jon Niola
You want to use --with-pgsql=/usr/local/pgsql - but change this path to point to where you installed PostgreSQL. If you compiled pgsql yourself and didn't specify a path, the path I gave you there is the default I believe and should work. --Jon At 07:16 AM 12/11/2001 -0500, Michael Hanna

Re: [PHP-DB] Image Sizes

2001-12-08 Thread Jon Farmer
size. You cant do this with PHP. You need to use a client side script (javascript) to determine the screen res and then pass that pack to PHP either through the query string or a form post. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP

Re: [PHP-DB] MySQL table recovery.

2001-12-06 Thread Jon Farmer
if it's forget it, no way... If this was a transaction then you can rollback if not then forget it Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - -- PHP

Re: [PHP-DB] query to check valid emails

2001-11-28 Thread Jon Farmer
No this will not do what the original poster requested it will be something like the following select * from table where email regexp ^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$; Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob

Re: [PHP-DB] JOIN Very SLOW...

2001-11-28 Thread Jon Farmer
I would suggest changing COUNT(*) to COUNT(properties.PropertyID) Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Martin E. Koss [EMAIL PROTECTED

Re: [PHP-DB] Flushing PHP output

2001-11-23 Thread Jon Farmer
javascript command to update the header telling the user what domain it is checking at the moment. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP Database Mailing List (http

Re: [PHP-DB] Flushing PHP output

2001-11-23 Thread Jon Farmer
. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP-DB] php/mysql error

2001-11-20 Thread jon
please review my script I have already had it said that the script is fine, please check. IF it is then I have a set up proiblem which I would also like help to solve. BUT mysql outside of apache works fine. I started with an already set up apache so I don't know if mysql was installed in

RE: [PHP-DB] Excel to Mysql

2001-11-20 Thread Jon Farmer
Is it possible to migrate data into a table in MS Excel to MySQL? Export to csv from excel and the mysqlimport command is your friend Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key

Re: [PHP-DB] Need help with duplicate entries

2001-10-30 Thread Jon Farmer
Use a Select Distinct. query. See www.mysql.com/doc for more info -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email to [EMAIL PROTECTED] - Original Message - From: Chris Payne To: [EMAIL PROTECTED

Re: [PHP-DB] Creating a file using php

2001-10-23 Thread Jon Farmer
- Original Message - Polite: Well its easier to post and get a reply rather then me going and serching fo it.;) Easier for who? Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email to [EMAIL

Re: [PHP-DB] Re: log out

2001-09-19 Thread Jon Farmer
You need to capitalize the 'L' in Location (HTTP headers are case-sensitive). Wrong... you can use header(location: index.php); just fine... Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email to [EMAIL

[PHP-DB] moving uploaded files

2001-09-13 Thread Jon Mormino
to a move_uploaded_file(path1,path2); command which is fine...for uploading. But, once a file is uploaded I can't figure out a way to move or delete it as it is no longer considered an uploaded file and hence move_uploaded_file() fails. Does anyone know a way around this? Thanks. -Jon Mormino -- PHP

RE: [PHP-DB] query question

2001-08-28 Thread Jon Farmer
The only way i could think of doing this is to loop through $result and assign the rows you want to keep to a new array. -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to [EMAIL PROTECTED

RE: [PHP-DB] query question

2001-08-28 Thread Jon Farmer
See http://www.php.net/manual/en/ref.array.php You will need a multi-dimensional array if your resultset has more than one field Regards Jon -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to [EMAIL

[PHP-DB] Programmer or programming help needed

2001-08-21 Thread Jon Wilhelm
Hello, We desperately need someone who is knowledgeable in PHP 3 and 4, and MySQL databases for a quick job that might take 1-2 hours. We have a small site that needs its code fixed. The code is PHP based and is on the Gamespy servers. The code is already done for the most part, but just

RE: [PHP-DB] Re: Show abbreviated article

2001-08-13 Thread Jon Farmer
NO! This will return the first 20 characters from the field not the first 20 words. To do that you need to use a regexp in the SQL or explode the result in php and use the first 20 elements of the array! Regards Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952

RE: [PHP-DB] mkdir permission

2001-08-10 Thread Jon Farmer
in the ini file that allows permission for this? No. It's because the user account that the webserver is running under has no permissions to create a new directory there. You need to chown or chmod to correct this. Regards Jon Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel

Re: [PHP-DB] Submit forms

2001-08-10 Thread Jon Yaggie
Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code as i know only IE supports using return to submit. I have had this problem before and never solved

[PHP-DB] Problems with MySQL inserts

2001-08-07 Thread Jon Farmer
the script in case you want to check it out.. Any ideas anyone? Thanks Jon Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP-DB] checking for results return from mysql

2001-08-05 Thread Jon Yaggie
putting a few other mysql function in the conditional. maybe i am on the wrong path . . would one of the cariable functions like isset() or soemthing check this? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs

Fw: [PHP-DB] checking for results return from mysql

2001-08-05 Thread Jon Yaggie
if(mysql_fetch_array($result)) { $mysql_data_seek($result, 0); while . . . . . - Original Message - From: olinux [EMAIL PROTECTED] To: Jon Yaggie [EMAIL PROTECTED]; php-db [EMAIL PROTECTED] Sent: Monday, August 06, 2001 12:19 AM Subject: RE: [PHP-DB] checking for results

[PHP-DB] Re: mysql -- Commercial DBs, When will I need to upgrade?

2001-04-23 Thread Jon Valvatne
are the implications of switching our server to a win32-based server? Will we have problems with PHP on windows when all of our scripts were programmed for unix? MS-SQL is not an option. Stay with a UNIX-based system. snip Hope this helps, Jon Valvatne Viventus AS -- PHP Database Mailing List (http

[PHP-DB] Re: PostgreSQL versus MySQL

2001-04-07 Thread Jon Valvatne
ng forward to is query caching, which is a great feature for web applications. Jon Valvatne Can someone outline the differences between the two? I am partial to MySQL from experience but want to get a good view of why one is better than the other. Also, I've heard that you will lose data

[PHP-DB] RE: [PHP] Best way to check if a query succeeded

2001-03-29 Thread Jon Haworth
What about: $sql = "SELECT something FROM table"; $result = mysql_query($sql) or die ("Query failed!"); do_something(); //the query has succeeded if we get to this line HTH Jon -Original Message- From: Jordan Elver [mailto:[EMAIL PROTECTED]] Sent: 29 March 2001 12

[PHP-DB] Re: How to print last row in an array using WHILE?

2001-03-27 Thread Jon Valvatne
loop, the first row disappears. When the while loop starts, the internal pointer points to the second row. So just remove the first mysql_fetch_row() call, and it should work fine. Jon Valvatne On Mon, 26 Mar 2001, Bob Stone wrote: Dear PHP Helpers, I have an array created by an mysql

[PHP-DB] SQL Mysql - Informix

2001-03-16 Thread Jon V
Any idea how to extract table names for a database in informix - like the sql for mysql SHOW TABLES; ?? J -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP-DB] Text Searches on MySQL

2001-03-15 Thread Jon Valvatne
easier to implement than the solution described below. Search for FULLTEXT in the MySQL manual. Jon Valvatne On Wed, 14 Mar 2001, Ron Brogden wrote: At 05:05 PM 3/14/2001 +, you wrote: I'm putting together a db with articles in it. Would it be better to have two tables with the main text

Re: [PHP-DB] Php version of mysqladmin

2001-03-12 Thread Jon Niola
http://www.phpwizard.net/ At 03:51 PM 3/12/2001 -0800, Hector Banda wrote: Hi all, I saw a posting Last week about somebody talking about an interface to administer mysql written in php. Can somebody point me to the link? Thanks,

RE: [PHP-DB] Apache configuration on Win32

2001-01-15 Thread Jon Haworth
From my Apache config: LoadModule php4_module d:/php/sapi/php4apache.dll AddType application/x-httpd-php .php .php4 I have 1.3.14 running on NT4, but this should work for you too. Change the path in the first line to point to wherever your dll is. HTH Jon | -Original Message- | From