Forum: MySQL Nov 6th, 2009 |
| Replies: 6 Views: 584 my db is simple, numeric data only, but i went here, MYSQL Charsets (http://dev.mysql.com/doc/refman/5.1/en/charset-syntax.html) to find out how to display other character sets, it was complicated,... |
Forum: MySQL Oct 19th, 2009 |
| Replies: 2 Views: 720 depending on the language used as the front end to the mysql back end,
php $date=strtotime('string');
asp $date=DateTime.Parse('string');
in sql getdate($date)
don't use those codes look em... |
Forum: MySQL Oct 8th, 2009 |
| Replies: 2 Views: 397 CREATE TABLE Employee
(
Emp_Id int PRIMARY KEY IDENTITY,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
postalcode vachar(6),
/* other... |
Forum: MySQL Sep 28th, 2009 |
| Replies: 11 Views: 688 Nothing
searchme is a calculated column, it is created and defined during the query and only exists until the query is complete, it takes the format of the colums from which it is created |
Forum: MySQL Sep 26th, 2009 |
| Replies: 1 Views: 657 do not store separate date and time
store a single unix timestamp or sql datetime (both of which can output date, time, or date and time
then just
select max(dategps.datetime) |
Forum: MySQL Sep 25th, 2009 |
| Replies: 3 Views: 337 trySELECT a.airport_code AS airportcode, a.airport_name as airport, u.usr_id as userid, u.usr_fname as firstname, u.usr_lname as lastname, u.usr_email as email,u.usr_airline as airline,... |
Forum: MySQL Sep 23rd, 2009 |
| Replies: 11 Views: 688 select * ( Concat(string1,' ',string2) as searchme ) from table where searchme like "$search"text string single space between the columns else you get
BrownCow which wont match brown cow |
Forum: MySQL Aug 24th, 2009 |
| Replies: 5 Views: 526 insert into #temptable ( IDENTITY(int, 1,1) AS number, select * FROM table ORDER BY score desc) SELECT * FROM #temptable ORDER BY number DROP TABLE #temptablethought process only, cant guarantee the... |
Forum: MySQL Aug 19th, 2009 |
| Replies: 13 Views: 4,074 Glad it all helped, examples stick in my mind better too |
Forum: MySQL Aug 19th, 2009 |
| Replies: 6 Views: 503 good catch, stared at it and didnt see |
Forum: MySQL Jul 2nd, 2009 |
| Replies: 8 Views: 793 I was thinking that spambots search for email addresses that always contain a '@' SO something that doesnt include a @ will get past
<input type='text' id='mailaccount'>@<input type='text'... |
Forum: MySQL Jul 2nd, 2009 |
| Replies: 8 Views: 793 that address is sent in clear text through however many relays, proxies, exist in the traceroute between your host and the user,
any one of them could be compromised
with an appropriate packet... |
Forum: MySQL Jul 2nd, 2009 |
| Replies: 8 Views: 793 This is Joomla's spam protection
Joomla has a plugin that obfuscates email addresses, to make it harder for scrapers and bots.
The visible address and effective address are not changed, just what... |
Forum: MySQL Jun 11th, 2009 |
| Replies: 5 Views: 598 select NAME from tablename order by name; |
Forum: MySQL Mar 16th, 2009 |
| Replies: 4 Views: 1,460 page 4 of the joomla online referst to the database,
and table creation within the database.
If you have begun manually you need the appropriate part of the joomla manual install.
Joomla did... |
Forum: MySQL Mar 15th, 2009 |
| Replies: 4 Views: 1,460 once you create a dbase
then you have the ability to cxreate a number of tables inside the database, in my head the database is an empty filing cabinet, plenty of potential but not much use yet, my... |
Forum: MySQL Mar 10th, 2009 |
| Replies: 6 Views: 561 once the id topics are grouped the individual id_msgs may not be available for sort
perhaps what you want is
SELECT id_topic, subject FROM smf_messages WHERE id_board=$bolum ORDER BY id_topic,... |
Forum: MySQL Mar 7th, 2009 |
| Replies: 13 Views: 4,074 Verruckt
the final arbitration of all takes up so much of your time.
It must be difficult to be you. |
Forum: MySQL Mar 5th, 2009 |
| Replies: 13 Views: 4,074 most do not want to be told rtfmits easier for me its just another line of code, that I have in memory, references I have to waste my time looking up |
Forum: MySQL Mar 5th, 2009 |
| Replies: 13 Views: 4,074 select name where state like '%s', $post['state']
mysql_query(sprintf("select name where state like '%s', $post['state'] "));
probably better if you take the commas out of your state tables
wa fl... |
Forum: MySQL Mar 5th, 2009 |
| Replies: 3 Views: 805 |
Forum: MySQL Mar 5th, 2009 |
| Replies: 3 Views: 805 do not punctuate numbers in input data
mysql suypports multiple data schema, language-specific and region specific
in many supported schema the comma is a decimal separator, the number is truncated... |
Forum: MySQL Mar 2nd, 2009 |
| Replies: 6 Views: 760 dynamically code the nested tables the same way the code generates the tables.
The code you have makes horizontal lines
one way is to output the sql query... |
Forum: MySQL Mar 2nd, 2009 |
| Replies: 6 Views: 760 sql provides the output data (in rows)
formatting is done by your php script & the html css it generates
nest tables,
<tr>
<td>
<table><tr><TD></td></tr></table>
</td>
<td>... |
Forum: MySQL Mar 2nd, 2009 |
| Replies: 6 Views: 760 output into a table, and the width will adjust to the widest name, or set the td widths
tables are still useful for tabular data |
Forum: MySQL Feb 18th, 2009 |
| Replies: 2 Views: 1,437 if( $r['whattotal'] == '0' ){ echo "Less";} ? maybe |
Forum: MySQL Feb 16th, 2009 |
| Replies: 4 Views: 616 I've only learned one thing about DB design
store date and time as timestamps its a lot faster to compare numeric timestamps than text date/time stings |
Forum: MySQL Feb 10th, 2009 |
| Replies: 6 Views: 827 AND b.date BETWEEN CURdate( ) AND DATE_ADD(CURDATE(), INTERVAL +9 DAY) |
Forum: MySQL Jan 29th, 2009 |
| Replies: 6 Views: 852 I have to admit ignorance,
Dunno,
on my development i didnt want to waste database on the webstats
the filesize is small enough that the flat file is faster than reading another table in sql cms,... |
Forum: MySQL Jan 29th, 2009 |
| Replies: 6 Views: 852 thought processes:::
md5 # data on table insert
compare md5 of login to table data
table in a folder chmodd invisible to the outside world
crypt
table location information only in php... |
Forum: MySQL Jan 26th, 2009 |
| Replies: 6 Views: 852 If its really only small & simple
why not a flat file version for those without sql
fixed length fields teminated by line feed
or
php arrays
is quite fast to read and write, especially since the... |