Re: [PHP-DB] [php - mysql] create_table

2001-11-11 Thread george
The mysql_create_db() and the other functions are fine but I find it easier to use SQL statements and then send them through the mysql_query() function George At 05:10 11/11/2000 +0100, Henning Block wrote: >Hi, >with the php-command >mysql_create_db ("my_db"); >

Re: [PHP-DB] Re: New to PHP and MySQL!!!

2001-11-22 Thread george
Oli, You may wish to visit www.udzone.com and have a look through a few of the tutorials on how to set up UD with PHP and the Phakt server model. George -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP-DB] Desperate Help needed

2001-01-14 Thread George Schlossnagle
It's probably alot more efficient to set up a scheduled job which removes timed out users every minute. This keeps your 'check and see if the user is expired' code from running any more frquently than it needs to be. george Toby Butzon wrote: > > Set up an expire tim

Re: [PHP-DB] Limit number of persistent oci8-connections?

2001-01-25 Thread George Schlossnagle
MaxClients inyour httpd.conf is a nice way to limit it. :) Karsten Dambekalns wrote: > > On Thu, Jan 25, 2001 at 08:22:07PM +0100, Matthias Kopolt wrote: > > Are you useing persistent connections (I had no real luck with them)? > > > > How do you connect to your DB over Multi Threaded Server (M

[PHP-DB] weird occurence

2001-02-01 Thread George Schlossnagle
more educated opinions than mine regarding this. Anyone know? Best, George -- 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, e-mail: [EMAIL PROTECTED]

Re: [PHP-DB] strings of variables,php, sql

2003-11-24 Thread George Patterson
#by numeric index.. echo $row["shed"]; #or by column name.. If you wish to find out all the column names and values, try print_r($row); George Patterson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Buy beer and smoke at ANY age

2003-11-28 Thread George Patterson
ld be a good idea as well, as I am not aware of any legitimate users coming from there. Thanks, George -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Missing Data in Columns

2003-12-10 Thread George Patterson
svote453.vote as hud_vote, energyrollcall630.vote as energy vote, medicarerollcall669.vote as medicare_vote from fullhouse2, medicarerollcall669, hr2passage, estatetaxrepeal, headstartvote444, hudappropsvote453, energyrollcall630 Regards George Patterson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Hi I am new to PHP

2004-04-15 Thread George Patterson
On Thu, 15 Apr 2004 14:58:09 -0700 (PDT) andy amol <[EMAIL PROTECTED]> wrote: > Hi, >I have a problem with the second file. I am not able to update the > data from the php program. Any help on that would be appreciated. > Any modification which would be reduce the code like directly using >

Re: [PHP-DB] Problems switching from MySQL 3.23 -> 4.0

2004-04-17 Thread Eric George
Bump? [EMAIL PROTECTED] wrote: Hi, I have a page that grabs some data from a MySQL 3.23.58 database on a RedHat 9 box. I'm trying to migrate the db to a Suse box running MySQL 4.0.15. When I connect to the MySQL 4.0 DB, I get strange results. For example, there's a certain query that just retur

Re: [PHP-DB] Inserting a date in to DATE field

2004-04-22 Thread George Patterson
d was inserted. The other way is to alter your insert queries to insert into table set date_field=now() George Patterson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] First letter

2004-04-27 Thread George Patterson
first letter of a string? > > - Matt > > Or to properly answer the question, $letter=substr("abc", 0, 1); // returns the first character which is a. Unless Matt wanted the first letter as opposed to the first character?? George Patterson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] can i display an image _directly_ from postgres db storage?

2004-11-01 Thread P. George
i know that postgres has a raw binary datatype called bytea for storing pictures and whatnot, but i'm having trouble finding an example of displaying an image on a web page with php that is pulled directly from the database? is this possible? if so, how? thanks. - philip -- PHP Database Mailing

Re: [PHP-DB] can i display an image _directly_ from postgres db storage?

2004-11-01 Thread P. George
Typically, it's infinitely more performance-friendly to simply store your files on the hard disk and use the database to refer to that location. For instance, assume your root web dir is /www. Inside there you have an /images directory. If you religiously put all files inside of /images you can

Re: [PHP-DB] can i display an image _directly_ from postgres db storage?

2004-11-01 Thread P. George
Tutorials that shows how to upload and store image/binary files in a database also usually shows how to retrieve them (and in the case of images, also how to display them). One function you'll find useful is imagecreatefromstring() thanks. i found an example for uploading an image into the pr

Re: [PHP-DB] can i display an image _directly_ from postgres db storage?

2004-11-01 Thread P. George
$result = pg_exec($dbconn, "SELECT $image FROM thetable where name='$name'); nevermind. i had a missing double-quote on this line. works great now. thanks. - philip -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] problem with LOAD DATA INFILE for date format

2002-01-24 Thread George Pitcher
t;' ' that Excel puts around any cell containing a comma. So you might need to filter the output from excel in a text editor too but if its a one-off, its worth it. george - Original Message - From: "Hendra" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent

Fw: [PHP-DB] Drop down list

2002-01-30 Thread George Lioumis
- Original Message - From: George Lioumis To: B.J.Rumsey Sent: Wednesday, January 30, 2002 11:47 AM Subject: Re: [PHP-DB] Drop down list Try the following: "; $res = mysql_query($get_list) or die (mysql_error()); while ($row = mysql_fetch_array($res)) { $artid= $row["

[PHP-DB] Help in tokenizing a string

2002-01-31 Thread George Lioumis
Good day to all. I tried the following code from PHP's manual if (isset($submit)) { if ($submit == "Save") { echo "$im_file"; $tok = strtok($im_file, "\\"); while ($tok) { echo "$tok"; $tok = strtok ("\\"); } } } I have the string $im_file ="C:image.jpg" and I want to

Re: [PHP-DB] Help in tokenizing a string

2002-02-01 Thread George Lioumis
Thanx!! It worked perfectly George - Original Message - From: "David Sullivan" <[EMAIL PROTECTED]> To: "George Lioumis" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 01, 2002 11:51 AM Subject: Re: [PHP-DB] Help in tokeniz

[PHP-DB] new php developer

2002-02-06 Thread John George
reate a list of files (links) that he would be able to access. Is php the right scripting language for this job? Thank you for your time, it is greatly appreciated. John George [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: [PHP-WIN] why doesnt this work?

2002-02-08 Thread George Lioumis
The first time you enter the page submit button is not pressed. That's why it gives you this error. Try the following: - Original Message - From: "chris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 3:38 PM Subject: [PHP-WIN] why doesnt this work? > i get

Re: [PHP-DB] Re: [PHP-WIN] why doesnt this work?

2002-02-08 Thread George Lioumis
I forgot somthing - Original Message - From: "George Lioumis" <[EMAIL PROTECTED]> To: "chris" <[EMAIL PROTECTED]>; "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 3:37 PM Subject: [PHP-DB] Re: [PHP-WIN] why do

[PHP-DB] Problem connecting to db on Linux

2002-02-18 Thread George Pitcher
gin ok but not the select db part. I tried creating a db using a php script and then selecting it and got the same problem. I'm new on Linux so it might be something in the configuration which needs working on. Any suggestions? George in Edinburgh -- PHP Database Mailing List (http://w

Re: [PHP-DB] Problem connecting to db on Linux

2002-02-18 Thread George Pitcher
4.0.6/Apache) and I am about to retest so I'll report back soon. George - Original Message - From: "Greg Donald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 18, 2002 2:08 PM Subject: Re: [PHP-DB] Problem connecting to db on Linux >

Re: [PHP-DB] Problem connecting to db on Linux

2002-02-18 Thread George Pitcher
login to server and stalled on the select db part? George - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "'George Pitcher'" <[EMAIL PROTECTED]>; "Greg Donald" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent:

Re: [PHP-DB] Problem connecting to db on Linux

2002-02-18 Thread George Pitcher
an it is correct. Am I missing something else which is obvious? George - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "'George Pitcher'" <[EMAIL PROTECTED]>; "Rick Emery" <[EMAIL PROTECTED]>; "Greg Donald&qu

Re: [PHP-DB] Problem connecting to db on Linux

2002-02-18 Thread George Pitcher
Rick, Sorry, here it is: Warning: Supplied argument is not a valid MySQL result resource in /var/www/html/HERONweb/home.php on line 32 I have 'echo mysql_errno();' just after the query is called but no number is being displayed. George - Original Message - From: "Rick

[PHP-DB] Problem displaying dates

2002-02-19 Thread George Pitcher
onvert the date format from '-00-00' to 'dd/mm'' but have tried displaying the dates with and without the use of this function with no success. Any suggestions? George in Edinburgh -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] SELECT where something exists but something else does not

2002-02-21 Thread George Lioumis
Hi! I think I have solved your problem... I have attached an sql file to create the sample DB I created for my test and a PHP file for you to run to see how I have implemented it. First create the tables with the .sql file an then execute the .php file from your browser. Hope these help. ---

Re: [PHP-DB] SELECT where something exists but something else does not

2002-02-21 Thread George Lioumis
I think I forgot something usefull... - Original Message - From: "Beau Lebens" <[EMAIL PROTECTED]> To: "PHP DB (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 3:59 AM Subject: [PHP-DB] SELECT where something exists but something else does not > Hey guys, > I am a lit

Re: [PHP-DB] How do I add multiple var to a if clause ?

2002-02-21 Thread George Lioumis
You can use: if ( ($var == 1) or ($var == 2) or ($var == 3)) { ... } - Original Message - From: "Dave Carrera" <[EMAIL PROTECTED]> To: "php List" <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 12:40 PM Subject: [PHP-DB] How do I add multiple var to a if clause ? > Hi

[PHP-DB] Euro Dates into MySQL

2002-02-26 Thread George Pitcher
and I want to be able to have the user enter 'dd/mm'' into a form and have it put into MySQL in the -mm-dd format. Now I have written a function in php to do this but I might be mising an easier, more elegant/efficient way of doing this. Any suggestions? George

Re: [PHP-DB] PHP problem

2002-02-26 Thread George Pitcher
Bartek, This is snipped from a working form on my site: contains exact match begins with and it works. George - Original Message - From: "Bartek Pawlik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 26, 2002 10:49 AM Subj

[PHP-DB] conflicting result problem with MySQL/php

2002-03-12 Thread George Pitcher
ourse_ID' I get 18 (for a particular course) and the above query only displays 3 results. Any suggestions? I didn't want to clog the list with the whole query but I can if it's necessary. George, in Edinburgh -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Conflicting results using PHP/Mysql

2002-03-13 Thread George Pitcher
o not necessarily relate just to these records. Hope this clarifies rather than confuses. George - Original Message - From: "Kevin Bucknum" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 13, 2002 4:17 PM Subject: RE: [PHP-DB] Conflict

[PHP-DB] Conflicting results using PHP/Mysql

2002-03-13 Thread George Pitcher
lem: If I do a simple count of transactions.CourseID='$Course_ID' I get 18 (for a particular course) and the above query only displays 3 results. Any suggestions? I didn't want to clog the list with the whole query but I can if it's necessary. George, in Edinburgh -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Stange 'page-loading' effect

2002-03-15 Thread George Pitcher
ransferred values. Any ideas as to where it going wrong? I'm using PHP-4.1.1, Apache (console) on Win 2000Pro. Regards George George Pitcher is Technical Manager for the HERON Project at Napier University, Edinburgh. -- PHP Database Mailing List (http://www.php.net/) To unsubscri

[PHP-DB] Re: Conflicting results using PHP/Mysql

2002-03-18 Thread George Pitcher
show related information from the bib_extract table and the scanrates (prices) table. I've checked the data in these tables and nothing is odd. Maybe there is a different way to build my query so that it displays the full set of records. Any suggestions? George - Original Message - F

[PHP-DB] Re: Conflicting results using PHP/Mysql

2002-03-18 Thread George Pitcher
Thanks to Kevin, who yesterday emailed me with a solution to my JOIN problem. Thanks to all who helped me see the wood for the trees. George - Original Message - From: "Doug Thompson" <[EMAIL PROTECTED]> To: "George Pitcher" <[EMAIL PROTECTED]>; <[E

[PHP-DB] variation on(Speed Up Code?)

2002-03-26 Thread George Pitcher
! MTIA George in Edinburgh -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] PHP/Access problem

2002-03-26 Thread George Pitcher
Hi, I'm working on a small Access 2000-based project and I'm getting a SQL Error . This is the query (built in PHP): SELECT * FROM 'Documents'WHERE (CourseRef='4712' AND Valid_From<=#26/03/2002# AND Valid_Until>=#26/03/2002#) Order by Author,Title Any

Re: [PHP-DB] Re: PHP/Access problem

2002-03-27 Thread George Pitcher
Adam, Thanks for the assist. The query works fine without the ( ) arount the conditions. Now on to the next part. George - Original Message - From: "Adam Royle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 26, 20

Re: [PHP-DB] csv without line feed

2002-03-28 Thread George Pitcher
g that debug is still available from the C: prompt? George - Original Message - From: "Sommai Fongnamthip" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 28, 2002 8:53 AM Subject: [PHP-DB] csv without line feed > Hi, > I have text file with CSV

[PHP-DB] Compiling PHP4 with Informix on Red Hat 7.2

2002-03-28 Thread George Karaolides
tus from /var/tmp/rpm-tmp.8748 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.8748 (%build) --- Ebd relevant screen output --- I have contacted IBM's support desk and they're at a complete loss. If anyone here can help, I'd be more than gr

[PHP-DB] Inserting into Access

2002-04-03 Thread George Pitcher
thout a problem. Possibly a cursor problem (I remember some, but not enough, stuff from my brief flirtation with ASP). Any clues? George in Edinburgh -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Inserting into Access

2002-04-03 Thread George Pitcher
t one solution is to ditch the primary key (not really needed in this table) and just insert the values into the table without specifying the recipient fields (it is a log table). George - Original Message - From: "Miles Thompson" <[EMAIL PROTECTED]> To: "George

Re: [PHP-DB] Re: Inserting into Access

2002-04-03 Thread George Pitcher
Steve, That only produces a data type mismatch error message. George - Original Message - From: "Steve" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 04, 2002 5:05 AM Subject: [PHP-DB] Re: Inserting into Access > Try adding single quotes to

Re: [PHP-DB] Error creating new table

2002-04-08 Thread George Pitcher
You can't have NOT NULL assigned to a text field. george - Original Message - From: "Lisi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 08, 2002 10:11 AM Subject: [PHP-DB] Error creating new table > I am trying to create the fo

[PHP-DB] Complicated query on very simple database - pointers sought

2002-05-22 Thread George Pitcher
Orders/Cust Average over prev 12 months. My work with MySQL has never been this detailed. Can anyone give me any pointers? Regards George in Edinburgh -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] problem with a small script

2002-06-10 Thread George Pitcher
Suman, Firstly, it's a bit longer than necessary. Make your form a 'POST' rather than 'GET' and you'll hide your query and will then be the equivalent. I presume that you have been able to display other PHP stuff? Check your php.ini file and make sure that the part that allows you to use th

Re: [PHP-DB] Microsoft Access & PHP

2002-07-04 Thread George Pitcher
Just a thought. Try putting quotes around the 'True'. George (no expert - not even a novice - yet) - Original Message - From: "Daniel J Owen-Mcgee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 04, 2002 2:29 PM Subject: [PHP-DB] M

[PHP-DB] Oracle9i and PHP

2002-11-13 Thread George Pitcher
Hi, Can anyone point me in the direction of resources on PHP and Oracle9i (Win2K). I have the db installed on my laptop, on which I already have PHP running with IIS5 and would like to use PHP with Oracle. Any tips (even if it's a 'waste of effort' type) would be welcome. G

[PHP-DB] displaying related data from MySQL

2001-08-20 Thread George Pitcher
AME']; print (""); print $row['ACFTREF.TYPE_ACFT']; print (""); print $row['MASTER.SERIAL_NUMBER']; print (""); } while ($row = mysql_fetch_array($result)) ; } else {print "Sorry, no results found!";} } ?> Just for info, the M

[PHP-DB] Re: displaying related data from MySQL [SOLVED]

2001-08-20 Thread George Pitcher
Hi all, Well, I played about abit more and discivered that I as overcomplicating things by specifying the tablename in field to be displayed. Once I set it to just display the fieldname it worked swimmingly. Now I can really get going. George - Original Message - From: George Pitcher

Re: [PHP-DB] please, please can we stop this kind of thing ..... !

2001-08-20 Thread Pitcher, George
Guys, If the purpose of the first message which prompted this thread was to reduce bandwidth, then it gives the impression that its ok to waste bandwidth having a meaningless debate like this but not if it's to deal with a newbie's request. just my 2c George, an English newbie i

[PHP-DB] Slightly OT - maybe just SQL not php

2001-08-21 Thread George Pitcher
Hi all, I have a MySQL table with approx 350,000 records (US aviation register) and the way the FAA produce it is without the 'N' prefix which I wish to add. Can anyone point me to a sql command which will upodate the N-Number field to 'N' + N-Number field

[PHP-DB] Installation problem w MySQL

2001-08-24 Thread George Pitcher
ppears to have more '.h' files. Obviously the files are there somewhere but I'm stuck as to how to do the './configure'. I cannot use the prescribed '--with-mysql=/usr/local/mysql' coz that won't point to anything. So what

[PHP-DB] Compiling MySQL Database on LinuxPPC

2001-08-27 Thread George Pitcher
'/usr/src/mysql-3.23.37/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/usr/src/mysql-3.23.37' make: *** [all-recursive] Error 2 Any suggestions Regards George Pitcher Technical Manager HERON Project Napier University Edinburgh EH10 5DT [EMAIL PROTE

Re: [PHP-DB] Compiling MySQL Database on LinuxPPC

2001-08-27 Thread George Pitcher
Justin, Thanks. It appears to happen in the same place each time I try (4 attempts as its not that quick [about 1 hr each try]). So should I download a new compiler (is it the gcc++ or if not, what?)? George - Original Message - From: Justin Buist <[EMAIL PROTECTED]> To: George P

[PHP-DB] newbie having problem

2001-09-03 Thread George Pitcher
esult)); } else {print ("Sorry, no aircraft matching your criteria were found.");} ?> = Any suggestions as to where I'm going wrong? Regards George Pitcher Technical Manager HERON Project Napier University Edinburgh EH10 5DT [EMAIL PROTECTED] [EMAIL PROTECTED] [E

Re: [PHP-DB] newbie having problem

2001-09-03 Thread George Pitcher
| G-AXDL | |DM | BAE HS 125/400B | 25194 | | G-AXDM | ++-+-+--+-+---+ In these records, what is actually in the ID field is also being displayed in 'History'. Not sure if this clarifies things? Geo

Re: [PHP-DB] newbie having problem

2001-09-03 Thread George Pitcher
'); > > if ($Serial == "") > > {$Serial = '%';} > > if ($Type == "") > > {$Type = '%';} > > if ($Con == "") > > {$Con = '%';} > > $result=mysql_query ("SELECT * FROM biz WHERE > > ID LIKE

Re: [PHP-DB] newbie having problem

2001-09-04 Thread George Pitcher
Jason, Having tried your suggestion, I see that I can connect to the server but cannot select the db. Where do I go from here? George - Original Message - From: Jason Wong <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 03, 2001 4:39 PM Subject: Re: [PH

Re: [PHP-DB] newbie having problem

2001-09-04 Thread George Pitcher
Oops, I forgot to say that I can handle this db as a client on the command line and it shows up under mysqlshow. George - Original Message - From: George Pitcher <[EMAIL PROTECTED]> To: Jason Wong <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, Septembe

[PHP-DB] Re: [PHP-WIN] variables in URL

2001-10-17 Thread George Lioumis
main.php?sectionName=home&variable_2=value&...&variable_n=value - Original Message - From: "Tony Leach" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 17, 2001 5:11 PM Subject: [PHP-WIN] variables in URL > How do I construct a URL to pass more than one variable t

[PHP-DB] Re: [PHP-WIN] released

2001-10-18 Thread George Lioumis
Yes, but mySQL 4.0 is alpha Release and Apache 1.3.22 for Win32 is not as stable as for Unix platforms So, let's wit a bit more! - Original Message - From: "suraj" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 18, 2001 10:55 AM Subject: [PHP-WIN] released > Hel

Re: [PHP-DB] Question In French.

2001-10-18 Thread George Lioumis
Il faut tu ecrire: if ($colonne["LIV_TYPE_EVT"] == 21) { $couleur = "yellow"; } else if ($colonne["LIV_TYPE_EVT"] == 1) { $couleur = "009933"; } else { $couleur = "FF"; } Georges Lioumis.

Re: [PHP-DB] https

2001-10-21 Thread George Lioumis
I think that you MUST retype the whole URL. George. - Original Message - From: "J-E-N" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 20, 2001 2:22 PM Subject: [PHP-DB] https hello, how can i switch from http to https without typing

[PHP-DB] Pass var from JavaScript to PHP

2001-11-13 Thread George Lioumis
Good day to all! Consider the following code: I want to get the text that the user writes into the text field into a php variable to use it in the same page. I want to use this text as a criteria to search for an entry in my mySQL DB using a LIKE statement in the select. Does anyone kno

Re: [PHP-DB] Re: Pass var from JavaScript to PHP

2001-11-13 Thread George Lioumis
TML? > Try... > > > > Then in your page have a php tag that checks for the presence of $Find (in > your case), e.g. > > if ($Find) { > sql = (SELECT * FROM table WHERE $criteria = "value"); > then the rest... > } > > -torrent > > "Geo

[PHP-DB] Re: [mysql-support] RE: [PHP-DB] Run php page automatically

2001-12-20 Thread George Loch
What if you are on win2K? - Original Message - From: "Jonathan Hilgeman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, December 20, 2001 12:22 PM Subject: [mysql-support] RE: [PHP-DB] Run php page automatically > I usually just cre

[PHP-DB] Re: php and accessconnection

2001-12-27 Thread George Nicolae
look at http://www.phpbuilder.com/columns/siddarth2228.php3 for a good tutorial. -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E

[PHP-DB] odbc insert

2001-12-29 Thread George Nicolae
pls help me with syntax for insert into mdb via odbc. -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP-DB] Re: odbc insert

2001-12-29 Thread George Nicolae
it's OK. I did it. -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "George Nicolae" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > pls help me with syn

[PHP-DB] odbc date

2001-12-30 Thread George Nicolae
for Win32(NT) and MSAcess 2000, whenever you retrieve a date column/field, php will automatically convert it to '/mm/dd hh:mm:ss' format regardless of the style of date you've denoted in Access how can I resolve this problem and print in a different format? -- Best regards,

[PHP-DB] Re: product selection from url ?

2001-12-30 Thread George Nicolae
"select * from your_database where pid=1234" -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Dave Carrera" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]

Re: [PHP-DB] odbc date

2001-12-31 Thread George Nicolae
i did it with date("F j, Y",strtotime(odbc_result($cur,"date"))). but i very curios about the query. it must looke like..? select date from my_table? -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.

Re: [PHP-DB] odbc date

2001-12-31 Thread George Nicolae
ery "select date from my_table" -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Andrew Hill" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Geo

Re: [PHP-DB] odbc date

2001-12-31 Thread George Nicolae
date() use a timestamp. I receive a string. if I echo odbc_result($cursor,"date") it shows like "2001-11-21 00:00". Can it echo (without date() function because I don't receive a timestamp) "21 Nov 2001"? -- Best regards, George Nicolae IT Manager

[PHP-DB] Re: Urgent!!!

2002-01-02 Thread George Nicolae
you can't make this query because type mismatches. -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Thomas "Omega" Henning" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]&quo

[PHP-DB] Re: Urgent!!!

2002-01-03 Thread George Nicolae
and who looks the query with "substr the date so i get only the year"? Type the exact query you make. -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Thomas "Omega" Henning" <[EMAIL PR

[PHP-DB] Re: Urgent!!!

2002-01-03 Thread George Nicolae
ecord is a date column id is an integer column -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Thomas "Omega" Henning" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAI

[PHP-DB] Re: Urgent!!!

2002-01-03 Thread George Nicolae
select substring_index(date_record,"-",1)+id as sum from test order by sum -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Thomas "Omega" Henning" <[EMAIL PROTECTED]> wrote in me

Re: [PHP-DB] How to querry two db in a single statement?

2002-01-04 Thread George Lioumis
Try the following: I believe that this should work (I haven't tried it though!!!) May the force be with you!!! George - Original Message - From: "Andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 3:50 PM Subject: [PHP-DB] How t

[PHP-DB] Re: Redirecting to a new page

2002-01-04 Thread George Nicolae
if ($myrow[Admin] == "Y"){ > header ("Location:admin.php"); > }else{ > header ("Location:user.php"); > } -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Matt Stewa

[PHP-DB] Re: hiding blank MySQL results?

2002-01-05 Thread George Nicolae
please give us some more code to help you. -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Nathon Jones" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

[PHP-DB] Re: Probably an easy question - blank search fields (PHP & MySQL)

2002-01-06 Thread George Nicolae
if (empty($var)) { } else { } -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Gary Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hiya, I'm w

[PHP-DB] Re: PHP/MySql - address book

2002-01-06 Thread George Nicolae
look at http://www.webmasterbase.com/article/228 -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Sg" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, >

[PHP-DB] Concept help required

2002-01-07 Thread George Pitcher
s to parse the data both ways. All the example I could find on Dates used 'today' as the example. I want to be able to play around with stored dates. Is my function method the correct way or is there another way? MTIA George in Edinburgh --- Outgoing mail is certified Virus Free. Check

Re: [PHP-DB] Concept help required

2002-01-07 Thread George Pitcher
can think of at least one other query which would be needed to cover another process. If a single query is taking so long, what will 6 do to my database's overall performance? Would indexing help? George - Original Message - From: "Miles Thompson" <[EMAIL PROTECTED]&g

Re: [PHP-DB] Concept help required

2002-01-07 Thread George Pitcher
]; $day = $today[2]; $year = $today[0]; $p_date = $day . "/" . $month . "/" . $year ; return $p_date; } function revdate($input) { $ztoday = explode("/",$input); $day = $ztoday[0]; $month = $ztoday[1]; $year = $ztoday[2]; $revdate = $year . "-" . str_pad($mon

Re: [PHP-DB] Concept help required

2002-01-08 Thread George Pitcher
ur comments tomorrow when I get back in. Regards George - Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "George Pitcher" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 1:07 PM Subject: Re: [PHP-DB] Concept help

[PHP-DB] Insert data selected from drop down list into mySQL table

2002-01-09 Thread George Lioumis
tion_block .= "$prd"; } I want to store into another table in my DB the product_id that corresponds to the product_name that the user has selected Any help greatly appreciated. George

Re: [PHP-DB] Concept help required

2002-01-09 Thread George Pitcher
/Lasso) and that as well as the dev databases being on my laptop, so is the MySQL/PHP solution. New laptop expected within a couple of weeks and this one will then be switched to Linux. Regards George --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.gri

Re: [PHP-DB] Concept help required

2002-01-10 Thread George Pitcher
eems to me that you are not offering this data > > to "the web", ie I can't get to it; > > > you are only offering it to the copyright fee-paying clients. Hence the > > publishers' argument seems > > > illogical/ignorant... > > Yes, exactly, bu

Re: [PHP-DB] Concept help required

2002-01-10 Thread George Pitcher
hen use this as an example of how to shift functionality out of PHP (the 'middle box') and into > SQL (the 'left-hand box')? Yes, please do. But if I could interject with a sub-concept question. Much of what I will be scratching my head about can probably be achieved with SQL

Re: [PHP-DB] Concept help required

2002-01-10 Thread George Pitcher
rname will be substituted inside the single quotes, eg > > SELECT Month, Score FROM scores WHERE Username = 'George Pitcher' > > =The second line throws the query at MySQL and receives two results by return. Firstly the logical: "did the > call work or not?" w

Re: [PHP-DB] MySQL Result Resource

2002-01-10 Thread George Pitcher
I was having something similar and solved it by wrapping the column names in parentheses: select password, 1 as auth from acl where (username='andrewd' and password=MD5(andrewd.madonna)); It might help. or eliminate something if I'm not right. George - Original Message ---

Re: [PHP-DB] convert yyyy/mm/dd to mm/dd/yyyy, how?

2002-01-14 Thread George Pitcher
pad($day, 2, "0", STR_PAD_LEFT); return $revdate; } I've stored these in a file which I include and any call to the db to display dates uses the dbdate() function and if I want to insert or update a date then I use the revdate() function. There are probably better ways to do

  1   2   >