zgkhoo Posted August 25, 2007 Share Posted August 25, 2007 echo " <html> <head> <link rel="stylesheet" type="text/css" href="style.css" /> </head> </html> y error? thanks Link to comment https://forums.phpfreaks.com/topic/66630-solved-php-echo-css-error/ Share on other sites More sharing options...
AndyB Posted August 25, 2007 Share Posted August 25, 2007 because you failed to escape the quotes in the link rel line, or because you should have used single quotes in that line instead of doubles ... echo " <html> <head> <link rel='stylesheet' type= .... etc Link to comment https://forums.phpfreaks.com/topic/66630-solved-php-echo-css-error/#findComment-333819 Share on other sites More sharing options...
zgkhoo Posted August 25, 2007 Author Share Posted August 25, 2007 default is single quote? ??? Link to comment https://forums.phpfreaks.com/topic/66630-solved-php-echo-css-error/#findComment-333824 Share on other sites More sharing options...
AndyB Posted August 25, 2007 Share Posted August 25, 2007 You can use either of these below. Which you use is your choice. echo " <html> <head> <link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" /> </head> </html>"; or, less typing echo " <html> <head> <link rel='stylesheet' type='text/css' href='style.css' /> </head> </html>"; Link to comment https://forums.phpfreaks.com/topic/66630-solved-php-echo-css-error/#findComment-333826 Share on other sites More sharing options...
zgkhoo Posted August 25, 2007 Author Share Posted August 25, 2007 echo " <html> <head> <link rel='stylesheet' type='text/css' href='style.css' /> </head> <table border=2> <tr> <td>"; <?php include 'menu.php'; ?> echo " </td> <td> <form name='detail' action='record.php' method=post> <table> <tr> <td>ic</td> <td><input type='text' name='ic' value=$row[iC]></td> </tr> <tr> <td>fullname</td> <td><input type='text' name='fullname' value=$row[FullName]><td> </tr> <tr> <td>gender</td> <td><input type='text' name='gender' value=$row[Gender]><td> </tr> <tr> <td>dob</td> <td><input type='text' name='dob' value=$row[DOB]><td> </tr> <tr> <td>address</td> <td><input type='text' name='address' value=$row[Address]><td> </tr> <tr> <td>postcode</td> <td><input type='text' name='postcode' value=$row[Postcode]><td> </tr> <tr> <td>address</td> <td><input type='text' name='city' value=$row[City]><td> </tr> <tr> <td>state</td> <td><input type='text' name='state' value=$row[state]><td> </tr> <tr> <td>phonenumber</td> <td><input type='text' name='phonenumber' value=$row[PhoneNumber]><td> </tr> <tr> <td>hpnumber</td> <td><input type='text' name='hpnumber' value=$row[HpNumber]><td> </tr> <tr> <td>banktype</td> <td><input type='text' name='banktype' value=$row[bankType]><td> </tr> <tr> <td>accname</td> <td><input type='text' name='accname' value=$row[AccName]><td> </tr> <tr> <td>accnumber</td> <td><input type='text' name='accnumber' value=$row[AccNumber]><td> </tr> <tr> <td></td> <td><input type='submit' name='button' value='update'><td> <tr> </form> </td> </tr> </table> ";//end of echo Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\record.php on line 86 can menu.php include <head> </head> and include css inside? thanks.. Link to comment https://forums.phpfreaks.com/topic/66630-solved-php-echo-css-error/#findComment-333830 Share on other sites More sharing options...
zgkhoo Posted August 25, 2007 Author Share Posted August 25, 2007 solved.. Link to comment https://forums.phpfreaks.com/topic/66630-solved-php-echo-css-error/#findComment-333835 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.