I'm New & Couldn't do this simple code
Posted: Mon Jul 16, 2007 11:03 am
feyd | Please use
but i couldn't make the full code
i want an empty box where the student type his seatnumber & it connects to the file found on other remote server & excute specific table from the site
example ( but soory it's in arabic only use the code
) : http://www.el-wasat.com/result/get.php
it connects to : http://natiga.emoe.org/2007/diplom/Default.asp
& excute the table number 12 and display it
how can i do ?
thnx
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi all
i want to do simple search code which gets the results of exams from other sites using
htmlsql class called snoopy.class.php
[url=http://fonant.mirrors.phpclasses.org/browse/download/zip/package/3086/name/htmlsql-2006-05-08.zip]download here[/url]
& it gives me an example how to use the class in excuting results from other sites
& it'sCode: Select all
<?php
/*
** htmlSQL - Example 9
**
** Shows how to use the "select" function
*/
include_once("../snoopy.class.php");
include_once("../htmlsql.class.php");
$wsql = new htmlsql();
// connect to a URL
if (!$wsql->connect('url', 'http://codedump.jonasjohn.de/')){
print 'Error while connecting: ' . $wsql->error;
exit;
}
// restricts the search process to the content between
// <body> and </body>
// this also works with other tags like: head or html, or table
$wsql->select('body');
/*
other examples:
$wsql->select('div',3); <-- selects the third <div>
$wsql->select('table',0); <-- selects the first table
^ default is also = 0
*/
/* execute a query:
This query returns all <h1> headers
*/
if (!$wsql->query('SELECT * FROM h1')){
print "Query error: " . $wsql->error;
exit;
}
// fetch results as array
foreach($wsql->fetch_array() as $row){
print_r($row);
}
?>but i couldn't make the full code
i want an empty box where the student type his seatnumber & it connects to the file found on other remote server & excute specific table from the site
example ( but soory it's in arabic only use the code
it connects to : http://natiga.emoe.org/2007/diplom/Default.asp
& excute the table number 12 and display it
how can i do ?
thnx
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]