Jump to content

Vinsanity

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Posts posted by Vinsanity

  1. i have the login script which work prefectly on itself but when i try to use the frame to create the main page and call out the login function, the login doesnt work and just display out some of the php login script. even i managed to get rid of this error then the function also canot work... below will be my code... hope somebody can help... thnk you...



    [attachment deleted by admin]
  2. Here is my scenario:
    My job portal need to allow the user to register with us, and then they are able to login using the account, and after the users are able to view all the job posts , add a new job post, and delete the job post. On the other hands, there are administrator account for administrator to login to manage the registration and job posting... they can choose to either approve or reject the registration and job post... Now i would like to take the advice from u all on how to do the database design on how many tables i need and the relationship between those table... any help will be appreciated...
  3. can anyone help me on this problem?i need to allow user to click on the row with highlighted and it will show the details of it... can i achieve it without the checkbox or the radio button... initially the page will onli show the key field of the table and then when user choose on one and click on it then the details page will come out...
  4. i wan to create a page similiar to window explorer format and so i need to do with frames to seperate the page into two parts... the left hand side will be used to display the key fields($JobID) and when user clicked on it... the details of the key field will be displayed on the right hand frame(main page)... but when i try to write the code on the left hand frame, it run properly on itself... but when u try to run the whole page... it seems doesnt work and blank on it part... anyway if anyone can provide me with the code would be appreciated...
  5. i come out with the frameset and named it as left.php , index.php and main.php but when i load the page and i found nothing appear on the left hand side... i was using php coding on the left hand frame... is it bcos of the php cause the frame load failed... anyone can help me to troubleshoot...
  6. Currently i m workin on a project related to job portal and it require me to display my data on a format similiar to Window Explorer or Email format... need to display the keyword of the data on the left hand corner which i using a frame to do so and when i click on the certain keyword and on the main page the details will be shown... may i know how to do the hyperlink on the keyword the identify it...
  7. how to display the data similiar to window explorer format, like show the key field at the left frame and when clicked on it then the details of it will be display at the main frame... is it possible to achieve... need help from u all guys... any help will be appreciated...
  8. [img]http://C:\Documents and Settings\L340C27\My Documents\My Pictures\error.bitmap[/img]

    <?php

      // connect and select the database
      $conn = mssql_connect($host, $user, $password) or die(mssql_error());
      $db = mssql_select_db($dbName, $conn) or die(mssql_error());

    $sql="SELECT * FROM Job";
    $result=mssql_query($sql);

    $count=mssql_num_rows($result);
    ?>
    <table width="400" border="0" cellspacing="1" cellpadding="0">
    <tr>
    <td><form name="form1" method="post" action="">
    <table width="400" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
    <tr>
    <td bgcolor="#FFFFFF">&nbsp;</td>
    <td colspan="4" bgcolor="#FFFFFF"><strong>Delete multiple rows in mssql</strong> </td>
    </tr>
    <tr>
    <td align="center" bgcolor="#FFFFFF">#</td>
    <td align="center" bgcolor="#FFFFFF"><strong>JobID</strong></td>
    <td align="center" bgcolor="#FFFFFF"><strong>JobTitle</strong></td>
    <td align="center" bgcolor="#FFFFFF"><strong>Location</strong></td>
    <td align="center" bgcolor="#FFFFFF"><strong>CompanyName</strong></td>
    </tr>
    <?php
    while($rows=mssql_fetch_array($result)){
    ?>
    <tr>
    <td align="center" bgcolor="#FFFFFF"><input name="checkbox[]" type="checkbox" value="<?php echo $rows['JobID']; ?>"></td>
    <td bgcolor="#FFFFFF"><?php echo $rows['JobID']; ?></td>
    <td bgcolor="#FFFFFF"><?php echo $rows['JobTitle']; ?></td>
    <td bgcolor="#FFFFFF"><?php echo $rows['Location']; ?></td>
    <td bgcolor="#FFFFFF"><?php echo $rows['CompanyName']; ?></td>
    </tr>
    <?php
    }
    ?>
    <tr>
    <td colspan="5" align="center" bgcolor="#FFFFFF"><input type="submit" name="delete" value="Delete"></td>
    </tr>
    <?php
    //Check if delete button active, start this
    if(isset($_POST['delete'])){
    for($i=0;$i<$count;$i++){
    $del_id = $checkbox[$i];
    $sql = "DELETE FROM Job WHERE JobID='$del_id'";
    $result = mssql_query($sql);
    }
    if($result){
    //echo "<meta http-equiv=\"refresh\" content=\"0;URL=DeleteJ.php\">";
    }

    }
    mssql_close($conn);
    ?>
    </table>
    </form>
    </td>
    </tr>
    </table>

  9. Can anyone provide me the sources or codes for the delete function using the checkbox... it can be a very simple delete using checkbox since i m a newbie of php... I got these fields in my database(JobID, JobTitle, JobRequirement, Location, JobStatus and CompanyName) and i wan to delete the certain rows when i checked the row and click on the delete button... Can anybody help me... Any help will be appreciated...
×
×
  • 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.