niche Posted April 25, 2012 Share Posted April 25, 2012 (edited) test_120424.php has a single line of code: echo mysql_num_rows($keyword2); include 'test_120424.php'; returns the expected echo. header('Location: http://localhost/test_120424.php'); returns these messages: Notice: Undefined variable: keyword2 in E:\wamp\www\test_120424.php on line 2 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in E:\wamp\www\test_120424.php on line 2 Can I send a MySQL result resource through a header? If so how should I be thinking? Edited April 25, 2012 by niche Link to comment Share on other sites More sharing options...
justsomeguy Posted April 25, 2012 Share Posted April 25, 2012 You can't store a resource in the session or send it through any type of form or anything like that. 1 Link to comment Share on other sites More sharing options...
niche Posted April 25, 2012 Author Share Posted April 25, 2012 Great answer. Thanks jsg! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now