Search Results

Showing results 1 to 20 of 20
Search took 0.01 seconds.
Search: Posts Made By: ShawnCplus ; Forum: MySQL and child forums
Forum: MySQL 33 Days Ago
Replies: 5
Views: 493
Posted By ShawnCplus
Evn f ur prfsnal u nd 2 shw efrt. <--- This is hard to read
Even if you're a professional you need to show effort before we help you.
Forum: MySQL 33 Days Ago
Replies: 5
Views: 493
Posted By ShawnCplus
I'm gonna go head and say no. (http://www.daniweb.com/forums/announcement8-2.html)
Forum: MySQL Oct 6th, 2009
Replies: 4
Views: 464
Posted By ShawnCplus
Might want to take a look in your textbook or around the MySQL documentation before you start asking homework questions without showing work.
Forum: MySQL Oct 6th, 2009
Replies: 4
Views: 405
Posted By ShawnCplus
Wow, I can't believe I suggested that. That is insanely slow and stupid, sorry. Just do
$search = str_replace(' ', '%', $search);
Forum: MySQL Oct 5th, 2009
Replies: 9
Views: 641
Posted By ShawnCplus
That's called the ternary operator.


$somevar = (condition) ? (true case) : (false case);
// so
$test = true;
$somevar = $test ? "Hello" : "Goodbye";

// is the same as
$test = true;
Forum: MySQL Oct 5th, 2009
Replies: 4
Views: 405
Posted By ShawnCplus
$search = join('%', explode(' ', $search));
/*
For Example:
search = 'John Smith';
search = join('%', explode(' ', search));
search now = John%Smith
*/
Forum: MySQL Oct 2nd, 2009
Replies: 2
Views: 457
Posted By ShawnCplus
A) Why is your ID field TEXT?
B)
SELECT MAX(CAST(id AS DECIMAL)) as id FROM object
Forum: MySQL Sep 15th, 2009
Replies: 1
Views: 344
Posted By ShawnCplus
Show your current query and we can walk you through what to fix.
Forum: MySQL Jul 13th, 2009
Replies: 4
Views: 273
Posted By ShawnCplus
When an index is created it takes up space on the filesystem. So as long as you're fine with taken up more space to get more speed indices are the way to go.
Forum: MySQL Jul 13th, 2009
Replies: 4
Views: 273
Posted By ShawnCplus
Make sure you have indices on the column you're searching, that's probably the easiest way to speed things up but it's a size vs. speed trade-off.
Forum: MySQL Jun 22nd, 2009
Replies: 2
Views: 847
Posted By ShawnCplus
Going directly to the documentation usually helps:
http://dev.mysql.com/doc/refman/4.1/en/user-account-management.html
Forum: MySQL Jun 22nd, 2009
Replies: 6
Views: 606
Posted By ShawnCplus
Like I said, what is the data type for that field?
Forum: MySQL Jun 22nd, 2009
Replies: 6
Views: 606
Posted By ShawnCplus
hopefully you have a WHERE clause in that query and what is the datatype of that field?
Forum: MySQL Jun 22nd, 2009
Replies: 1
Views: 365
Posted By ShawnCplus
MySQL Query Browser directly from MySQL http://dev.mysql.com/downloads/gui-tools/
Forum: MySQL Jun 18th, 2009
Replies: 2
Views: 1,045
Posted By ShawnCplus
As far as I know there's no way to halt a SELECT statement mid-query. You'd either have to write a stored procedure or have whatever language you're using to interact with MySQL handle this logic.
Forum: MySQL Jun 13th, 2009
Replies: 3
Views: 722
Posted By ShawnCplus
This depends on the database engine you're currently using. By default MySQL uses MyISAM (Also uses MyISAM internally). However, MyISAM only supports table-level locking so when you're writing it...
Forum: MySQL Jun 10th, 2009
Replies: 9
Views: 3,296
Posted By ShawnCplus
http://dev.mysql.com/doc/refman/5.1/en/numeric-types.html Use the language documentation before going to the forums please.
Forum: MySQL Jun 9th, 2009
Replies: 4
Views: 1,483
Posted By ShawnCplus
Give me a real-world example of what you want because you're sort of all over the place on how you want the query to work. You really only have a few options


-- LIKE matches...
Forum: MySQL Jun 9th, 2009
Replies: 4
Views: 1,483
Posted By ShawnCplus
You might be able to do
WHERE user_role IN ('A', 'S', 'D')
Forum: MySQL Jun 4th, 2009
Replies: 4
Views: 676
Posted By ShawnCplus
This should be in the PHP forum, but at the same time it should not be. Read the FAQ in the PHP forum before you post again.
Showing results 1 to 20 of 20

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC