Jump to content

[solved]is my coding logic correct.


redarrow

Recommended Posts

[b]solved[/b]


advance thank you.

Is my syntex correct i get a phase error cheers.

i want if the $recor['value'] empty then echo message

cheers


[code]
<?php
database connection

$query2="select * from members where name='$name' and password='$password'";
$result2=mysql_query($query2);

while($recor=mysql_fetch_assoc($result2)){


if( (empty($recor['email_activated']))&& (empty($recor['paypal_payment_payed']))&& (empty($recor['paypal_status'])) ){

echo "sorry acctivate your account via email";
}
?>
[/code]
Link to comment
Share on other sites

i didnt ask for a leture on || ors and && i undestand all that i am not stupid JENK i solved the problam i missed a bracket look and see ok.

sorry jenk but you dont seem to exsplain all the code you post in this forum i no your good at what you do and probley a real php auther but the guide lines state that all forum helpers should show examples and exsplain the example in plain english.

advnce thank you.
Link to comment
Share on other sites

I did explain, in plain English too. You did not - You asked for advice on your logic, I gave advice on your logic.

Also note, this is a public discussion forum. Hence it being open to discussion.

So next time I explain the use of || or && I have to post an example?

Ok.

[code]<?php

$a = 1 || 2;

$b = 1 && 2;

?>[/code]

done.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.