sdemirkeser adlı üyeden alıntı:
mesajı görüntüle
Aynı İsimlere Ait En Son Eklenen Tek Veriyi Almak
40
●2.558
- 17-01-2009, 22:15:47Üyeliği durdurulduverir yahu daha önce benzer şekilde bende kullandimmacchess adlı üyeden alıntı: mesajı görüntüle
- 17-01-2009, 22:18:23Usta vermiyor işte son eklenen veriyi ilk ekleneni veriyor şu an denedim.sdemirkeser adlı üyeden alıntı: mesajı görüntüle
- 17-01-2009, 22:30:05Üyeliği durdurulduörnek sql dump edin deneyelimmacchess adlı üyeden alıntı: mesajı görüntüle
- 17-01-2009, 22:40:58Usta buyur da arkadaşlar yazmıştı zaten öyle olmayacağını önceki mesajlarda;sdemirkeser adlı üyeden alıntı: mesajı görüntüle
-- phpMyAdmin SQL Dump -- version 2.11.7.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 17, 2009 at 10:39 PM -- Server version: 5.0.41 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `beles` -- -- -------------------------------------------------------- -- -- Table structure for table `students` -- CREATE TABLE `students` ( `id` int(11) NOT NULL auto_increment, `name` text NOT NULL, `housephone` text NOT NULL, `teachmaterial` text NOT NULL, `studyimproving` text NOT NULL, `english` text NOT NULL, `abacus` text NOT NULL, `science` text NOT NULL, `piano` text NOT NULL, `gogame` text NOT NULL, `math` text NOT NULL, `meal` text NOT NULL, `commission` text NOT NULL, `total` text NOT NULL, `date` text NOT NULL, `notes` text NOT NULL, `transportation` text NOT NULL, `durum` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=75 ; -- -- Dumping data for table `students` -- INSERT INTO `students` VALUES(67, 'aiueaiuea', '5424', '542', '52', '52', '52', '220', '2', '0220', '20', '0', '014', '1194', 'January', 'aeiauieauieauei', '20', 'Payment Not Completed'); INSERT INTO `students` VALUES(68, 'iuauea', 'ieauiea', '41452', '542', '2452', '4524', '2452', '24452', '452', '4', '2452', '4524', '85758', 'July', 'eiaueiaiuea', '2452', 'Payment Completed'); INSERT INTO `students` VALUES(69, 'eiuaeia', 'uiea', '14', '421', '25', '254', '45', '542542', '24', '254242', '52', '245', '798316', 'April', 'eauieaiuea', '452', 'Payment Not Completed'); INSERT INTO `students` VALUES(70, 'eiuaeia', 'ae', '41', '141', '41', '41', '41', '41', '41', '41', '52', '54245', '54779', 'May', 'üieuaeuiauie', '054', 'Payment Not Completed'); INSERT INTO `students` VALUES(71, 'iuauea', 'üa', '25', '25', '54', '45245', '452452', '2', '2', '245', '524524', '452', '1023478', 'April', 'aeuauieauieaiueaueiauei', '452', 'Payment Not Completed'); INSERT INTO `students` VALUES(72, 'aa', 'uie', '47', '25', '52', '452', '452', '524', '2452', '542', '452', '452', '5902', 'January', 'auieaieuaieu', '452', 'Payment Completed'); INSERT INTO `students` VALUES(73, 'aa', '63,6', '', '', '', '', '', '', '', '', '', '', '0', 'January', '', '', 'Payment Completed'); INSERT INTO `students` VALUES(74, 'aa', '25', '25', '25', '25', '52', '2', '542', '52', '452', '245', '452', '1924', 'April', '', '52', 'Payment Not Completed');
- 17-01-2009, 22:43:09Üyeliği durduruldubide şimdi bu datadan gelmesi gereken örnek datayi söyle
- 17-01-2009, 22:47:29Buyr bu da listeleme sayası, connection.php db ayar dosyası;sdemirkeser adlı üyeden alıntı: mesajı görüntüle
<html> <head> <title>All New Sesame 2009</title> <link href="style/style.css" rel="stylesheet" type="text/css"> </head> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <body background="images/back.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><body> <div align="center"> <table width="72%" border="1" bgcolor="#FFFFFF"> <tr> <td height="85"><div align="center"><font color="#999999" size="6"><strong>All New Sesame 2009</strong></font></div></td> </tr> <tr> <td height="249" valign="top"> <div align="center"> <p><font size="3"><br> <?php include("connection.php"); include("test.php");?> <table align="center"> <font size="2" color="red">Incomplete payments are shown up with red color</font></table><br> <table width="%100" border="1" align="center"> <tr> <td width=%10><strong>Student ID</strong></td> <td width=%25><strong>Students Name</strong></td> <td width=%25><strong>House Phone</strong></td> <td width=%40><strong>Options</strong></td> </tr> <?php $sayfa = !empty($_GET["sayfa"]) ? intval($_GET["sayfa"]) : 1; $baslangic = ($sayfa - 1 ) * $limit; $show=mysql_query("select * from students group by name order by id DESC LIMIT $baslangic,$limit"); while ($record=mysql_fetch_array($show)) { $studentid=$record['id']; {if($record['durum']=='Payment Completed'){ $renk='<font color="">';}else{$renk='<font color="red">';} echo " <tr> <td>" .$record['id'] . "</td> <td>" .$renk. $record['name'] . "</td> <td>". $record['housephone'] . "</td> <td><a href=details.php?id=$studentid>Student Details</a> | <a href=edit.php?id=$studentid>Edit Student Details</a> | <a href=delete.php?studentid=$studentid>Delete Student</a> </td> </tr> </font> "; } } ?> </table><center> <? include("test.php");?></center> </body> </html> - 17-01-2009, 23:03:29Üyeliği durdurulduyok dostıum anlatamadım
bu örnek datadan
eline geçmesi gereken datayi yazsana örnek olarak
SELECT * from students Group by name ORDER BY id DESC limit 2
yazinca ben çektim