Jump to content

Ramones

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Ramones's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. there is 2-3 include files per page and I'm not sure what you mean by any open streams before this
  2. I have been working on a website for a few days and after uploading it to a temporary host because I hadn't had any errors testing it by myself i got this error Warning: include(menu.inc) [function.include]: failed to open stream: Too many open files in /home/zendurl/public_html/d/diagrams/Search3.php on line 28 the website is located here: http://www.zendurl.com/d/diagrams/
  3. ok so my only question left is there a way when the user submits the form a record is created it also creates an html file
  4. Sorry for the double post but i have a new question Ok I am still looking for an answer on the second question if you read through my posts the question is slightly different than posed in the first post now I made a form where the user enters a number stored in MySql row Num which is auto incrementing and the primary key it then goes to a form in which they can edit the information in the record which corresponds the the number they entered I'm having a problem populating the form with the information from the MySql database Edit.php has this(unneeded things cut out) <form action="Edit2.php" method="post"> <input type="text" name="Num" /> <br> <input name="submit" type="submit" /> </form> Edit2.php has this(unneeded things cut out $result = mysql_query("SELECT '$_POST[Num]' FROM things"); $row = mysql_fetch_array($result) MORE CODE UNNEEDED <form action="Edit3.php" method="post"> <p><strong>Title:</strong> <br> <input type="text" name="Title" value=<? $row['Title'] ?>> <br> <strong>Quick Description:</strong> <br> <input type="text" name="Quick" /> </p> <strong>Instructions:</strong><br> <TEXTAREA NAME="Instruction" COLS=40 ROWS=6></TEXTAREA> <br> <strong>Difficulty(1-5 5 being hardest):</strong> <br> <input type="text" name="Difficulty" /> <br> <strong>Parts:</strong><br> <TEXTAREA NAME="Parts" COLS=10 ROWS=10></TEXTAREA> <br> <input name="submit" type="submit" /> </p> </form> right now i would expect that to print the title of the given number but it isn't
  5. The question was phrased wrong I would also like the query when I create the record to create an html file which has all the information in it or something like that
  6. is there any way to create a page when i make the record there is no error if you refer to the first post i ask two questions i left that out on purpose
  7. mysql_select_db("wiring", $con); $result = mysql_query("SELECT * FROM diagrams"); echo "<table border='1'> <tr> <th>Title</th> <th>Quick Description</th> <th>Difficulty</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['Title'] . "</td>"; echo "<td>" . $row['Quick'] . "</td>"; echo "<td>" . $row['Difficulty'] . "</td>"; echo "</tr>"; } echo "</table>"; mysql_close($con); ?> thats what you want right?
  8. Ok I am working on a small website for some friends and I have hit three small roadblocks due to my small amount of PHP/MYSQL knowledge So my MySql table has these rows: Title Quick Pic Instruction Difficulty Parts Uploading pictures is my first problem, i can't find a simple script to do this for some reason I made a page that prints out Title, Quick, and Difficulty in a table I want it to make a link on the title that leads to a page which has everything on it And I would like to have a combo box allowing the user to sort between Title Ascending, Title Descending, Difficulty Ascending, Difficulty Descending Thanks in advance
×
×
  • 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.