Jump to content

neddy

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

neddy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You Can Try.. RSS2HTML - free PHP script for dipslaying RSS feeds using html http://www.feedforall.com/download.htm i use it on my site...
  2. i search the forum before posting and couldnt find a solution that works first off i cannot change my php.ini, because my host doesnt allow me to.. ive requested it to be changed, but no reply yet, and i read somewhere hosts dont like changing it.. anyway im on linux hosting and my phpinfo says Server API - CGI so im guessing its the cgi version of php (?) ive tried adding the changes to a .htaccess file and get a 500 error, but then read later that it doesnt work on the cgi version of php.. now ive read that i can make another php.ini in my webs root and add upload_max_filesize = 10M to it but that makes other things on my site not work... i dont change anything other then upload the php.ini is there anywhere in the phpinfo that will tell me that a new php.ini wont work? im thinking the servers reading it but not working properly... but im completly confused  ??? also is there a setting i can stick in the new php.ini that will tell me if the new php.ini is working without causing to much hassle? cheers Neddy EDIT: even if i upload an empty php.ini other parts of my site stop working properly... EDIT2: ive added all the settings that can be changed by PHP_INI_PERDIR session.use_trans_sid = 0 zlib.output_compression = 0 allow_call_time_pass_reference = 1 asp_tags = 0 magic_quotes_gpc = 1 output_buffering = 0 output_handler = NULL register_argc_argv = 1 register_globals = 1 short_open_tag = 1 arg_separator.input = & auto_append_file = NULL auto_prepend_file = NULL upload_max_filesize = 10M post_max_size = 15M always_populate_raw_post_data = 0 and my pages seem to be working properly but that doesnt change the upload_max_filesize  ???
  3. doh as soon as i posted i found the answer my 1,2,3 are gonna be different numbers soi need or anyway i did [code]if($var == 1 || $var == 2 || $var == 3) {[/code] seems to be working thanks anyway :)
  4. hey ive been using php for a while now but never needed this before (or even know if its possible) so heres what i have.. [code] if($var = 1) { print $var." = 1"; }else{ print $var." doesnt = 1" } [/code] i need to change it to [code] if($var = 1 or 2 or 3) { .... [/code] how do i go about doing that? i tried a few ways but couldnt figure it out, and couldnt find anything more complex then what i already have on any online tutorials... cheers
  5. wow :D working perfectly so far thanks a bunch [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
  6. i have a table setup with the following in id game_id name now i want to filter/search the table for specific results so i did this [code]SELECT * FROM my_table WHERE name LIKE %$name% ORDER BY id DESC[/code] thats all well and good, i can use anything as $name and it returns all the rows with $name in name.. now i want to filter them more so i try [code]SELECT * FROM my_table WHERE game_id = '1' OR game_id = '2' AND name LIKE %$name% ORDER BY id DESC[/code] it gives me results where name is nothing like $name ? any idea where im going wrong? or is there a better way to do what im trying to do? if i havnt explained what im trying to do very well then please say so and ill try to explain a bit better [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] cheers EDIT: forgot to say if i just do [code]SELECT * FROM my_table WHERE game_id = '1' AND name LIKE %$name% ORDER BY id DESC[/code] it works but i want to be able to search for multiple game_ids...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.