Re: [PHP-DB] Permanent Cookies

2001-04-16 Thread Johannes Janson
Hi, could it be the setting of cookie_lifetime in your php.ini? or the coolie_path? just two thoughts cheers Johannes ""Lisa Elita"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 004f01c0c4df$1bd0e540$69fc2bca@hadinata">news:004f01c0c4df$1bd0e540$69fc2bca@hadinata... > I tried to use cookies with

Re: [PHP-DB] Checking database if already exsists

2001-04-16 Thread Johannes Janson
Hi, assuming you have unique passwords. $result = mysql_query("SELECT COUNT(*) AS used FROM userTable WHERE passowrd=$password"); $exists = mysql_fetch_object($result); if ($exists->used) { display error that pswd is already in use } If there is an entry in your DB with the password th

Re: [PHP-DB] How to stop blank entries

2001-04-16 Thread Miles Thompson
Dave, Go to www.thickbook.com, look at JM's tutorials and pick the one where she talks about custom error messages. It's exactly what you want. IN fact, here's the exact URL, but it is a site worth looing around: http://www.thickbook.com/extra/php_formcem.phtml Miles At 06:35 PM 4/16/01 +0100

FW: [PHP-DB] How to stop blank entries

2001-04-16 Thread Brunner, Daniel
> Hello!! > > Use an If statement... > > if (!$username=="") > exit > > else > ... > > > Or something like that > > Change the !$username to (!isset($username)) > > Or something like that... > > Just play around with the if statements...it works for me... > > But I may be wrong

[PHP-DB] Checking database if already exsists

2001-04-16 Thread DC
Hi again How do i check my database when someone trys to become a member to check a see if username password email address is already in use and show the the bit they need to change for my script to allow them to register. Thanks again in advance Dave C -- PHP Database Mailing List (http:

[PHP-DB] How to stop blank entries

2001-04-16 Thread DC
Hi All Firstly thanks to the people who have helped in the past with my questions... My issue: I have a registration script which allows new users of a site to become a member. All works very well BUT if a new user just hit enter on the blank form then a new account is created with all fields e

[PHP-DB] Moving The Pointer In An Array

2001-04-16 Thread SOHH Administration
Lets say you have and array called $contentarray which contains the following values in this order: 10,19,9,8,234,3 These values represent the articleID. So if a person was on my site reading an article the url would look like so: http://website.com/read.php?articleID=8 So, the article the user

Re: [PHP-DB] How to back up database..... ?

2001-04-16 Thread Jason Stechschulte
On Mon, Apr 16, 2001 at 12:40:05AM +0800, E K L wrote: > Hi all, >Is there anyone can tell me how to back up Mysql database from one server > to other server? Please advisethanks backup to zip: mysqldump --add-drop-table -u root -ppass database | gzip > /dir/database.gz -- Jason Stechs

[PHP-DB] Configuracion de PHP + Interbase

2001-04-16 Thread bnunez
Hola Quiero instalar PHP con apache en linux y conectarme a un servidor interbase corriendo en solaris. Ya tengo php, que mas necesito para "activar" la conexion a interbase?. Saludos, Ruben. Bienvenido Rubén Núñez Riveros <[EMAIL PROTECTED]> Centro Nacional

Re: [PHP-DB] MySQL Data to a HTML-Form

2001-04-16 Thread Johannes Janson
HI, > or any ohter form element. Johannes ""Denis Mettler"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I got Data from my Database, > but how can I show them in a textfiled within a html form? > Any ideas? > > Thanks in advance. > > -- > B

Re: [PHP-DB] DB connection problem?

2001-04-16 Thread Johannes Janson
Hi, is the query-line your line 35 or not? for further debugging put a if (! $result){ echo mysql_error(); } into the script to see what errormsg you get. Johannes ""Andrew Durk"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 9b9nad$9oi$[EMAIL PROTECTED]">news:9b9nad$9oi$[EMAIL PROTECTED]... > I c

Re: [PHP-DB] ERROR

2001-04-16 Thread Johannes Janson
Hi, it seems like there is an undefined index ;-) post some line around l. 302 for further help. Johannes "Matt Coyne" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all > > I am getting an error which I don't understand. It is: > > Warning: 0 is no

Re: [PHP-DB] Oracle session cursor

2001-04-16 Thread Manuel Lemos
Hello Doug, On 16-Apr-01 01:29:30, you wrote: >As you all know, PHP is stateless. Meaning that once the script ends, all >connections are closed and the program is done. >I have a project where I need to do just 1 query to oracle, but only get one >row per page. So on the first page it does th

Re: [PHP-DB] Newbie : URGENT : SELECT ... AS [solution]

2001-04-16 Thread Matt Coyne
Thanks for the help, but I have been informed as to how to get through this one. I can use '...HAVING age...' instead of '...WHERE age...' and the correct reults are returned. matt //t h r e e z e r o : : : the mill, millstone lane, leicester, le1 5jn e : [EMAIL PROTEC

Re: [PHP-DB] sessions and page has expired warning

2001-04-16 Thread Aleksey Yarilovets
Hi! I had exactly the same problem and i found the script that does the job. At the begining of your script write this: if ( $rd == 1 ) { $tmp_str_store = "var_list_str"; session_register ( "$tmp_str_store" ); $$tmp_str_store = ""; foreach ($HTTP_POST_VARS as $k => $v) if (