Search found 22 matches

by original89
Mon Feb 27, 2006 2:49 pm
Forum: PHP - Code
Topic: should i use $_SERVER['REQUEST_URI'] ?
Replies: 11
Views: 734

okay, its working but i have a little problem when i have a search result where not all of the $_GET variables appear in the url then the echo doesnt work at all! they both have to be returned to make this work, otherwise nothing shows.... any ideas? if ( isset($_GET) ) { $type = ''; $color = ''; if...
by original89
Mon Feb 27, 2006 2:16 pm
Forum: PHP - Code
Topic: should i use $_SERVER['REQUEST_URI'] ?
Replies: 11
Views: 734

sorted it, i just declare it as the first array

Code: Select all

if ( isset($_GET['type']) ) 
        { 
           $aac_type = $_GET['type'][0]; 
       } 
  }
and it works..

thanks me.. :lol:
by original89
Mon Feb 27, 2006 1:54 pm
Forum: PHP - Code
Topic: should i use $_SERVER['REQUEST_URI'] ?
Replies: 11
Views: 734

do i need to decode it or something the [] one will not get written and it returns Array

or is there anything i can do to stop the [] appearing in the first place it comes froma drop down box on a form from posted from a previous page..

many thanks.

:(
by original89
Mon Feb 27, 2006 11:02 am
Forum: PHP - Code
Topic: should i use $_SERVER['REQUEST_URI'] ?
Replies: 11
Views: 734

hi this seems to have done the trick thanks very much.. although i have one query string that just doesnt want to work. in the url its like this type%5B%5D=cone if ( isset($_GET['type%5B%5D']) ) { $type= $_GET['type%5B%5D']; } and also if ( isset($_GET['type[]']) ) { $type= $_GET['type[]']; } but ne...
by original89
Mon Feb 27, 2006 9:34 am
Forum: PHP - Code
Topic: should i use $_SERVER['REQUEST_URI'] ?
Replies: 11
Views: 734

okay ive pointed myself in the right direction would i just include this in the search results page.?


<?php echo $_SERVER['QUERY_STRING']; ?>


and my text would be

Youve arrived the the best place in the world to buy <? echo $_REQUEST['colour']; ?> <? echo $_REQUEST['type']; ?>
by original89
Mon Feb 27, 2006 9:19 am
Forum: PHP - Code
Topic: should i use $_SERVER['REQUEST_URI'] ?
Replies: 11
Views: 734

hi thanks for that reply well im not too sure what it is im asking for because im not too sure either.. i think you might be on the right lines though but i think i might have a problem using php_self as i re-write my php pages into .html which is why i have been using $_SERVER['REQUEST_URI'] what i...
by original89
Mon Feb 27, 2006 8:50 am
Forum: PHP - Code
Topic: should i use $_SERVER['REQUEST_URI'] ?
Replies: 11
Views: 734

should i use $_SERVER['REQUEST_URI'] ?

Hi I am currently using if ($_SERVER['REQUEST_URI'] == "/thingy_browse.html") to generate meta tags and descriptions on the fly that are related to the contents of this page but i would like to be able to create them for more specific results. As with most php things i pass some variables ...
by original89
Sat Feb 25, 2006 4:51 pm
Forum: Databases
Topic: major issue, nobody can log in - migrating host - SOLVED..
Replies: 17
Views: 1571

hi yeah its working okay, i had a problem with my php.ini file and that the format had changed for registering globals to on and to set the session id. this was the old one register_globals = On session.use_trans_sid = 0 it now looks like this register_globals = yes session.use_trans_sid = yes i als...
by original89
Tue Feb 21, 2006 11:07 am
Forum: Databases
Topic: major issue, nobody can log in - migrating host - SOLVED..
Replies: 17
Views: 1571

thanks, they are suggesting to go onto a vps solution.

if i change it on the table / column should i use

utf8_bin for case sensitive.?

is there any way to pass this in my connect string so all connection use this?

or do you think i can force this in my php?
by original89
Tue Feb 21, 2006 10:44 am
Forum: Databases
Topic: major issue, nobody can log in - migrating host - SOLVED..
Replies: 17
Views: 1571

mmn not when im on a shared server they wont..

i dont know what to do now.. :cry:
by original89
Tue Feb 21, 2006 10:32 am
Forum: Databases
Topic: major issue, nobody can log in - migrating host - SOLVED..
Replies: 17
Views: 1571

hi so do you think my user names / passwords might not be the issue, originally they would have been input with something like $md5_pass = md5($user_pass); originally this was case sensitive against v4 and the v4.1 upgrade is now looking up the values using $md5_pass = md5($user_pass); so would this...
by original89
Tue Feb 21, 2006 10:13 am
Forum: Databases
Topic: major issue, nobody can log in - migrating host - SOLVED..
Replies: 17
Views: 1571

hi feyd my db user can log in as the app is working and retrieving data, its just the users in the application that cant log in. my users table has various columns including username and userpass now colated as latin1_swedish_ci . eg in v4.1 it looks like this. username pass collation me dcc3b5aa765...
by original89
Tue Feb 21, 2006 9:44 am
Forum: Databases
Topic: major issue, nobody can log in - migrating host - SOLVED..
Replies: 17
Views: 1571

hi feyd thanks for that, that sound like it might be it. Although this is the admin area of my application and not the database, although the users passwords are encrypted in the database. eg 5f4dcc3b5aa765d61d8327deb882cf99 Does that make any difference. Does this mean i need to make some changes t...
by original89
Tue Feb 21, 2006 8:29 am
Forum: Databases
Topic: major issue, nobody can log in - migrating host - SOLVED..
Replies: 17
Views: 1571

major issue, nobody can log in - migrating host - SOLVED..

Hi folks has anyone got any ideas on this, bit of a disaster really... im in the process of migrating hosts and have run into a bit of a major issue, nobody can log in.. Thing is i get no SQL errors, no php errors and therfore dont have much to go on, globals are on in my php ini and i can view thin...
by original89
Thu Nov 18, 2004 5:55 am
Forum: PHP - Code
Topic: anti spambot email harvesting - email contact form
Replies: 14
Views: 1107

i think im getting there.

okay ive been pondering on this and my head is really hurting now, i am a bit of a newbie at this so its a bit tricky for me to get my head around this, apologies. so i would only extract the email after the form has been submitted, replacing my existing code with the listing id. currently on submit...