Jump to content

rxn155

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rxn155's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok... thats stinks because the server is 4.0.... anyway, how would i go about doing that in 4.0?
  2. sorry guys, im back again... Call to undefined function: mysqli_connect() in /homepages/6/d209800063/htdocs/mysql_up.php on line 12 <?php /* Program: mysql_up.php * Desc: Connects to MySQL Server and * outputs settings. */ echo "<html> <head><title>Test MySQL</title></head> <body>"; $host="XXXXXXX"; $user="XXXXXXX; $password="XXXXX"; $cxn = mysqli_connect($host,$user,$password); $sql="SHOW STATUS"; $result = mysqli_query($cxn,$sql); if($result == false) { echo "<h4>Error: ".mysqli_error($cxn)."</h4>"; } else { /* Table that displays the results */ echo "<table border=’1’> <tr><th>Variable_name</th> <th>Value</th></tr>"; for($i = 0; $i < mysqli_num_rows($result); $i++) { echo "<tr>"; $row_array = mysqli_fetch_row($result); for($j = 0;$j < mysqli_num_fields($result);$j++) { echo "<td>".$row_array[$j]."</td>\n"; } } echo "</table>"; } ?> </body></html> the "XXXX" is where i put my appropriate information...
  3. arent those double quotes? i dont understand
  4. i got this error: Parse error: parse error, unexpected '>' in /homepages/6/d209800063/htdocs/mysql_up.php on line 6 this is my code... havent had much luck with echo tags: <?php /* Program: mysql_up.php * Desc: Connects to MySQL Server and * outputs settings. */ echo “<html> <head><title>Test MySQL</title></head> <body>”; $host=”host”; $user=”mysqlaccount”; $password=”mysqlpassword”; $cxn = mysqli_connect($host,$user,$password); $sql=”SHOW STATUS”; $result = mysqli_query($cxn,$sql); if($result == false) { echo “<h4>Error: “.mysqli_error($cxn).”</h4>”; } else { /* Table that displays the results */ echo “<table border=’1’> <tr><th>Variable_name</th> <th>Value</th></tr>”; for($i = 0; $i < mysqli_num_rows($result); $i++) { echo “<tr>”; $row_array = mysqli_fetch_row($result); for($j = 0;$j < mysqli_num_fields($result);$j++) { echo “<td>”.$row_array[$j].”</td>\n”; } } echo “</table>”; } ?> </body></html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.