![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
if (($result) && (mysql_result ($result , 0) > 0)) { // continue here with the code that starts //$res = mysql_query ("SELECT * FROM type..... } else { die('Invalid query: ' . mysql_error()); } |
#3
| |||
| |||
|
|
The script below works fine for most codes, but I can only use the last two letters of hyphenated codes, such as these: us-ak, ca-ab In other words, I need to strip us- and ca- out of $mycode. |
|
I have another script that does just that, but I haven't been able to adapt it to this one. can someone show me how to write it? [...] $res = mysql_query ("SELECT * FROM gatesstatesart WHERE IDArea = '$mycode'") or die (mysql_error()); |
![]() |
| Thread Tools | |
| Display Modes | |
| |