[PHP] Simple Problem

2005-04-12 Thread PartyPosters
I can't figure out what I am doing wrong, this sql string seems to filter out the information I want but it duplicates the all info, as 'num_rows' is total of rows in the table and not the correct value of the filtered information? $sql=SELECT products.productID, products.title,

Re: [PHP] Simple Problem

2005-04-12 Thread John Nichel
PartyPosters wrote: I can't figure out what I am doing wrong, this sql string seems to filter out the information I want but it duplicates the all info, as 'num_rows' is total of rows in the table and not the correct value of the filtered information? $sql=SELECT products.productID,

RE: [PHP] Simple Problem

2005-04-12 Thread Pablo Gosse
snip I can't figure out what I am doing wrong, this sql string seems to filter out the information I want but it duplicates the all info, as 'num_rows' is total of rows in the table and not the correct value of the filtered information? $sql=SELECT products.productID, products.title,

Re: [PHP] Simple Problem

2005-04-12 Thread Richard Davey
Hello PartyPosters, Tuesday, April 12, 2005, 4:24:34 PM, you wrote: P I can't figure out what I am doing wrong, this sql string seems to P filter out the information I want but it duplicates the all info, P as 'num_rows' is total of rows in the table and not the correct P value of the filtered

Re: [PHP] Simple Problem

2005-04-12 Thread Duncan Hill
On Tuesday 12 April 2005 16:24, PartyPosters typed: $sql=SELECT products.productID, products.title, products.number_per_box, products.stock_level, products.image, users.username, users.email, users.userID FROM users, products WHERE products.userID = $userID;

Re: [PHP] Simple Problem

2005-04-12 Thread Joseph Connolly
I think what you mean/need is: $sql=SELECT products.productID, products.title, products.number_per_box, products.stock_level, products.image, users.username, users.email, users.userID FROM users, products WHERE products.userID = users.userID AND userID = $userID; John Nichel wrote:

[PHP] Simple Problem about forms and sending info to db

2004-09-14 Thread Logan Moore
I am currently coding a cms. So far I have completed the security login/password system but have now moved on to a new area of php. Uploading info to a database. This is the code as it stands now. ?php if($_GET[action] == ){echo form name=adduser method=post action=adduser.php?action=adduser

Re: [PHP] simple problem about authentication

2003-02-26 Thread Oliver Witt
1lt John W. Holmes schrieb: I'm trying to set up a password section on my website. But I don't want a window popping up asking for a username and password. I'd rather like to have a form that submits the data. I did that and it works fine, but the browser seems to not save the username

Re: [PHP] simple problem about authentication

2003-02-26 Thread Ernest E Vogelsinger
At 14:22 26.02.2003, Oliver Witt spoke out and said: [snip] if(isset($user) isset($pw)){ $user = ucwords(strtolower($user)); $PHP_AUTH_USER = $user; $PHP_AUTH_PW = $pw;} [more...] And this works fine for just this page. Whenever I click on a link to a page

Re: [PHP] simple problem about authentication

2003-02-26 Thread Oliver Witt
Ernest E Vogelsinger schrieb: At 14:22 26.02.2003, Oliver Witt spoke out and said: [snip] if(isset($user) isset($pw)){ $user = ucwords(strtolower($user)); $PHP_AUTH_USER = $user; $PHP_AUTH_PW = $pw;} [more...] And this works fine for just this

[PHP] simple problem about authentication

2003-02-25 Thread Oliver Witt
Hi, I'm trying to set up a password section on my website. But I don't want a window popping up asking for a username and password. I'd rather like to have a form that submits the data. I did that and it works fine, but the browser seems to not save the username and password, because if i click on

Re: [PHP] simple problem about authentication

2003-02-25 Thread 1LT John W. Holmes
I'm trying to set up a password section on my website. But I don't want a window popping up asking for a username and password. I'd rather like to have a form that submits the data. I did that and it works fine, but the browser seems to not save the username and password, because if i click

[PHP] simple problem

2002-09-04 Thread Cirkit Braker
what would be the best, most efficient way to print something every three times a loop runs for ($i=0; $i$num_products; $i++) { echo something; } this happens every time it runs and has to stay that way but every three times i want to print additional info. Any

Re: [PHP] simple problem

2002-09-04 Thread Rasmus Lerdorf
Inside the loop do: if(!($i%3)) { whatever } -Rasmus On Wed, 4 Sep 2002, Cirkit Braker wrote: what would be the best, most efficient way to print something every three times a loop runs for ($i=0; $i$num_products; $i++) { echo something; } this

Re: [PHP] simple problem

2002-09-04 Thread Adam Williams
if ($i%3 = 0) { echo something; } On Wed, 4 Sep 2002, Cirkit Braker wrote: what would be the best, most efficient way to print something every three times a loop runs for ($i=0; $i$num_products; $i++) { echo something; } this happens every time it runs

[PHP] Simple problem

2002-02-19 Thread Roman Duriancik
I need insert some variable ito log.txt file but every item (variable) must be on other line how to do this ? $fp1 = Fopen(D:\\log.txt,a+); fwrite($fp1,$start); fwrite($fp1,$array[0]); fwrite($fp1,$array[1]); . fwrite($fp1,$end); Fclose($fp1); roman -- PHP General Mailing

Re: [PHP] Simple problem

2002-02-19 Thread Jeff Van Campen
I need insert some variable ito log.txt file but every item (variable) must be on other line how to do this ? If I am understanding your question correctly, you need to add a newline character (\n) at then end every line. Like so: $fp1 = Fopen(D:\\log.txt,a+); fwrite($fp1,$start\n);

Re: [PHP] Simple problem

2002-02-19 Thread Richard KS
Or you could just write snip $fp1 = Fopen(D:\\log.txt,a+); fwrite($fp1,$start\n$array[0]\n$array[1]\n); snip to simplify... -- Richard, oblivion creations http://oblivion.lunamorena.net [EMAIL PROTECTED] +4+ (0) 736 849 531 for sure contact.. Jeff Van Campen [EMAIL PROTECTED] wrote