[Solved] What is an environment vector? [closed]

The “environment” parameter, traditionally named envp, is a zero-terminated array of char*. You can display it like this: int main(int argc, char* argv[], char* envp[]) { while (*envp) { std::cout << *envp << std::endl; envp++; } } It’s not part of POSIX (or any other standard) but supported by many compilers. solved What is an … Read more

[Solved] Using mysql query and result in php? [closed]

Your query looks fine. Use these statements to execute the query and get the count: $result = mysql_query($myquery); $rowCount = mysql_num_rows($result); If($rowCount !=0){ echo “NOT EMPTY”; }else{ echo “EMPTY”; } To FREE up the result: mysql_free_result($result); 2 solved Using mysql query and result in php? [closed]