[PHP] PHPTriad and php error
hi to all, I set up phptriad on my computer running windows xp. When I tried to test php with the following program I got an error Parse error: parse error, expecting `','' or `';'' in C:\apache\htdocs\mytest.php on line 10 html head titlePHP Test/title /head body pThis is an HTML line p ?php echo “This is a PHP line”; phpinfo(); ? /body/html what is the reason? p.s. phpinfo.php which comes with the installation executes correctly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPTriad and php error
thanks for the help. I am a C/C++ programmer and decide to learn php and mysql to develop web pages. is it the correct place to ask questions similar to this? or is there any other group suitable for this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mysql test and error
hi, I found an e-book in the net about php and mysql and with its sample program I am trying to test whether I have mysql working correctly or not. the following program gives error message. why? html headtitleTest MySQL/title/head body !-- mysql_up.php -- ?php3 $host=”localhost”; $user=”root”; $password=””; mysql_connect($host,$user,$password); $sql=”show status”; $result = mysql_query($sql); if ($result == 0) echo “bError “ . mysql_errno() . “: “ . mysql_error() . “/b”; else { ? !-- Table that displays the results -- table border=”1” trtdbVariable_name/b/tdtdbValue/b /td/tr ?php3 for ($i = 0; $i mysql_num_rows($result); $i++) { echo “TR”; $row_array = mysql_fetch_row($result); for ($j = 0; $j mysql_num_fields($result); $j++) { echo “TD” . $row_array[$j] . “/td”; } echo “/tr”; } ? /table ?php3 } ? /body/html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql test and error
The following program gave the error: Parse error: parse error in C:\apache\htdocs\mysqltest.php on line 10 html headtitleTest MySQL/title/head body !-- mysql_up.php -- ?php $host=”localhost”; $user=”root”; $password=””; mysql_connect($host,$user,$password); $sql=”show status”; $result = mysql_query($sql); if ($result == 0) echo 'bError ' . mysql_errno() . ': '. mysql_error() . '/b'; else { ? !-- Table that displays the results -- table border=”1” trtdbVariable_name/b/tdtdbValue/b /td/tr ?php for ($i = 0; $i mysql_num_rows($result); $i++) { echo 'TR'; $row_array = mysql_fetch_row($result); for ($j = 0; $j mysql_num_fields($result); $j++) { echo 'TD'. $row_array[$j] . '/td'; } echo '/tr'; } ? /table /body/html what is the reason? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Please Help......
Hi all, Can anybody give me a guideline or idea on how to write a PHP scriot which is used to create a domain or sub-domain and a default page and a same time. My OS is Red Hat Linux 6.1. For example, in my program, when i press activate' button, the script will create me a sub-domain try.php.com and a default page index.php is created for that sub-domain. Thanks for advice.. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]