|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help me brothers,new to mysql infact babe
i m having problem testing my sql and i dnt know where the problem is
Parse error: parse error, unexpected T_STRING in C:\wamp\www\mysql_up.php on line 10 this what is showing this is the codes <html> <head><title>Test MySQL</title></head> <body> <!-- mysql_up.php --> <?php $host=”localhost”; $user=”opeyemihadex”; $password=”afisunlu”; mysql_connect($host,$user,$password); $sql=”show status”; $result = mysql_query($sql); if ($result == 0) echo “<b>Error “ . mysql_errno() . “: “ . mysql_error() . “</b>”; else { ?> <!-- Table that displays the results --> <table border=”1”> <tr><td><b>Variable_name</b></td><td><b>Value</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> <?php } ?> </body></html> |
|
#2
|
|||
|
|||
|
echo “<b>Error “ . mysql_errno() . “: “
This is the line 10? |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Help me brothers,new to mysql infact babe |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|