Welcome to Dream.In.Code
Getting Help is Easy!

Join 107,639 Programmers for FREE! Ask your question and get quick answers from experts. There are 954 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Political DSS-finding eligibility for a post

 
Reply to this topicStart new topic

Political DSS-finding eligibility for a post

chitra1
post 16 May, 2008 - 04:03 AM
Post #1


New D.I.C Head

*
Joined: 13 Dec, 2007
Posts: 4


My Contributions


Hi, i am developing a political decision support system which based on the qualifications of the members will decide who will be the best for the post of ministers( for eg someone having a Masters in IT is more eligible than someone having a BSc in IT).

I have a database whereby the names and all qualifications from secondary to tertiary level of members are saved. How do I do to get the best candidate?

I am not posting any code for this because i haven't started working on it yet. I just want some idea of how to implement this.


I am also putting an upload function in my project. I need to upload only images that is, .jpeg, .gif.

But I am not being able to do this, all types of files are being uploaded. Below is my code:

CODE


include("db_connect.php");
//set where you want to store files
//in this example we keep file in folder upload
//$HTTP_POST_FILES['ufile']['name']; = upload file name
//for example upload file name cartoon.gif . $path will be upload/cartoon.gif
$path= "upload/".$HTTP_POST_FILES['ufile']['name'];
if($ufile !="none")
{
if(copy($HTTP_POST_FILES['ufile']['tmp_name'], $path))
{
echo "<table width=300 height=300 align=center>
    <tr><td align=center><B>
        Your symbol has been successfully uploaded.<?B>
    </td></tr>";
echo "<tr><td align=center>";

echo "<tr><td align=center>";
echo "<img src=\"$path\" width=\"150\" height=\"150\">";
echo "</td></tr>";
echo"<tr><td align=center>";
echo "Image name:.$key";
echo "</td></tr>";
echo "<tr><td align=center>";
echo "File Name :".$HTTP_POST_FILES['ufile']['name']."<BR/>";




As you can see in this code the images are saved in a folder but i want to send them in a database. I am not being able to use the POST method to send it to database. Can anyone please help????
User is offlineProfile CardPM

Go to the top of the page


jjsaw5
post 16 May, 2008 - 08:50 PM
Post #2


D.I.C. Face

Group Icon
Joined: 4 Jan, 2008
Posts: 937



Thanked 5 times

Dream Kudos: 125
My Contributions


In the future i would not try to not name your threads the same

This post has been edited by jjsaw5: 16 May, 2008 - 08:51 PM
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/29/08 06:39PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month