Jump to content

Fetch Data from Other Website


leo_end

Recommended Posts

SQL

ht_no         name

1315167669    nani
1310118798    raja
1321131003    alex
1314136291    john
1305150294    smith

INDEX

HT NO : <input type="text" name="htno" maxlength="10" id="htno"/>
<input type="submit" value="Search" id="search-btn" />

PHP (to get date from SQL)

isset( $_REQUEST['htno'] ) ? $htno=$_REQUEST['htno'] : $htno='';
$htno= mysql_real_escape_string( $htno);

$sql = "select * from inter_1y_general_results where ROLLNO like '$htno'";

    $rs = mysql_query( $sql ) or die('Database Error: ' . mysql_error());


    $num = mysql_num_rows( $rs );

    if($num >= 1 ){
        // this will display how many records found
        // and also the actual record
        echo "";
        while($row = mysql_fetch_array( $rs )){
    echo "<tr>HT NO : $row[ht_no] | NAME : $row[NAME]
</tr>';
        }

WHAT I WANT TO DO

and now, whan i want to do is, when users enter his ht_no in input filed, it show his name (it is already doing now)

and along with name it should show his PHOTO also, actually i didn't have any photo.

i need a php code which search the same htno in this website http://results.cgg.g...tudentResult.do and get the photo from this website.

HAVE A LOOK HERE : http://awesomescreen....com/001176h5d6

for eg try entering 1310118798 in http://results.cgg.g...tudentResult.do INPUT BOX.

it should get the photo from that website and should show it in my page

 

 

 

 

THIS RESORCE MAY HELP YOU : http://toolspot.org/...ebsite-data.php

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.