yogibear Posted January 26, 2007 Share Posted January 26, 2007 Hi my php is all working and everything is going well thanks to everyone that has helped me. ;D Just to make things look better how would i change an if statement so rather than displaying text it goes to a new page on the site. this is the current if statement[code]if ($num_rows > 0) { echo "ALREADY IN DATABASE";} else { echo "Working!";}[/code]many thanksyogi Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 26, 2007 Share Posted January 26, 2007 instead of echo, use header('Location: '.$newURL); Quote Link to comment Share on other sites More sharing options...
yogibear Posted January 26, 2007 Author Share Posted January 26, 2007 [quote author=jesirose link=topic=124160.msg514101#msg514101 date=1169830799]instead of echo, use header('Location: '.$newURL);[/quote]Works perfectly Many thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.