Jump to content

trvo

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.trevb.com/

Profile Information

  • Gender
    Male
  • Location
    Bognor Regis, UK

trvo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Perfect, yes, that works! Thanks again for the help, seems like a very nice community, I will stick around and help out where I can Kind Regards - Trev
  2. Sorry, that's my mistake, I'm quite deep into this, I was getting confused as to which pages pull data from where...Best get organised...I'm up to 200 9kb-ish pages so far and counting Thanks - Trev
  3. Thanks a ton, guess I better find some cunning way to 're word' them. Thanks again for all the help guys! Trev
  4. That is currently how it works... User submits HTML form > PHP creates .ini file > More forms add more data to .ini file > .ini file reads back with 1 / 0 in the Yes / No fields when pulled back via php. Yes / No fields are always radios. However, when you actually open the newly created .ini it has the correct value of Yes / No. Trev
  5. Please note, this only happens when the data is a Yes or No. Other data values output fine. Kind Regards - Trev
  6. To access the .ini data I am using this: INI file: [Options] field=Yes PHP Code: // Build an array of data from the ini file $ini_array = parse_ini_file($ini_filename); // Output the data for the field: 'field' echo $ini_array['field']; // Outputs a 1 The MySQL code is as follows (the content of field is 'Yes' but outputs a 1): $id=$_GET['id']; $query = "SELECT * FROM `requests` WHERE `id`='".$id."'"; $result=mysql_query($query) or die(mysql_error()); $field=mysql_result($result,0,"field"); Many Thanks - Trev
  7. Hi Guys, I'm new here and looking for help with an application that I am developing. Basically my application collates data over several pages of forms in an ini file and then puts it in the mysql database. I have some Yes / No radio buttons on some of these forms which populate the .ini file with the word Yes or No. So up to this stage it all works fine. Now, when I retrieve the data php, for some reason, converts Yes or No into a boolean value. It also does this when retrieving the data back from mysql after I have written the word 'Yes' / 'No' to the database. I can over come this each time I reference it but I'd rather it worked fine in the first place to prevent any complications in the future. Can anyone suggest why this might be happening and how I can tell PHP not to change my data into what it 'thinks' is correct? Many Thanks - Trev
×
×
  • 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.