![]() |
|
#1
|
|||
|
|||
mysql errorthis is my script:
$query1 = "SELECT count(*) FROM result WHERE class = '$Class' AND subjects='English' AND matrics IN ("SELECT matric FROM student WHERE course= '$f_kursus'")"; when i run, this error is appear: Parse error: syntax error, unexpected T_STRING in c:\wamp\www\ikm\papar.php on line 34 whereas line 34 refer to the above script. could anyone tell me where is the error............ |
|||
|
#2
|
||||
|
||||
Re: mysql errorLooks like there are extra double-quotes -- around the subquery.
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
|||
|
|||
Re: mysql erroroh yes! i've found it. but it still didn't work because apache server i'm using is doesn't support nested query. so, does anyone know what else alternative that can produce the same output instead of above nested query?
|
|
#4
|
||||
|
||||
Re: mysql errorQuote:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#5
|
|||
|
|||
Re: mysql errori'm using mysql v 4.something. but, that query has been settled. i've convert it to 2 single query. now, i have another one query that i failed to convert it. it already four days i worked for it, but i got no solution.
query=SELECT * FROM student WHERE course = 'TKK' AND matric NOT IN (SELECT matrics FROM result WHERE subject = 'mathemathics') |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 16:41 |
| Winsock error when compiling FLTK 2.0 Projects | mauriciorossi | FLTK Forum | 3 | 16-Aug-2005 11:18 |
| Help with syntax errors | PeteGallo | C Programming Language | 7 | 08-Aug-2005 21:30 |
| What is "Ambigious symbol" ??*( a compilation error) | small_ticket | C++ Forum | 2 | 07-Jan-2005 22:10 |
| Can enum have same name as class? | crystalattice | C++ Forum | 3 | 08-Dec-2004 17:43 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The