Phorum.ro
Your Avatar Welcome to Phorum.ro!
If you haven't registered yet, click here!
Attention Visitor:
You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Du-te înapoi   Phorum.ro > Web Design & Web Development > Programare > PHP > PHP DB

PHP DB Discutii despre lucrul cu baze de date in PHP.

Răspunde
 
Thread Tools Moduri de afișare
Vechi 15.09.2006   #1
Midtown
8-Bit Member
 
Data înregistrării: 09.09.2006
Mesaje: 8
Rep Power: 6
Midtown is on a distinguished road
Implicit ultima valoare a unui tabel

Salut. imi spune-ti a rog si mie un script, care sa extraga, ultima valoare a unui tabel in baza de date?
Midtown is offline   Reply With Quote
Sponsored Links
Vechi 16.09.2006   #2
hts
128-Bit Member
 
hts's Avatar
 
Data înregistrării: 09.09.2005
Locație: Iasi
Vârsta: 22
Mesaje: 538
Rep Power: 7
hts is on a distinguished road
Implicit

http://www.zend.com/manual/function.mysql-num-rows.php

cu asta numeri cate randuri ai;
apoi afisezi result`ul de pe randul respectiv
hts is offline   Reply With Quote
Vechi 16.09.2006   #3
cyberDJ
32-Bit Member
 
cyberDJ's Avatar
 
Data înregistrării: 01.07.2005
Locație: Romania
Vârsta: 32
Mesaje: 159
Rep Power: 7
cyberDJ is on a distinguished road
Trimite un mesaj prin Yahoo pentru cyberDJ
Implicit

Cod:
$cerereSQL = 'SELECT * FROM tabel ORDER by id desc limit 1'
cyberDJ is offline   Reply With Quote
Răspunde


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Moduri de afișare

Reguli de postare
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Pornit
emoticoanele sunt Pornit
Codul [IMG] este Pornit
Codul HTML este Oprit



Ora este GMT +3. Ora este acum 02:42:25.


Rulează cu: vBulletin Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum SEO by Zoints

XXXXXXXXXXXXXXXXXXX
Inactive Reminders By Icora Web Design