Jump to content

kizzie

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kizzie's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ok Thorpe, would try this and see how far i'd go with it. Thanks again.
  2. Not really writing the whole code for me,just the part that assigns the PIN to the User (ID) when the User logs in with the PIN. A lil' help will do.
  3. I really need some serious help with the design of a PIN (Personal Identification Number) Management System. When a user (with ID) logs in with the PIN (which already exist in my database), i want the system to assign that PIN to that user (ID) alone. No other user (ID) can access that PIN, the PIN is only assigned to that User (ID). I need the PHP codes, MySQL database tables, and some lil' explanation. Thanks.
  4. Im trying to include a chat page in my website, but kinda finding it difficult. Downloaded some commercial php chat scripts but still couldn't give me what i really need. Just need a php chat which users would have to sign in using distinct username and password, and also see those who are online. I do trust you guys on this, would also appreciate if a link would be given to me where i could download it. Thanks....
  5. Im good with that now. thanks for the info.
  6. yep. Guess i have to google it. thanks though.
  7. really need some help out here. I want to insert a Logo/Icon just like the one close to the "PHP Freaks" title bar. But kinda finding it difficult to do that. Don't know if to echo the image in the HTML title tag, thus: <title><img src="icon.jpg"/>My HomePage</title Don't know if this is the way to do that or is there a better way?????
  8. Pls i really need help with storing images in a database.I created a field in the database named 'PICS' with type as 'blob'. But i dont know whether the image file path should be stored in the database then the image itself stored in a folder or if the image should be stored in the database.And also how do i echo the image? I really need this script pls. Thanks... Waiting...
  9. $row['id'] is d result result of a query, thus: $query="SELECT * FROM courses WHERE session='09'"; $result=mysql_query($query); $row=mysql_fetch_array($result); $sid=$row['id']; $grade=array(A,B,C,D,E,F); .....
  10. I have a form that inserts into a database 2 arrays.But the problem is that it submits to the database twice what is being posted! This is the form: <form method="post" action="ok.php"> <?php ..... $sid=$row['id']; //result of a query that gets all the id's in the database $grade=array(A,B,C,D,E,F); echo "<tr><td><input type='checkbox' name='Names[]' value='$sid' checked/>$sid</td>"; echo "<td><select name='grade[]'> <option value=$grade[0] selected>A</option> <option value=$grade[1]>B</option> <option value=$grade[2]>C</option> <option value=$grade[3]>D</option> <option value=$grade[4]>E</option> <option value=$grade[5]>F</option></select></td> </tr>"; <input name="Submit" type="submit" class="subHeader" value="Submit" /> </form> This is d page (ok.php) that inserts the data: <?php include "db.php"; $Grade = $_POST['grade']; $Reg = $_POST['Names']; foreach ($Reg as $stard) { foreach ($Grade as $trad) { $query = "INSERT INTO result (regNo, grade) VALUES ('$stard', '$trad')"; $result = mysql_query($query); } } ?> This is the result that i get wit different grades inserted twice for each id. 215 C 215 A 445 C 445 A How do i insert a particular grade to an id without also being inserted into another id? As the case above,215 was supposed to have 'C' while 445 was supposed to have 'A'.Not both having 'C' and 'D'.
×
×
  • 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.