Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   class mysqli php database ! (http://www.bvlist.com/showthread.php?t=9250)

Ruffneck 25th June 2013 21:32

class mysqli php database !
 
somebody can post this class for TS 5.6 ?

10x advanced ! :drink:

firefly007 25th June 2013 21:55

Quote:

Originally Posted by Ruffneck (Post 41251)
somebody can post this class for TS 5.6 ?

10x advanced ! :drink:

???

Please explain feature

Ruffneck 26th June 2013 11:24

TS 7.2 class_ts_database.php is used mysql ext !

i wanna make mysqli ext !

because php 5.5.0 is not supported mysql ext !

sorry 4 bad english !

firefly007 26th June 2013 15:57

Quote:

Originally Posted by Ruffneck (Post 41254)
TS 7.2 class_ts_database.php is used mysql ext !

i wanna make mysqli ext !

because php 5.5.0 is not supported mysql ext !

sorry 4 bad english !


Look at this....

Taken from
http://www.w3schools.com/php/php_mysql_select.asp

PHP Code:

<?php
$con
=mysqli_connect("example.com","peter","abc123","my_db");
    
// Check connection
    
if (mysqli_connect_errno())
  {
  echo 
"Failed to connect to MySQL: " mysqli_connect_error();
  }

$result mysqli_query($con,"SELECT * FROM Persons");

echo 
"<table border='1'>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>"
;

while(
$row mysqli_fetch_array($result))
  {
  echo 
"<tr>";
  echo 
"<td>" $row['FirstName'] . "</td>";
  echo 
"<td>" $row['LastName'] . "</td>";
  echo 
"</tr>";
  }
echo 
"</table>";

mysqli_close($con);
?>


Ruffneck 26th June 2013 22:32

10x !!!!!:drink:


All times are GMT +2. The time now is 11:38.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.