Re: [PHP-DB] MySQL Query

2001-10-26 Thread Raquel Rice
On Sat, 27 Oct 2001 13:36:57 +1000 "Andrew Duck" <[EMAIL PROTECTED]> wrote: > Error > SQL-query : > > CREATE TABLE mail ( > from int(32) NOT NULL default '0', > to int(32) NOT NULL default '0', > subject varchar(80) NOT NULL default '', > message text NOT NULL > ) TYPE=MyISAM > > >

[PHP-DB] MySQL Query

2001-10-26 Thread Andrew Duck
Error SQL-query : CREATE TABLE mail ( from int(32) NOT NULL default '0', to int(32) NOT NULL default '0', subject varchar(80) NOT NULL default '', message text NOT NULL ) TYPE=MyISAM MySQL said: You have an error in your SQL syntax near 'from int(32) NOT NULL default '0', to int

[PHP-DB] help with data bases!!!!

2001-10-26 Thread Alejandro Viana
I'm trying to read a record from a dbase data base so I've previously opened it successfully. The problem is that I call the function dbase_get_record, but it returns no records. The database is ok because I call the funcion dbase_numfields and dbase_numrecords and they give me correct information

Re: [PHP-DB] Help! ¡Ayuda!

2001-10-26 Thread Steve Cayford
> > > Source code- CÛdigo fuente: > > $based="articulo.dbf"; > if (($descriptor=dbase_open ($based, 0))==0){ >printf ("Error al abrir la base de datos"); > }else{ >printf ("Base de datos abierta"); >$num_registros=dbase_numrecords($descriptor); >$num_campos=dbase_numfields($descr

[PHP-DB] Help! ¡Ayuda!

2001-10-26 Thread Alejandro Viana
I'm trying to read a record from a dbase data base so I've previously opened it successfully. The problem is that I call the function dbase_get_record, but it returns no records. The database is ok because I call the funcion dbase_numfields and dbase_numrecords and they give me correct informa

[PHP-DB] Re: PHP & MySQL Queries...

2001-10-26 Thread Mike Frazer
> if ($row = mysql_fetch_array($result)) { > > /* Change all instances of db_table to match your db table structure */ > do { > PRINT "Your search results: "; > PRINT "db_table: "; > print $row["db_table"]; > print (""); > . > [ NUMEROUS REPETITIONS WERE HERE ] > . > P

[PHP-DB] PHP & MySQL Queries...

2001-10-26 Thread Jason
Well I would like to thank everyone that helped me create php script to search a MySQL database using a form to pass the contents of the textbox to the php script as a variable in the search string. Here is the final script if anyone wants to use it, update, enhance feel free just send me a copy

RE: [PHP-DB] PHP and Stored Procedures

2001-10-26 Thread Ryan Marrs
I would actually recommend running the built in MSSQL functions in PHP, I have a stored procedure on a MSSQL server that updates and returns information, and PHP handles it fine. You will have to enable the PHP_MSSQL.dll library (if on Windows) in the php.ini file. Here's an example of the store

[PHP-DB] PHP and Stored Procedures

2001-10-26 Thread Shawn Greene
Hi, I'm new to this newsgroup, and I can't seem to find this anywhere else, so I thought I would ask. I have a problem getting output from stored procedures through PHP. I am connecting to an MS-SQL server through odbc (easysoft OOB), however this is a flexible environment. What I really need t

RE: [PHP-DB] SSL and IE

2001-10-26 Thread Peter Lovatt
I had the same problem, and it seems to be tied to very specific releases of IE. Unfortunately one of them is released with Win98 SE, so it could be widespread. My version is 5.00.2614.3500 It also affects some static pages, so it may be an IE/Apache issue. Disabling SSL3 support in IE fixed it,

[PHP-DB] SSL and IE

2001-10-26 Thread Jonathan Hilgeman
I'm programming a credit card payment form using PHP and I have been getting some strange feedback from test groups. The groups are varied as much as possible, and it seems as though some of the ones using MSIE 5.x are having trouble connecting to the secure page while others using MSIE 5.x CAN co

[PHP-DB] Using MS SQL via FreeTDS with PHP 4.0.6

2001-10-26 Thread Scott Teglasi
Hi, I've read the bug report regarding the -lsybtcl errors (as I got them myself, and did a search through the mailing lists). There's a patch available for php 4.0.3pl1, however I'm looking for one that patches php 4.0.6. Is there any out there? Or can I use the patch for 4.0.3pl1 with a litt

RE: [PHP-DB] date

2001-10-26 Thread Rick Emery
Yes, PHP is nice. But the more we force MySQL to perform, the less is required of PHP and the script writer. -Original Message- From: Steve Cayford [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 9:49 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] date Check out the date fun

Re: [PHP-DB] date

2001-10-26 Thread Steve Cayford
Check out the date functions in php, they're very nice. mktime(), date(), strftime(), and setlocale() -Steve On Friday, October 26, 2001, at 08:47 AM, Rick Emery wrote: > Assume the following table: > create mytable ( > mydate date ); > > Assume the following inserts: > INSERT INTO mytable

Re: [PHP-DB] date

2001-10-26 Thread Russ Michell
User inserts date as a select menu for day, month and year: $day, $month, $year You swap it around for an insert: $dateinsert = $year . $month . $day Then query the DB: Select blah from blah where blah=blah order by datefield (Let MySQL do the rest) Good luck! Russ On Fri, 26 Oct 2001 12:10:51

RE: [PHP-DB] date

2001-10-26 Thread Rick Emery
Assume the following table: create mytable ( mydate date ); Assume the following inserts: INSERT INTO mytable VALUES( "2003-02-20"); INSERT INTO mytable VALUES( "2004-12-25"); INSERT INTO mytable VALUES( "1999-01-01"); The following will order this table, assuming precedence of year->month->da

Re: [PHP-DB] problems with php and oracle ....

2001-10-26 Thread Anthony Carlos
David: I had this same problem and found several approaches to solving the problem in the user contributed notes section of http://www.php.net/manual/en/function.ocilogon.php. They all boil down to: 1. Is the Listener started? In your case, it appears so because you can TNSPing the Oracle serve

Re: [PHP-DB] getting results from INSERT

2001-10-26 Thread Bruno Gimenes Pereti
I think you want this. $sql = "INSERT INTO table (cod, nome, email) VALUES ('', '$nome', '$email')"; $result = mysql_query($sql); $cod = mysql_insert_id(); The $cod is the primery key. Hope it helps. Bruno Gimenes Pereti. - Original Message - From: "Matt Stewart" <[EMAIL PROTECTED]> To

[PHP-DB] getting results from INSERT

2001-10-26 Thread Matt Stewart
What i'm after is getting the primary key for a record that's just been added - I have an image file upload accompanying a database addition, and the image gets renamed $unique_ID.jpeg only problem is that the current method inserts the information, which auto produces the primary key, but the onl

Re: [PHP-DB] Access to MySQL denied

2001-10-26 Thread Dommers
If your php-script runs on the same server as mysql, you should try 'localhost' as the hostname. That worked for me in most cases. "Russ Michell" <[EMAIL PROTECTED]> schreef in bericht news:SIMEON.10110260917.B@k1c. anglia.ac.uk... > >Of course, it works perfectly fine on my home computer, so I g

[PHP-DB] date

2001-10-26 Thread ax
how would i enter european format date into mysql (dd/mm/) ... and how would i make the query sort by date if i am using this format ?? ax -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con

[PHP-DB] problems with php and oracle ....

2001-10-26 Thread Rao Davide
For developement reasons (oracle realted) I hadto abandone mod_php.tgz (php 4.0.5) package delivered with slackware 8.0 and use php 4.0.6 so I.m currently working with: php 4.0.6 and apache 1.3.20 ona a slackware 8.0 (with kernel 2.2.19). At first I recompiled php 4.0.6 with exact same options of

Re: [PHP-DB] Access to MySQL denied

2001-10-26 Thread Kirill Safarov
I am new to MySQL (I am more used to Microsoft SQL), but it seems to me that if I provide "username" string as the username parameter, that's what MySQL should use to login into the database. Why is "@lsh101.siteprotect.com " being appended to it? The "username" was provided by the webhost, and a

Re: [PHP-DB] Access to MySQL denied

2001-10-26 Thread Russ Michell
>Of course, it works perfectly fine on my home computer, so I guess it musthave >something to do >with the configuration of PHP (or, possibly, MySQL?) How do you connect to MySQl from home? It sounds as if the user trying to connect to MySQL doesn't have the right privileges to connect top th

[PHP-DB] Access to MySQL denied

2001-10-26 Thread Kirill Safarov
I cannot connect to MySQL database located at the webhost. The command: $link = mysql_connect('hostname:3306','username','password') or die ("Could not connect"); (with the proper hostname of course) returns this error message: MySQL Connection Failed: Access denied for user: '[EMAIL PROTECTED]'