Jump to content

redhairgal

New Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

redhairgal's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You guys are NOT going to believe this. But I finally got the code to work. Actually there was nothing wrong with the code the entire problem was a state issue. I kept thinking and finally REALIZED that loading a drop down list with items then allowing a selection was a 2 state action! I was trying to do this from an html file...... I changed my file extension to php and voila it all works.... 2 days wasted. Anyway you were all kind and generous about helping me and I learned from each and every response and cleaned up my code so it is much cleaner, thanks to all your input. But I just had to let you know what fixed it. LOL Thank you again, red
  2. Thank you for all the help yesterday. I got so frustrated it reached the point I was hurting the code more than helping so I walked away. (Of course after trying all the suggested changes). Oh and the <select /> was a typo thank you for finding it but it didn't fix it I did figure out why the code wasn't working for some reason the mysql data isn't being put into place so the php/html shows because the expected data isn't substituted. For the life of me I can't figure out why the mysql data isn't be substituted. Could it be a state or scope issue? Dropping into and out of php how does that affect the scope of variables? The data is correctly pulled from the db but not inserted. I had to change from mysql to mysqli php connector but my mysqli calls seem to work in every other place but in this one? So I'm clearer on the problem but no closer to a solution. I wanted to thank you all for your generous help! Thanks again, red
  3. Thank you Ken, I changed to single quotes and the problem persists. The bizarre thing is that it works correctly in my debugger (Nusphere)! I don't know what to think. I've been stuck on this one thing for hours.....
  4. Thank you AbraCadaver (LOL) here's the whole snippet: <?php include "./recordfx.inc"; $bd = recordlist(); echo "<select name=\"records\" style=\"width:155px;\"/>"; while ($row = mysqli_fetch_array($bd)){ echo ("<option value=\"" . $row[records] . "\">" . $row[records] . "</option>"); } echo ("</select>"); ?>
  5. I'm a newbie (and this is my first post) and I just can not see what I'm doing wrong with this echo line here's the code: echo "<select name=\"records\" style=\"width:155px;\"/>"; The problem is everything after the semi-colon to the next line semi-colon gets printed. Can someone who is not dog tired tell me what I did wrong? Thank you, red
×
×
  • 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.