Jump to content

buffmin

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

buffmin's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I pull an array from a database ( a column of vendor types ) and I echo the array elements all on one line. I am trying to echo out 5 elements per line, and the line feed (< /br>). I have tried every combination of "if" and "for" loops and cannot get it to work and would appreciate it if someone could please help me. Thank you. Here is a link to my site http://inthestickspaintball.com/members/edit.php ... and here is my code. <?php require ('logininfo.php'); $db = connectDB(); $result = mysql_query("SELECT distinct Vendors FROM Selections order by Vendors asc") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { echo $row['Vendors']; } ?>
  2. I apologise for "lack of following the forum rules". As you can see it was my "post#1" so please do not crucify me. I will try my best to follow all rules in the future. Muddy and PFMaBiSmAd, you two guys understand exactly what I am trying to do. In a nutshell, as you can see, I am just trying to display a simple "Pizza" menu on a webpage" and allow the client to edit prices, and then upload his changes. That's all. I appreciate you taking the time to understand. I understand how you emphasize that step 1 should be to focus on getting my form to submit correctly(with field names. I will follow your suggestions and will work on it tonight and tommow and keep you posted. Thank you very much again. Buffmin
  3. I need help please! I am learning php and mysql and am successful at pulling data from my database and placing it in a (editable) 5 column, 4-row table, but cannot figure out how to correctly do the reverse and update the database upon "submit". I do a "loop" to populate the table and am guessing I need a "reverse" loop to pull the data out and submit it, but do not know how to do this and I cannot figure it out. I would greatly appreciate some help! code below.... [attachment deleted by admin]
×
×
  • 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.