Re: [PHP] MySQL: Add Autoincrement Field?

2001-02-18 Thread Hrishi
On Saturday 17 February 2001 10:20, Jeff Oien wrote: >So if I want to delete >a record by title, I'll end up deleting all songs with >that title. just for the discussion, you can use a delete query like "delete from song_list where song_title='title' and song_book='book'" to delete only one re

Re: [PHP] MySQL COUNT Won't Work

2001-02-18 Thread David Robley
On Sat, 17 Feb 2001 04:27, Jeff Oien wrote: > Yes! That was it. Thank you very much. > Jeff Oien > > > Are you using 3.23.33? If so try removing the space between the > > COUNT and the open paren. It looks like there may be a bug in the > > latest release (seeing this problem on the mysql list f

RE: [PHP] Odd PHP/MySQL Question

2001-03-01 Thread Hoover, Josh
You could try something like this: SELECT year, count(studentID) FROM students GROUP BY year ...where studentID is the primary key column/field in your students table. Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Vi

Re: [PHP] Odd PHP/MySQL Question

2001-03-01 Thread Julian Wood
select count(*), year from students group by year; on 3/1/01 12:07 PM, Kath at [EMAIL PROTECTED] wrote: > I have a user database where a year has to be put in. > > Now, I want to compile a list of each different year and how many users are in > that year. > > Is there a way to do this beyond

Re: [PHP] MySQL Create Table Problem

2001-03-02 Thread rm
Shouldn't the primary key spec come at the end of the table create command, not in the middle ex... CREATE TABLE president ( last_name varchar(15) NOT NULL, first_name varchar(15) NOT NULL, suffix varchar(5) NOT NULL, city varchar(20) NOT NULL, state varchar(2) NOT NULL, birth date NULL, death da

RE: [PHP] MySQL Create Table Problem

2001-03-02 Thread David Smith
), KEY idxgroups (username, usergroupid) ); -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Friday, March 02, 2001 2:09 PM To: PHP Subject: [PHP] MySQL Create Table Problem This is driving me nuts. I really tried to figure it out myself. I have a form for creating a

RE: [PHP] MySQL Create Table Problem

2001-03-02 Thread Jeff Oien
t(10) unsigned DEFAULT '0' NOT NULL, >lastpost int(10) unsigned DEFAULT '0' NOT NULL, >posts smallint(5) unsigned DEFAULT '0' NOT NULL, >timezoneoffset smallint(6) DEFAULT '0' NOT NULL, >emailnotification smallint(6) DEFAULT '0&#x

[PHP] MySQL - Problem with multiple INSERTs?

2001-03-05 Thread Chris
cluded everything below (including table schemata), to enable reproduction. It seems like a bug to me - the question is, is the bug in PHP, MySQL, or my brain? This is driving me CRAZY - Chris mysql_connect("localhost", "myusername", "mypassword"); my

Re: [PHP] MySQL SELECT performance suggestions

2001-01-10 Thread Joe Stump
You can use KEY() which will add extra keys to the table. --Joe On Wed, Jan 10, 2001 at 12:58:37PM -0700, [EMAIL PROTECTED] wrote: > Could someone suggest some options here for performance improvement? > > I have a table with about 300,000 entries/records by 7 columns/fields. All of > the inf

Re: [PHP] MySQL SELECT performance suggestions

2001-01-10 Thread Monte Ohrt
You don't need to select all the data to get the number of rows. Try this: select count(*) as total from products where $product_query; Then use total instead of num_rows. Be sure the elements in your where clause are properly indexed. [EMAIL PROTECTED] wrote: > > Could someone suggest some op

Re: [PHP] MySQL SELECT performance suggestions

2001-01-10 Thread Christian Reiniger
On Wednesday 10 January 2001 20:58, [EMAIL PROTECTED] wrote: > I have PHP perform SELECT queries on the table, and I need to display > the results in a format of: "viewing $top to ($top+$depth) of $numrows > found" > > I haven't found a way to determine $numrows without performing a second > SELE

Re: [PHP] mysql index (semi ot)

2001-01-11 Thread Paul K Egell-Johnsen
Larry Hotchkiss wrote: > > I am developing a site with php, apache and mysql. The database will have > likely 250k to 500k records at most, but the data will be changing often. > New records will be constantly added and old ones removed. I am pretty new > to DB's and was wondering what is

Re: [PHP] :: MySql and PHP Book

2001-01-11 Thread Philip Olson
Hey Ray, I would suggest looking for books on SQL. I have one (and want more!), it is called "the practical sql handbook" and it's nice. Seems every PHP book deals with MySQL directly too. Anyway, my thought on the matter is go generic, go SQL. Philip On Thu, 11 Jan 2001, Ray Iftikhar wrote

Re: [PHP] :: MySql and PHP Book

2001-01-11 Thread Neil Zanella
On Thu, 11 Jan 2001, Ray Iftikhar wrote: > I was looking for a good book that teaches you how to use PHP (mainly 3) > with MySql. I went to Amazon.com and found "MySql" by Paul Dubois, which was > supposed to be THE book for mySql programming. However, after reading some > of the customer review

Re: [PHP] mysql php4.04 and safe_mode

2001-01-13 Thread nospam
create a dir called tmp in de dir where de script runs chmod 777 that dir and the run the script again .. -- If it can be dreamt, it can be build "andreas (@work)" <[EMAIL PROTECTED]> wrote in message 003501c07ce5$41a15120$fe78a8c0@devel01">news:003501c07ce5$41a15120$fe78a8c0@devel01... hi list,

Re: [PHP] :: MySql and PHP Book

2001-01-15 Thread Kristofer Widholm
Here's what you wrote, 01-01-11: > I was looking for a good book that teaches you how to use PHP (mainly 3) >with MySql. I went to Amazon.com and found "MySql" by Paul Dubois, which was >supposed to be THE book for mySql programming. However, after reading some >of the customer reviews, it

RE: [PHP] MySQL and Array Problem

2001-01-17 Thread Jerry Lake
, January 17, 2001 10:43 AM To: [EMAIL PROTECTED] Subject: [PHP] MySQL and Array Problem I'm trying to store an array into a MySQL table, what datatype should the column be, Varchar? second this is the code I use to store it. mysql_connect("$DBHost","$DBUser","$DBPass

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread Romulo Roberto Pereira
: http://www.mysql.com/doc/D/i/Disk_issues.html Have fun, Rom - Original Message - From: [ rswfire ] <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 2:09 PM Subject: [PHP] MySQL Disk Space Usage Is it possible to find out how much disk space

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread [ rswfire ]
!!! - Original Message - From: Romulo Roberto Pereira <[EMAIL PROTECTED]> To: [ rswfire ] <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 2:29 PM Subject: Re: [PHP] MySQL Disk Space Usage > I think that these are your answer: >

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread [ rswfire ]
y not. Thanks again.. - Original Message - From: Larry Hotchkiss <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 2:42 PM Subject: RE: [PHP] MySQL Disk Space Usage > I believe you are going to need to take a look at the mysql manual a bit > clos

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread Romulo Roberto Pereira
.. What do you think? Rom - Original Message - From: [ rswfire ] <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 2:42 PM Subject: Re: [PHP] MySQL Disk Space Usage Thank you for the reply, however, I do not believe this will solve my problem. So p

Re: [PHP] mysql table dump problem

2001-01-20 Thread Markus Fischer
On Sat, Jan 20, 2001 at 05:57:25PM -0800, PHP List wrote : > dump a table to a file on my server: > $sql = "SELECT * INTO OUTFILE '/tmp/test.txt' FIELDS TERMINATED BY '\t' > LINES TERMINATED BY '\n' FROM table_name"; > > Problem is that once I have created the dump file, it will not allow me to

[PHP] Re: [PHP-INST] php / mysql

2001-01-24 Thread Ashley M. Kirchner
Timo Mika Gläßer wrote: > we're basically developing for DB2 or Oracle and don't usually need > MySQl-Support with PHP. So in order to make the httpd binary a little > smaller is it possible to compile PHP4 without any MySQL-Support added? Configure & compile PHP with the --without-mysql fla

Re: [PHP] mysql auto increment question

2001-01-24 Thread Pavel Jartsev
David Banning wrote: > > I am working with php-mysql > and am inserting into mysql using a NULL value, > which allows mysql to auto-insert (increment) > a number - how could I find out what the value was > mysql inserted, say on the next line of code after the insert? http://

Re: [PHP] strange PHP/MySQL problem

2001-01-27 Thread Joe Stump
Are you adding slashes beforehand (or running magic quotes) ? Also I always do a stripslashes() on the text fields I print out. --Joe On Sat, Jan 27, 2001 at 11:06:03PM -0500, [EMAIL PROTECTED] wrote: > if you goto > http://downloads.moddingcentral.com/add.php > you will see a simple form > > t

RE: [PHP] strange PHP/MySQL problem

2001-01-27 Thread Joe Sheble (Wizaerd)
izaerd.com = > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Saturday, January 27, 2001 9:06 PM > To: [EMAIL PROTECTED] > Subject: [PHP] strange PHP/MySQL problem > > > if you goto > http://downloads.moddingcentral.com

Re: [PHP] PHP, MySQL and XML

2001-02-05 Thread Sean Cazzell
Well, you're going to have to come up with a datamodel for storing the parsed data. You can parse RDF files with the XML extension, see the docs at http://www.zend.com/manual/ref.xml.php There are some classes on phpclasses.upperdesign.com which will handle RSS files - you can probably look at t

[PHP] MySQL locks, will PHP wait?

2001-03-26 Thread Jeroen Geusebroek
Hi Guys, I have a question; if i lock a mysql table, will a PHP script wait untill there is no lock anymore and then execute the script? Thanks, Jeroen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

[PHP] free webspace supporting PHP/MySQL

2001-03-27 Thread Alaiddin Tayeh
Hi, is there any comapany (like freeservers.com and geocities.com)give a free web space and supporting PHP/MySQL. Thanks -- Best Regards Alaiddin Tayeh; Webmaster Palestinian Internet Services WWW.P-I-S.COM Tel: +97272843197 Fax: +97272843377 -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP, MYSQL & multiple records

2001-04-02 Thread Lindsay Adams
Need to see your code for inserting data. But I think first, you should be naming your fields with empty[]s Ie. Etc That way, php will build an array out of the variables, and it will ONLY contain values, if values were submitted.. Then you build your insert query by looping through the array

Re: [PHP] Mysql sequence help (OOT)

2001-05-10 Thread Zak Greant
Sent: Thursday, May 10, 2001 9:41 PM Subject: [PHP] Mysql sequence help (OOT) Hello, Sorry for a litle bit out of topic. But can anyone tell me how to create sequence in mysql? For example, if I have table with column ID, NAME. I want ID to be incremented by one (say starting from 100) everyt

RE: [PHP] MySQL Query not working?

2001-05-14 Thread Peter Houchin - SunRentals Australia
\/_/ /_/ /_/\_\/_/_/_//_/_/_/ = Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 * We rent the dot in .COM! ** -Original Message- From: Laurie Landry [mailto:[EMAIL PROTECTED]] Sent: Tuesda

Re: [PHP] MySQL Query not working?

2001-05-15 Thread Julian Wood
gt; /_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/ > = > Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 > ***** We rent the dot in .COM! ** > > > -Original Message- >

Re: [PHP] free php/mysql hosting

2001-05-15 Thread Philip Olson
See the following : Where can I find some free hosting space by an ISP offering PHP. http://www.faqts.com/knowledge-base/view.phtml/aid/4058/ regards, philip On Tue, 15 May 2001, Christian Dechery wrote: > Does anyone knows any good free php/mysql hosting other than www.f2s.

[PHP] mysql and user-defined functions

2001-05-21 Thread Lybarger, Denver J (LYBARDJ8)
Hi All, Is there a way to return the results of a mysql_query or the array that is generated after mysql_fetch_array, via a function? Note I have tried to do a straight return. Another issue is that all of the tables are a different size, therefore a static array size would be a big was

[PHP] Being a PHP/MySQL ISP

2001-05-21 Thread Simon Buchanan
Hi, Just wondering if anybody has experience in or can jot down any gotchas / issues in providing a php/mysql vistral hosting service. Problems with security? Are their things i have to watch out for? Thanks Simon Buchanan -- Technical Director Contact: 07 571

Re: [PHP] Search engine php/mysql

2001-06-20 Thread Chris \"TunkeyMicket\" Watford
2001 8:22 AM Subject: [PHP] Search engine php/mysql Hello list,   I am coding a search engine that allow indexing and searching internet sites based on php/mysql.   My problm is:   How can i index a given site, I mean:   input: URL, like http://www.blabla.com/ Out

Re: [PHP] Search engine php/mysql

2001-06-20 Thread Greg Donald
Hello list, I am coding a search engine that allow indexing and searching internet sites based on php/mysql. My problm is: How can i index a given site, I mean: input: URL, like http://www.blabla.com/ Output: meta, body content, description that will be stored in a tables. Regular

RE: [PHP] MySQL Dump In PHP

2001-06-22 Thread Chadwick, Russell
sage-From: Chris Anderson [mailto:[EMAIL PROTECTED]]Sent: Friday, June 22, 2001 1:16 AMTo: [EMAIL PROTECTED]Subject: [PHP] MySQL Dump In PHP I've been reading through the MySQL manual about backing up my database using mysql dump. I tried passing it as a Query in PHP but that do

Re: [PHP] MySQL Dump In PHP

2001-06-22 Thread Aral Balkan
I use the mysqldump command line utility to do this and I don't know how to interface that from PHP. However: I just checked how phpMyAdmin does it and apparently it has functions that re-create the dump using queries. You might want to download it (http://www.phpwizard.net/projects/phpMyAdmin/)

RE: [PHP] mysql fun! JOIN me ...

2001-07-06 Thread Jason Ward
feeling that MySQL doesnt suppport nested queries. BTW, "@MapID" in the above code is a variable with ID of the map you want deleted. Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 05 July 1979 22:38 To: [EMAIL PROTECTED] Subject: [PHP] mysql fu

[PHP] MySql number/string comparing ideas...

2001-07-13 Thread elias
Hi! How is it possible to do a MySql query for something like: SELECT value from table WHERE value < '500x100' should return all values that part1 must be less than 500 and part2 less than 100? like 499x99 and reject something like: 500x101 please give me suggestions! -- PHP General Mail

Re: [PHP] php/mysql ecommerce solution

2001-07-18 Thread chris schneck
The Exchange Project is by far my favorite. www.theexchangeproject.org - Original Message - From: "Duane Douglas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 18, 2001 2:59 PM Subject: [PHP] php/mysql ecommerce solution > hi gang! > &

[PHP] Re: php/mysql ecommerce solution

2001-07-18 Thread Paul A. Procacci
I agree with Chris. The Exchange Project has been one of my personal favorites as well. www.theexchangeproject.org :) Duane Douglas wrote: > > hi gang! > > i'm looking for a php/mysql ecommerce solution. i want something that is > ready made and fully customizable. i&

[PHP]MySQL error, what's wrong here..

2001-07-23 Thread Chris Cocuzzo
the server is telling me line 43(which starts with $mp3d) is not a valid mysql result resource. what am i doing wrong?? chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adm

Re: [PHP] MySQL big table process

2001-07-27 Thread Daniel Rezny
Hello Plamen, Friday, July 27, 2001, 2:04:15 PM, you wrote: PS> Hi guys, PS> I have a big MySQL table - about 300MB PS> I want to get all the records from the table, make certain transformations and write them to a text file (i can not use "select into outfile...) PS> the problem is when i type

Re: [PHP] MySQL big table process

2001-07-27 Thread Unni
Try LIMIT in the select Plamen Slavov wrote: > Hi guys, > I have a big MySQL table - about 300MB > I want to get all the records from the table, make certain transformations and write >them to a text file (i can not use "select into outfile...) > the problem is when i type "select * from " the

[PHP] MySQL Processes Inifinitely in PHP

2001-07-30 Thread Chris Anderson
I've been using PHP 4.0.4p1 WIN32, Apache 1.3.19 WIN32 and the latest MySQL WIN32 build for almost 6 months without a problem. But now if I try and run a php file using MySQL functions it just processes forever. There is no output and I can stop with the browser's stop button. I have tried remo

[PHP] Free PHP/MySQL Web Hosting ?

2001-08-04 Thread Arcadius A.
Hello ! Is there any free PHP/MySQL Web Hosting without add ? ... or ... at least , I could have the choice to choose where to place their banner on my pages ? Thanks... Arcad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] MySQL broken in 4.0.5RC6

2001-04-09 Thread B. van Ouwerkerk
>Warning: MySQL Connection Failed: Can't connect to local MySQL server >through socket '/tmp/mysql.sock' (111) in >/home/sites/site1/web/intranet/main.php on line 309 This sounds A LOT like the problem when you need to change the location of the mysql.sock in your php.ini.. you did check that..

Re: [PHP] MySQL broken in 4.0.5RC6

2001-04-09 Thread Jon Rosenberg
TED]> Sent: Monday, April 09, 2001 3:59 PM Subject: Re: [PHP] MySQL broken in 4.0.5RC6 > > >Warning: MySQL Connection Failed: Can't connect to local MySQL server > >through socket '/tmp/mysql.sock' (111) in > >/home/sites/site1/web/intranet/main.php on line 3

Re: [PHP] MySQL broken in 4.0.5RC6

2001-04-09 Thread B. van Ouwerkerk
>True...but I used the same php.ini as with php4.0.4pl1, so the location of >all files is identical. If I don't specify a location in 4.0.4pl1, why >should i need one in 4.0.5rc6? Dunno, I don't have 4.0.5rc6 here, only 4.0.4pl1 so no change to test it.. or to take a look at the code.. It's pa

Re: [PHP] php, mysql, and wysiwyg.

2001-04-13 Thread Dean Hall
""FredrikAT"" <[EMAIL PROTECTED]> wrote: > Hi! > > I'm starting a news site, and I have one problem. > (not with php or mysql, workin' fine!): > > 1. I want my authors to be able to make the text bold, italic ++, > but I can't find anything that works. > 2. The best sollution must be something sim

Re: [PHP] PHP & MySQL Search Results

2001-04-14 Thread Plutarck
In a MySQL query you can use the LIMIT keyword, like in phpmyadmin. Use limit 0,10 to get the first ten results in a query. Then do the query again but use 10,10 for the limit. The first number is the "offset", and the second one is the maximum results to return. That's the way most people do

Re: [PHP] PHP & MySQL Search Results

2001-04-14 Thread Jason Caldwell
Hi Jason, Say you have a search form that says search for "searchbox" and the search box has a variable name of "search": NO Valid search results. "> 1) { echo "Previous"; } if (($num > 25) && (($limit + 25) < $num)) { echo "Next."; } /* End the initial "Else" */ } ?> ___

Re: [PHP] MySQL Results NULL Error

2001-04-16 Thread Jason Stechschulte
On Thu, Apr 12, 2001 at 10:20:28PM -0400, Chris Anderson wrote: > If I grab values from fields and they contain nothing, and I retrieve > them using mysql_field_array, it will give an index out of range. Is > there a way to prevent the error or do I have to keep putting a @ in > front of the varia

Re: [PHP] SETUP PHP , MYSQL, APACHE

2001-04-19 Thread B. van Ouwerkerk
>Hello all, hope that everyone had a nice weekend. >I'm new to this form. I am about to install mysql, apache, and php on my >linux box >(redhat 7) WHy do you think people have invented archives for lists like these This question has been asked some many times I can't even remember. Same

RE: [PHP] SETUP PHP , MYSQL, APACHE

2001-04-20 Thread Maxim Maletsky
. van Ouwerkerk [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 4:01 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] SETUP PHP , MYSQL, APACHE >Hello all, hope that everyone had a nice weekend. >I'm new to this form. I am about to install mysql, apache, and php on my >linux

[PHP] MySQL, PHP low-load problems

2001-04-20 Thread Kees Hoekzema
Hi all, Live is strange sometimes, and so is this error we have here. I have a large forum (more then 300.000 pageviews a day) running. We are using php-4.04pl1 (with the Zend/zend_list.c file patched) and we are using MySQL 3.23.36-log. We are using the following piece of code to connect to th

Re: [PHP] MySql / sql help plz!

2001-04-23 Thread Sigitas Paulavicius
that would be: select Id, count(*) from sometable group by Id Sigitas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] MySql / sql help plz!

2001-04-23 Thread Brian S. Dunworth
At 02:33 PM 4/23/01 -0700, elias wrote: >how can i get an SQL statment that when run, i get a query result like that: > >Id: Value count: >--- -- >a4 values >b4 values >c2 values SELECT ID,COUNT(*) FROM table_name GROUP BY ID; >i feel that it's easy...but i'm not re

[PHP] MySQL select rand() with weighting?

2001-05-03 Thread James, Yz
Hi Guys, Does anyone know how to select one field randomnly from a MySQL table against a weighting column in the same row the field is selected from? For example, "SELECT id, url, image FROM table ORDER BY rand() LIMIT 1". And have a column like "weighting" where values between 1 and 100 ar

Re: [PHP] SETUP PHP , MYSQL, APACHE

2001-05-08 Thread Chuck Boyce
I have been using Abriasoft's products. You just plop in the CD and it installs PHP, MySQL, Apache, Perl6, Perl DBI, and some other stuff on your linux (or other os) box. All software also available for free by download. http://www.abriasoft.com At 05:12 AM 5/19/02 -0700, you wrote: &

Re: [PHP] apache,php,mysql,flash

2001-08-15 Thread Tim
Do you have Macromedia Generator installed on your server? It's responsible for taking the .swt and generating the .swf output. - Tim On 15 Aug 2001 14:28:24 +0100, AJDIN BRANDIC wrote: > Hi, > > I have RH6.2, php4, MySQL and want to generate graphs with flash. I have > done a graph with Fla

Re: [PHP] apache,php,mysql,flash

2001-08-15 Thread AJDIN BRANDIC
Hi, NO this is what i am trying to find out. where can i download it from (for RD6.2 and Aache 1.3.12). I have tried RH site but no joy. regards Ajdin On 15 Aug 2001, Tim wrote: > Do you have Macromedia Generator installed on your server? It's > responsible for taking the .swt and generatin

RE: [PHP] apache,php,mysql,flash

2001-08-15 Thread Annand, Nigel
ECTED] Subject: Re: [PHP] apache,php,mysql,flash Hi, NO this is what i am trying to find out. where can i download it from (for RD6.2 and Aache 1.3.12). I have tried RH site but no joy. regards Ajdin On 15 Aug 2001, Tim wrote: > Do you have Macromedia Generator installed on your serve

Re: [PHP] apache,php,mysql,flash

2001-08-15 Thread Tim
You have to buy Generator from Macromedia. It's not free. (in fact, it's pretty expensive :) There are some open/free alternatives out there, but there weren't direct replacements last time I evaluated them. There's also the ming extension for PHP which lets you generate a whole SWF movie at r

[PHP] Re: Security in PHP+MYSQL

2001-08-15 Thread Richard Lynch
> I have a security-question that I hope someone can answer, my question is: > Will the DROP+TABLE+TBL_TEST-part in > http://www.foo.bar/page.php?id=1;DROP+TABLE+TBL_TEST; be executed? I don't think it will in CURRENT versions of MySQL. Really *OLD* versions, maybe, if I recall correctly... But

[PHP] MySQL Queries - Which to Use?

2001-08-17 Thread Kevin
I have been coding php for a while now but can't seem to get a grasp on which type of query I should use for a given situation. mysql_fetch_array mysql_fetch_object mysql_fetch_row Perhaps there is no right answer or perhaps the answer comes with experience. In any case, I would love to get som

[PHP] php/mysql install on Win2k

2001-08-23 Thread Wolfgang Schneider
on? For example: The website is at www.domain01.de (my domain), and the MySQL runs on mail.domain02.com (my ISP's mail server, where he has the mysql server installed) and I want then to use the PHP/MySQL combination from the website to run a forum. If someone could point me in the right direction an

[PHP] Re: PHP / MySQL Hosting Charges

2001-08-23 Thread Raphael Pirker
You can see hosts offer the package for around $10/month, so if it's inside a package they shouldn't charge more than US$2-US$4/month. If it's an extra feature, however, they may well charge around $5/month for the add-on and possibly also a setup fee, because it's not in their actual product list

Re: [PHP] PHP / MySQL Hosting Charges

2001-08-24 Thread Alnisa Allgood
At 4:09 PM +1000 8/24/01, Chris Aitken wrote: >Hi All, > > >Just a quick non-technical question. > >I live in Australia and a friend of mine has a website hosted here >in Oz, and he pays his set amount per month which simply is for >Hosting, cgi-bin and log file access for his website. > >Hes wa

Re: [PHP] PHP / MySQL Hosting Charges

2001-08-24 Thread ERISEN, Mehmet Kamil
Hello All, I think for a thin page with PHP+mySQL you can go as low as $3 a month (35MB) I have seen decent packages, with Vserver privileges at around $18/mnt. --- Alnisa Allgood <[EMAIL PROTECTED]> wrote: > At 4:09 PM +1000 8/24/01, Chris Aitken wrote: > >Hi All, > > &g

[PHP] MySQL: Updating ID auto_increment fields

2001-08-27 Thread Tom Churm
howdy, this should be simple but i don't know it. i use the following mysql table field as the Key for my tables: "id int(10) unsigned NOT NULL auto_increment," now, when i have to clean up items in my tables, like when users have sent off a .html form multiple times and i want to delete dupli

Re: [PHP] PHP/mySQL query problem...

2001-08-27 Thread ERISEN, Mehmet Kamil
Yes, there is a problem. -- SELECT * FROM links WHERE 1=1 and ( name LIKE "%te%" OR description LIKE "%te%" OR url LIKE "%te%" ) AND approved="1" LIMIT 5; -- --- Jeff Lewis <[EMAIL PROTECTED]> wrote: > Guys, why isn't this working? :) > > SELECT * FROM links WHERE name LIKE "%te%" OR descr

[PHP] mysql database has gone away

2001-08-30 Thread rodrigo
There is a Mysql error that is driving me mad. My ISP won't claim resposibility for it and it tells me it is a scrpting error. I don't agree with them. The error number is 2006, and it seems to restart the database every now and then. Please advice me as to what may be causing this problem. The e

[PHP] php/mysql search. need help

2001-09-07 Thread lizlynch
i have a form where a user inputs a home service type and this results in a list of that value, eg a user inputs 'plumber' and a list of plumbers is displayed. if a user accidentally types plumbar no results are displayed. is there anyway of making php/mysql recognise the first thr

RE: [PHP] mySQL / PHP Join Question

2001-09-08 Thread Don Read
On 09-Sep-2001 Dana Holt wrote: > > I have a query that uses a LEFT JOIN, but the two tables have some columns > with the same name. How can I tell the columns from each table apart? It > seems that the "joined" table overwrites the values from the other table. > If the column is part of the j

Re: [PHP] mySQL / PHP Join Question

2001-09-09 Thread David Robley
On Sun, 9 Sep 2001 13:34, Dana Holt wrote: > I have a query that uses a LEFT JOIN, but the two tables have some > columns with the same name. How can I tell the columns from each table > apart? It seems that the "joined" table overwrites the values from the > other table. > > Anyone know? > > Tha

RE: [PHP] MySQl IP Address Storage

2001-09-20 Thread Robert Covell
INET_ATON and INET_NTOA -Original Message- From: Felix [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 11:49 AM To: PHP list Subject: [PHP] MySQl IP Address Storage Hello all Can anyone suggest their best idea for a way to store IP addresses in a MySQL Database? Felix

Re: [PHP] MySQl IP Address Storage

2001-09-20 Thread Felix
Thank you Robert. Felix - Original Message - From: "Robert Covell" <[EMAIL PROTECTED]> To: "Felix" <[EMAIL PROTECTED]>; "PHP list" <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 10:55 AM Subject: RE: [PHP] MySQl IP Addre

Re: [PHP] MySQl IP Address Storage

2001-09-20 Thread Jason Bell
x27;)); SELECT INET_NTOA(ipaddress) FROM mytable; Make sense? - Original Message - From: "Felix" <[EMAIL PROTECTED]> To: "Robert Covell" <[EMAIL PROTECTED]>; "PHP list" <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 11:29 AM

Re: [PHP] MySQl IP Address Storage

2001-09-20 Thread Felix
Thank you very much. Felix - Original Message - From: "Jason Bell" <[EMAIL PROTECTED]> To: "PHP list" <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 12:49 PM Subject: Re: [PHP] MySQl IP Address Storage > Felix, > > Just to save you the

RE: [PHP] MySQl IP Address Storage

2001-09-20 Thread Don Read
On 20-Sep-2001 Felix wrote: > Hello all > > Can anyone suggest their best idea for a way to store IP addresses in a > MySQL Database? > INT UNSIGNED and use the MySQL functions INET_ATON() & INET_NTOA() for converting. If you're on a pre-3.23 MySQL server then: // Convert IP string (XXX.YY

[PHP] MySQL tables are read-only

2001-10-04 Thread Alfredeen, Johan
My webhost recently migrated my site over to a new server and IP. Everything looks ok, except that all my MySQL tables now are read-only (at least that's the error I get when trying to delete or insert records). How do I change the tables back to write? Can I switch individual tables to write or i

[PHP] Mysql('mydb", "SHOW TABLES FROM mydbname") ???

2002-01-12 Thread Chris
I’m trying to display the tables in my database using $tables = mysql(‘mydb”, “SHOW TABLES FROM mydbname”) but this statement doesn’t seem to behave like selecting records from a table. Does this query return an array of table names? If I use something like $records = mysql(‘mydb”, “SELECT * FROM

Re: [PHP] PHP & MySQL problems, updating database..

2002-01-17 Thread Erik Price
The reason you aren't seeing any errors is because you used "or die()" -- to the best of my knowledge, this replaces any standard errors that PHP would normally generate. It appears that you have omitted the second argument to mysql_query(). A common mistake that I've made many times myself.

Re: [PHP] PHP & MySQL problems, updating database..

2002-01-17 Thread Dennis Moore
- From: "Hawk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 1:18 PM Subject: [PHP] PHP & MySQL problems, updating database.. > Having a problem with this, I have a working login that supports multiple > users, and I'm trying to mak

Re: [PHP] PHP & MySQL problems, updating database..

2002-01-17 Thread Miles Thompson
Hawk, If you have a working login, can we safely assume that there is information in the database for each user? If so, then we won't bother discussing insert statements, but concentrate on updates. We'll also assume that $user has update privileges on the database. The normal form of an upda

[PHP] Submit/View images using PHP/MySQL

2002-01-29 Thread Mike C
Hi, Can anyone point me to some good examples of how to add images using PHP 4 (from within a browser) to a MySQL database running on MacOSX, which is already configured & working, then display the images by selecting their name or category etc, again within the browser. I also need to restric

Re: [PHP] mysql backup function in php?

2002-02-04 Thread Mike Maltese
Use PHPMyAdmin. You can dump to a CSV file or it can output all of the INSERT statements to rebuild a table. - Original Message - From: "Wilbert Enserink" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 8:22 AM Subject: [PHP] mysql

Re: [PHP] mysql backup function in php?

2002-02-04 Thread Miles Thompson
riginal Message - >From: "Wilbert Enserink" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, February 04, 2002 8:22 AM >Subject: [PHP] mysql backup function in php? > > > > Hi all, > > > > i searched the manual for a php backup function

RE: [PHP] Newbie Question about PHP / MySQL

2002-02-08 Thread Rick Emery
about PHP / MySQL -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello All: How do I read all of the data from just one column, then develop a count based on those items? I think I start with mysql_fetch_field(), but right there I get stuck. Any ideas to point me in the right direction? Thanks

[PHP] MySQL and apostrophes, interesting problem. 42082

2002-03-10 Thread Nick Patsaros
I'm working with a simple form which submits field data to a MySQL database. This is for the purpose of generating a dynamic news page for my site. Interestingly enough I've found that any time I try to submit data that contains an apostrophe "'" it gives me an error and will not send the data (

Re: [PHP] Re: arguments against php / mysql?

2002-04-10 Thread Barry C. Hawkins
oor. Once that initial "yes" has been given, the subsequent steps might come more easily. Best of luck, -- Barry C. Hawkins Systems Consultant All Things Computed [EMAIL PROTECTED] Mallen Baker wrote: > Hi - the company we're talking to about doing some work on a simple > site / d

Re: [PHP] Re: arguments against php / mysql?

2002-04-10 Thread Michael Kimsal
Barry C. Hawkins wrote: > Mallen, It sounds like you might have some non-technical or > open-source execs to talk to, and that a non-MS platform is not an > option (yet :^) ). If so, here are some more "managerial"-type > arrows for your quiver: > > 1.) MySQL was one of the top 2 databases

Re: [PHP] Re: arguments against php / mysql?

2002-04-11 Thread Mallen Baker
. no-one ought to start from here, but if you're forced to use IIS (because asp won't work with anything else) then php / mysql is not going to be the way to go (xxx are proposing coldfusion / sqlserver). Thanks - Mallen >>> Michael Kimsal <[EMAIL PROTECTED]> 04/10/02 08:

RE: [PHP] Re: arguments against php / mysql?

2002-04-11 Thread Jack E. Ambrose
: Thursday, April 11, 2002 12:34 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; > Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: arguments against php / mysql? Thanks to Michael, Barry, Steve, Cal and Rasmus for replies. We have just taken a contract for a dedicate

Re: [PHP] Re: arguments against php / mysql?

2002-04-11 Thread Rasmus Lerdorf
art from here, but if > you're forced to use IIS (because asp won't work with anything else) > then php / mysql is not going to be the way to go (xxx are proposing > coldfusion / sqlserver). But there is really no point in switching from ASP to CF. What are you hoping to gai

Re: [PHP] Re: arguments against php / mysql?

2002-04-11 Thread Mallen Baker
Sorry - I'm being clear as mud! We have an existing site which will need to live on the server - I'm looking at new development. The two don't need to work on the same thing - there's no question of recoding that site as coldfusion. - M >>> Rasmus Lerdorf <[EMAIL PROTECTED]> 04/11/02 08:37am >

<    5   6   7   8   9   10   11   12   13   14   >