Re: [PHP-DB] Newbie Question $2

2014-06-18 Thread Michael Stowe
Can we kill this thread? Or can you guys continue the conversation between yourselves. We now have 8 emails pertaining to the technical question, and 8 emails ranting about him asking it. I understand that some people do not believe this is the appropriate forum for that question - but personal

Re: [PHP-DB] Newbie Question $2

2014-06-18 Thread Jim Giner
On 6/18/2014 2:16 PM, Aziz Saleh wrote: On Wed, Jun 18, 2014 at 2:13 PM, Karl DeSaulniers wrote: Sent from losPhone On Jun 18, 2014, at 7:56 AM, Jim Giner wrote: On 6/18/2014 12:31 AM, Ethan Rosenberg, PhD wrote: On 06/17/2014 12:02 PM, onatawah...@yahoo.ca wrote: Hi Ethan, Here are

Re: [PHP-DB] Newbie Question $2

2014-06-18 Thread Aziz Saleh
On Wed, Jun 18, 2014 at 2:13 PM, Karl DeSaulniers wrote: > > > Sent from losPhone > > > On Jun 18, 2014, at 7:56 AM, Jim Giner > wrote: > > > >> On 6/18/2014 12:31 AM, Ethan Rosenberg, PhD wrote: > >>> On 06/17/2014 12:02 PM, onatawah...@yahoo.ca wrote: > >>> Hi Ethan, > >>> > >>> Here are some

Re: [PHP-DB] Newbie Question $2

2014-06-18 Thread Karl DeSaulniers
Sent from losPhone > On Jun 18, 2014, at 7:56 AM, Jim Giner wrote: > >> On 6/18/2014 12:31 AM, Ethan Rosenberg, PhD wrote: >>> On 06/17/2014 12:02 PM, onatawah...@yahoo.ca wrote: >>> Hi Ethan, >>> >>> Here are some things to clean up your code: >>> >>> Your line: >>> >>> $phn = $_POST[phone

Re: [PHP-DB] Newbie Question $2

2014-06-18 Thread Jim Giner
On 6/18/2014 12:31 AM, Ethan Rosenberg, PhD wrote: On 06/17/2014 12:02 PM, onatawah...@yahoo.ca wrote: Hi Ethan, Here are some things to clean up your code: Your line: $phn = $_POST[phone]; should use quotations as follows: $phn = $_POST['phone']; Your line: $sql1 ='select Lname, Fname fr

Re: [PHP-DB] Newbie Question $2

2014-06-17 Thread Ethan Rosenberg, PhD
On 06/17/2014 12:02 PM, onatawah...@yahoo.ca wrote: Hi Ethan, Here are some things to clean up your code: Your line: $phn = $_POST[phone]; should use quotations as follows: $phn = $_POST['phone']; Your line: $sql1 ='select Lname, Fname from Customers where Phone = $Phn '; Should use doubl

Re: [PHP-DB] Newbie Question $2

2014-06-17 Thread onatawah...@yahoo.ca
Hi Ethan, Here are some things to clean up your code: Your line: $phn = $_POST[phone]; should use quotations as follows: $phn = $_POST['phone']; Your line: $sql1 ='select Lname, Fname from Customers where Phone = $Phn '; Should use double quotes if you need the variable to be interpreted:

Re: [PHP-DB] Newbie Question $2

2014-06-16 Thread Mike Stowe
Oh a few quick things. First, you can use substr to break up the phone instead of grabbing characters- might be a little easier to read long term. Secondly, mysql_real_escape_string will return the cleaned string, but doesn't change the original variable. So you'll need $phn = mysql_real_esc

Re: [PHP-DB] Newbie Question $2

2014-06-16 Thread Karl DeSaulniers
On Jun 16, 2014, at 10:05 PM, Karl DeSaulniers wrote: > On Jun 16, 2014, at 9:58 PM, Ethan Rosenberg > wrote: > >> Dear List - >> >> I have the following code: >> >> The input from the form is a 10 digit string [1234567890] which is converted >> to phone number format [123-456-7890] >> >>

Re: [PHP-DB] Newbie Question $2

2014-06-16 Thread Aziz Saleh
On Mon, Jun 16, 2014 at 10:58 PM, Ethan Rosenberg < erosenb...@hygeiabiomedical.com> wrote: > Dear List - > > I have the following code: > > The input from the form is a 10 digit string [1234567890] which is > converted to phone number format [123-456-7890] > > $phn = $_POST[phone]; > $phn = (str

Re: [PHP-DB] Newbie Question $2

2014-06-16 Thread Karl DeSaulniers
On Jun 16, 2014, at 9:58 PM, Ethan Rosenberg wrote: > Dear List - > > I have the following code: > > The input from the form is a 10 digit string [1234567890] which is converted > to phone number format [123-456-7890] > > $phn = $_POST[phone]; > $phn = (string)$phn; > $dsh = '-'; > $Phn = >

Re: [PHP-DB] Newbie Question - mysql_select_db fails with access denied.

2004-09-24 Thread Christian Schlaefcke
When I switch back to user root with empty password and use mysql_connect("localhost", "root") it works. I just found out when I set the permission for "myuser" to "localhost" instead of "any" it works also for "myuser". Now I have to check out why I canÂt use passwords. Maybe the PHP Version IÂm

Re: [PHP-DB] Newbie Question - mysql_select_db fails with access denied.

2004-09-24 Thread Pablo M. Rivas
You're right: if you use mysql_connect("localhost", "root",""); you''ll get "acces denied for user [EMAIL PROTECTED] if you use mysql_connect("localhost"); you'll get "Access denied for user @localhost" I'll google for a while... but.. to solve YOUR problem, just use: mysql_connect("localhost","us

RE: [PHP-DB] Newbie Question - mysql_select_db fails with access denied.

2004-09-24 Thread Christian Schlaefcke
I have chosen an empty password. I know that this is a security problem. IÂm using it for testing at the moment only. I use it because there also seems to be an issue with php connecting to mysql servers with verions > 4.1. When trying to connect with password I get this: Connect failed : Client

RE: [PHP-DB] Newbie Question - mysql_select_db fails with access denied.

2004-09-24 Thread Peter Lovatt
Hi try $db = mysql_connect("localhost", "myuser","mypassword") - without it you are not submitting a password Peter > -Original Message- > From: Christian Schlaefcke [mailto:[EMAIL PROTECTED] > Sent: 24 September 2004 13:31 > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Newbie Question

Re: [PHP-DB] Newbie Question - mysql_select_db fails with access denied.

2004-09-24 Thread John
This might be a stupid idea, but did you remember to issue the Flush Privelages; command to the mysql database after granting your user all the rights? --John Christian Schlaefcke <[EMAIL PROTECTED]> wrote: Hi Folks, I want to do something like the following: $db = mysql_connect("localhost",

RE: [PHP-DB] Newbie question

2004-03-24 Thread Hutchins, Richard
Try: > -Original Message- > From: Gajo Csaba [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 24, 2004 4:10 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Newbie question > > > Hi! > I'm new to PHP, so this may be an easy question. I tried to make a > simple form-page, where the u

Re: [PHP-DB] newbie question

2004-02-13 Thread Peter Beckman
On Fri, 13 Feb 2004, t wrote: > hi, > > i am relatively new to php and new to this email list. > > i have what i think are fairly simple questions about using mysql and > php. i have done some research and can't seem to find the answer i > need. > > # 1. i want to set the date format to display da

Re: [PHP-DB] newbie question on data accumulation

2003-11-12 Thread CPT John W. Holmes
From: "Joffrey Leevy" <[EMAIL PROTECTED]> > Curious as to what happens after data is repeatedly > selected from a mysql table overtime. Does it > accumulate as junk data, stored at some location and > eventually slow down the database/program/server? > Does any purging have to take place? I woul

RE: [PHP-DB] Newbie Question - PHP and MSACCESS

2003-02-17 Thread Gary . Every
//Place your request into a variable: $result = odbc_do($connection,"select * from events where id=$id"); $var = odbc_fetch_row($result); // Now you have an array to work on foreach($var as $line){ //Do your formatting thusly: echo ' ' . $line[0] . '

RE: [PHP-DB] Newbie Question - PHP and MSACCESS

2003-02-16 Thread Dennis Cole
$cnx = odbc_connect( 'DSN' , 'USER', 'PASS' ); if (!$cnx) { ?>Could not connect to ODBCmailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 4:01 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Newbie Question - PHP and MSACCESS Hi, Am using php to open a customer's msaccess file. Fi

RE: [PHP-DB] Newbie-Question: What's that @?

2002-10-30 Thread Marcus Fleige
great! @ryan & josh: thank you for the quick answers! :-) marcus -- ^v^ [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Newbie-Question: What's that @?

2002-10-30 Thread Josh Johnson
It suppresses error messages and warnings when you call a function, regardless of your level of error reporting. So yeah, it is like batch programming :) -- Josh -Original Message- From: Marcus Fleige [mailto:marcus.fleige@;gmx.de] Sent: Wednesday, October 30, 2002 7:05 PM To: PHP-Mail

RE: [PHP-DB] Newbie-Question: What's that @?

2002-10-30 Thread Ryan Jameson (USA)
Well the only difference I see is the ? ... hehe... but if you are refering to the @ symbol then you are correct ... ignore errors... :-) <>< Ryan -Original Message- From: Marcus Fleige [mailto:marcus.fleige@;gmx.de] Sent: Wednesday, October 30, 2002 5:05 PM To: PHP-Mailinglist Subject:

Re: [PHP-DB] Newbie question - other way than insert statement?

2001-11-21 Thread Daniel Schwab
ok, thnx > No, but SQL is your friend *lol* greez daniel -- 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] Newbie question - other way than insert statement?

2001-11-20 Thread Miles Thompson
No, but SQL is your friend, and is actually easier than messing around with recordsets, once you get the hang of it. The exact form of your INSERT statement will depend a bit on the database are you using, but the following is typical. This is MySQL syntax, I believe PostgresSQL is similar. I

Re: [PHP-DB] Newbie Question

2001-11-08 Thread Kodrik
>>Hi Kodrik: I just looked at your function and would like to use it myself, but shouldn't the ampersand line: $copy=eregi_replace ("&", "&", $copy); look like this instead? So it matches the other lines that have a symbol replaced by HTML?? $copy=eregi_replace ("&", "&", $copy); Cheers. Russ<<

Re: [PHP-DB] Newbie Question

2001-11-08 Thread Russ Michell
Yes there is: Using a php function called: nl2br() When the data is called from the db and printed to the page use $textdata = nl2br($textdata) This will preserve the enter button being pressed. Regards: Russ On Thu, 08 Nov 2001 09:54:16 -0600 Jay Fitzgerald <[EMAIL PROTECTED]> wrote: > Ok, I

RE: [PHP-DB] Newbie Question: Convert SELECT to DELETE statement in mysql

2001-10-19 Thread Rick Emery
5 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Newbie Question: Convert SELECT to DELETE statement in mysql No, I am not trying to delete with a select statement. That was just there to show my tables, fields, etc. So if I understand what you are saying I can not do a delete statement with a join in i

Re: [PHP-DB] Newbie Question: Convert SELECT to DELETE statement in mysql

2001-10-19 Thread Heikki Tuuri
Hi! In MySQL-4.0.0 you can delete from several tables in a join: DELETE t1, t2 FROM t1, t2, t3 WHERE ...; But 4.0.0 is still alpha, and it will take some months for it to stabilize. No compact or defrag is normally needed with MySQL. Regards, Heikki http://www.innodb.com Shaun Honsvick wrote

Re: [PHP-DB] Newbie Question: Convert SELECT to DELETE statement in mysql

2001-10-18 Thread Shaun Honsvick
No, I am not trying to delete with a select statement. That was just there to show my tables, fields, etc. So if I understand what you are saying I can not do a delete statement with a join in it. I would have to query each individual row for the ID that need to be deleted, delete the row in the

Re: [PHP-DB] Newbie question

2001-05-03 Thread ~BD~
EXACTLY what I was looking for... Thanks! http://www.bustdustr.net Home of Radio Free Bd - Original Message - From: CC Zona <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 1:42 PM Subject: Re: [PHP-DB] Newbie question > In article <034

Re: [PHP-DB] Newbie question

2001-05-03 Thread CC Zona
In article <034101c0d3f3$0dd747e0$41041dd8@winbox>, [EMAIL PROTECTED] ("~BD~") wrote: > at the end of my script, I run a set of closing and clean-up procedures.. > what I would like to be able to do is that when a user bails out of the > script by closing the browser or leaving the site/page, de

Re: [PHP-DB] newbie question on form..

2001-03-25 Thread Andreas D. Landmark
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 At 25.03.2001 22:36, you wrote: >Hello boys that's ok?? well >I have this question >I connect to a database (on interbase 6) and retrive some datas from a >table... >now i want to create a form where the input field show old datas into

Re: [PHP-DB] newbie question

2001-02-05 Thread Lisa Elita
]> Sent: Monday, February 05, 2001 9:49 AM Subject: Re: [PHP-DB] newbie question > Hi Lisa, > > >Can search engines index any HTML pages that have .php as its extension (any > >.php pages without a '?' or '&' in the URL) ? For example: > >http://

Re: [PHP-DB] newbie question

2001-02-04 Thread Victor Foitzik
Hi Lisa, >Can search engines index any HTML pages that have .php as its extension (any >.php pages without a '?' or '&' in the URL) ? For example: >http://www.blablabla.com/blabla.php > >Thanks, >Lisa E yes they can, but my experience is, that most search engine robots do _not_ index pages endi

Re: [PHP-DB] newbie question

2001-01-27 Thread jaskirat singh
Yes, It will index the page as any html page At 10:58 PM 1/27/01 +0700, Lisa Elita wrote: >Can search engines index any HTML pages that have .php as its extension (any >.php pages without a '?' or '&' in the URL) ? For example: >http://www.blablabla.com/blabla.php > >Thanks, >Lisa E > > > > >--