plutomed Posted August 3, 2007 Share Posted August 3, 2007 I have added mod_rewrite to pages on my site and on one of the pages the php has stopped working and I duno why, I dunno what code to post. Any help ??? Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/ Share on other sites More sharing options...
teng84 Posted August 3, 2007 Share Posted August 3, 2007 explain what stop means Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315203 Share on other sites More sharing options...
plutomed Posted August 3, 2007 Author Share Posted August 3, 2007 Well I have a drop down box with the name page and it's inside a form which sends it to the php code via get, which then selects from the database where that page is in th database. The thing is it's setting the get variables but th php is not doing the code for some reason ??? Hope it helps Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315209 Share on other sites More sharing options...
teng84 Posted August 3, 2007 Share Posted August 3, 2007 do this first print_r($_GET); or echo the specific get your using hoping that you really have the get Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315214 Share on other sites More sharing options...
plutomed Posted August 3, 2007 Author Share Posted August 3, 2007 Ok for some reason it hasn't set the get variable ??? Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315226 Share on other sites More sharing options...
teng84 Posted August 3, 2007 Share Posted August 3, 2007 hmmmmm if your sure that ur sending query string then the regex for that mess up your code Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315230 Share on other sites More sharing options...
plutomed Posted August 3, 2007 Author Share Posted August 3, 2007 The mod_rewrite code is: RewriteRule ^coding/php website_coding.php?pm=php That works, it's just when I put that and setting a new get variable togetther it don't work, it works on another page but not this one for some reason ??? Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315234 Share on other sites More sharing options...
teng84 Posted August 3, 2007 Share Posted August 3, 2007 try RewriteRule ^([A-Za-z0-9-]+)/?$ website_coding.php?pm=$1 something like that Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315235 Share on other sites More sharing options...
plutomed Posted August 3, 2007 Author Share Posted August 3, 2007 Nope no diff. and I tried earlier aswell ??? Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315237 Share on other sites More sharing options...
teng84 Posted August 3, 2007 Share Posted August 3, 2007 can we see how you set the query string and the get variable Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315238 Share on other sites More sharing options...
plutomed Posted August 3, 2007 Author Share Posted August 3, 2007 $data_q2 = mysql_query("SELECT * FROM coding_data WHERE coding_type = '".$_GET['pm']."' AND page = '".$_GET['page']."'") or die(mysql_error()); There you go and you is on a roll tonight aint ya or whatever time it is there Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315240 Share on other sites More sharing options...
teng84 Posted August 3, 2007 Share Posted August 3, 2007 dude its 7:30 am here by the way what i mean is that how u format the QUERY STRING but did you try not using the mod rewrite try it and see if it works without that Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315251 Share on other sites More sharing options...
plutomed Posted August 4, 2007 Author Share Posted August 4, 2007 Yea it works without the mod_rewrite but not with it and I dunno why Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315442 Share on other sites More sharing options...
plutomed Posted August 4, 2007 Author Share Posted August 4, 2007 And what do you mean how I format the query string Quote Link to comment https://forums.phpfreaks.com/topic/63244-i-dunno-how/#findComment-315464 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.