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 Link to comment https://forums.phpfreaks.com/topic/35831-just-a-quick-question/ Share on other sites More sharing options...
Jessica Posted January 26, 2007 Share Posted January 26, 2007 instead of echo, use header('Location: '.$newURL); Link to comment https://forums.phpfreaks.com/topic/35831-just-a-quick-question/#findComment-169868 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 Link to comment https://forums.phpfreaks.com/topic/35831-just-a-quick-question/#findComment-169891 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.