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:
PartyPo
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";
> $mysql_result=mysql_query($sq
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 filtere
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,
products.number_
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, products.tit
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, products.number
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.
Full Name:
Email:
UserName:
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
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 t
"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 us
> 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
> cli
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
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 t
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";
>}
>
>
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
Or you could just write
$fp1 = Fopen("D:\\log.txt","a+");
fwrite($fp1,"$start\n$array[0]\n$array[1]\n");
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
> 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\
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 M
18 matches
Mail list logo