![]() |
hi , a project problem !!!!!!!!
hi im working on a project and when i write this code
PHP Code:
Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\pal\listvid.php on line 43 whats wrong ? |
php Code:
Missing periods for concatenation. |
but it still give this error in this code
PHP Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\pal\listvid.php on line 44 |
Tiens, un français ^^ Désolé, pour que tout le monde comprenne, je vais écrire en anglais ;)
So, First, use the "or die" postfix statement at the end of your SQL query. It'll give you more details on your error. PHP Code:
|
wé j px parler francais lol
well it gives this problem Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\pal\listvid.php on line 44 |
pfff, I haven't seen it before -_-
You have forgotten the quotes before "cat". Try with that: PHP Code:
If there are still errors, do this: Verify that $_GET["cat"] is well formated (alphanumeric). Idem for $premierMessageAafficher and $nombreDeMessagesParPage. Both must be numerics without coma. |
Group is a MySQL Keyword, you need to put it into quotes IE.
Code:
$res = mysql_query("Code:
$res = mysql_query("In future you'd probably be best entering your query into phpMyAdmin if available, this will give a more detailed response. |
PHP Code:
Also make a NOTE in your PHP diary if you have one, to finish up quotes before you type a var between them. Zend Studio or phpDesigner2008 will also auto-correct or display the errors for you. (no clue on other programs tho) IF you are using DreamWeaver, I should suggest to ONLY use it for HTML and CSS scripting. Use a PHP editor for all the other work. My vote goes out to phpDesigner and Zend, as I initially said. Good luck and please DO read the comments. I haven't tried it but it is my most common way (without using sprinf()) so it should work. Have a good one. Mark |
thanks it works
|
| All times are GMT. The time now is 04:22 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0