Nakuha ko na po siya :D
Display all August 2005 Entries:
SELECT * FROM `entries` WHERE MONTH(date) = '8' && YEAR(date) = 2005 ORDER BY date DESC, time DESC
ung 'date' field, dapat "DATE" din po yung field type.
Nakita ko po na sa end ng table nag-aappend ng row pag may INSERT query. Pano naman po yung query kung gusto ko po idisplay yung "last" row?
Select Top 1 * from `entries` WHERE MONTH(date) = '8' && YEAR(date) = 2005 ORDER BY date DESC, time DESC
keithrull: Select Top 1 * from `entries` WHERE MONTH(date) = '8' && YEAR(date) = 2005 ORDER BY date DESC, time DESC
yikes! ms sql pala yung sagot ko :P
Nakakalito po ba? Hehehe peace out...
E pano naman po magpabilang ng "rows"? Gagamitin ko po un para sa comments table, didisplay nya kung ilan na po yung nagcomment. :)
SHOW DATABASES;
OK, pano naman po magpaexecute ng dump file through PHP? Saka ilang tables po ba ang limit ng isang database?
Onga po pala, naka-ZIP (not GZIP) po ung dump file :D
Convert limitations to great expectations... You are the creative force of your life...
I think ang limit ng tables eh depende sa size ng disk mo... Kahit ilan ata pwede... DUMP file mo ba is .sql file na nakazip? If so, unzip mo then follow these steps:
1. Gawa ka muna database let's sat mydatabase ang pangalan ng database mo
mysql>CREATE DATABASE mydatabase;
2. Unzip the zip file, from the command line type these commands
C:\>mysql -u <username> -p mydatabase < mydumpfile.sql
it wil prompt you to enter your password and your SQL will be formed for you automatically to create those tables and data
Kung gumagamit ka ng PHPMyAdmin, nde kita matutulungan as I have never experienced using those...
Wow it's been a long time... ang dami ko natutunan dito ha ^___^
Ngayon ang gamit ko sa PC ko is EasyPHP, then meron akong PHPmyBackup Pro sa remote server ko para magbackup ng database ^__^
Anyway I've got a new post in the MySQL forums, ngayon kasi blog entries pa lang ang nailalagay ko sa database, ang balak ko naman gawin this time ung image galleries naman :)
Thanks again for everything! DevPinoy rocks :D