|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
MySQL - if ???
Hi.
I have used this clause(?): <code> $query = "SELECT * from $table WHERE name='$name'"; mysql_query($query); // check to see if there are any entries under that name </code> now I am using an 'if' statment, however I do not know the right thing to write. <code> if (I_NEED_TO_PUT-RECIEVED_RESULST_OR_SOMTHING != 0) { echo "Name already chosen - please try again."; } else { $query = "INSERT INTO... </code> e.t.c. I am not sure what to put in the 'if' statement. Please help Thanks! |
|
#2
|
|||
|
|||
|
RE: MySQL - if ???
|
|
#3
|
|||
|
|||
|
RE: MySQL - if ???
cheers!
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > MySQL - if ??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|