Listing All Rows and Fields in a Table Php

  • Post author:
  • Post category:Genel
  • Post comments:0 Yorum

<html> <head> <title>Selecting Data</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" /> </head> <body> <?php include("baglan.php"); ?> <?php mysql_connect($hostaneme,$username,$password ); $result = mysql_query( "SELECT marka FROM tnm_aracmarka WHERE marka LIKE 'A%'" ); $num_rows…

Okumaya devam edinListing All Rows and Fields in a Table Php

Selecting a Database Php

  • Post author:
  • Post category:Genel
  • Post comments:0 Yorum

<?php $hostaneme = "127.0.0.1"; $username = "root"; $password = "root"; $connection = mysql_connect($hostaneme,$username,$password); if(!$connection) { die ("Sunucusu ile bağlantı kurulamadı!"); } $result = mysql_select_db("test"); if(!$result) { die("veritabanı seçilmedi"); } echo…

Okumaya devam edinSelecting a Database Php

List all database in php

  • Post author:
  • Post category:Genel
  • Post comments:0 Yorum

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> </head> <body> <?php mysql_connect("localhost","root","root"); $dbs = mysql_list_dbs(); echo "Veri Tabalnları: <br />"; while (list($db) = mysql_fetch_row($dbs)) { echo "$db…

Okumaya devam edinList all database in php