The reason im using $tempid is i was seeing if the fact that i was changing it to a number was the problem. The problem is, that I am running query, which higher in the code is check to see if id exists, as it is used to determine which page is shown, and will only make it this far if it is a number, and is not nil. But when the query returns, it doesn't give me any errors, but it doesn't return anything in the table, i am using $myallyw["Name"] to get the name value, which is in the table its getting 'alliances' but the echo only shows 'And the name of the alliance is ' no name after it, however it does show '$mehallyw' (i know, im really creative with the variable names .-.) what it is supposed to, the number. And the WHERE is correct as far as i know, there is a column in the table where id does equal the number in '$mehallyw' so I am not sure that when i am using either print_r() or echo() its not printing anything.