My advice is to do all your queries in a MySQL application like PHPMyAdmin and make sure you get the results you want back. Thats always what I do when I meet a problem with a query, run the query in a application so I'm sure the query itself works. If you use a mac I recommend Sequel Pro (it's free) Sorry for the delayed help.
My advice is to do all your queries in a MySQL application like PHPMyAdmin and make sure you get the results you want back. Thats always what I do when I meet a problem with a query, run the query in a application so I'm sure the query itself works. If you use a mac I recommend Sequel Pro (it's free).
Sorry for the delayed help.
First of all, you don't have to use . (append) on the $messageid - vis: $query = "SELECT * FROM `Messages` WHERE `id` = '$messageid'"; Second, check to see if you actually returned a row and, (here's the clincher) use mysql_fetch_assoc() instead of mysql_fetch_array() - or you won't get the field names. If ( $Readmessages = mysql_fetch_assoc($request) ) { $sentfrom = $Readmessages'sentFrom'; if (strlen($sentfrom) > 0) { $query = "SELECT * FROM `Users` WHERE `id` = '$sentfrom'"; ... } } if you want to check your query, you can output it in your html, and look at the source: echo.
When code does somthing you don't expect it to -- double check your assumptions. 1) Make sure $messageid is populated with what you need 2) Make sure the row you're returning isn't null - i.e. Its working just the data is null.
The problem is it is displaying the message body in my browser and not where I want it to in the designated body area – Ralph The Mouf Sep 18 '09 at 19:01.
My advice is to do all your queries in a MySQL application like PHPMyAdmin and make sure you get the results you want back. Thats always what I do when I meet a problem with a query, run the query in a application so I'm sure the query itself works. If you use a mac I recommend Sequel Pro (it's free).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.