Please kindly advise! Waiting online!

Source: Internet
Author: User
Tags pconnect
Please kindly advise! Waiting online! In this case, I want to call a php file on an html page. below is the method in my php file:
// Categories of special lectures
$ SQL = "select id, subjectname, grouptypeid from '# @__ sksubject' where parentid = 0 and status = 1 ";
$ Dsql-> SetQuery ($ SQL );
$ Dsql-> Execute ();
Print_r ($ dsql );
While ($ row = $ dsql-> GetArray ())
{
If ($ subjectid = $ row ['id']) {
$ Subjectname = $ row ['subjectname'];
}
$ Subarr [] = array (
'Id' => $ row ['id'],
'Subobjectname' => $ row ['subobjectname'],
);
}
I don't know how to write php code on the html page. I think it should be a foreach loop. what should I do if you give me some advice? It is best to provide me with the code, because I do not know how to call the methods in the PHP file on the html page .... Tears!


Reply to discussion (solution)

What do you get in the $ subarr array? I have to post it to see it?
Otherwise, how can I write code for you?

I am print_r ($ sunarr );
DedeSql Object ([linkID] => Resource id #36 [dbHost] => localhost [dbUser] => root [dbPwd] => 12345 [dbName] => dujiaoshou [dbPrefix] => djs _ [result] => Array ([me] =>) [queryString] => select id, subjectname, grouptypeid from 'DJs _ sksubobject' where parentid = 0 and status = 1 [parameters] => [isClose] => [safeCheck] => 1 [showError] => [recordLog] => [isInit] => 1 [pconnect] =>)
What's going on?

What do you get in the $ subarr array? I have to post it to see it?
Otherwise, how can I write code for you?
I am print_r ($ sunarr );
DedeSql Object ([linkID] => Resource id #36 [dbHost] => localhost [dbUser] => root [dbPwd] => 12345 [dbName] => dujiaoshou [dbPrefix] => djs _ [result] => Array ([me] =>) [queryString] => select id, subjectname, grouptypeid from 'DJs _ sksubobject' where parentid = 0 and status = 1 [parameters] => [isClose] => [safeCheck] => 1 [showError] => [recordLog] => [isInit] => 1 [pconnect] =>)
What's going on?

What do you get in the $ subarr array? I have to post it to see it?
Otherwise, how can I write code for you?
Okay, I am wrong. I don't know how to output $ subarr .....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.