Forum: MySQL Apr 2nd, 2009 |
| Replies: 6 Views: 624 Well, if the uid is a numeric datatype, you could use:
SELECT COUNT(uid) FROM tracking WHERE uid = $trackuid
If not numeric, you'll have to surround with quotes:
SELECT COUNT(uid) FROM... |
Forum: MySQL Apr 2nd, 2009 |
| Replies: 1 Views: 435 I will restrain from lecturing on normalization (http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html). I assume you've probably never heard of it but I'd highly recommend looking... |
Forum: MySQL Apr 2nd, 2009 |
| Replies: 6 Views: 624 Count is an aggregate function. It's not going to return anything from the database. It's only going to count the number of records matching your criteria and return the total. |
Forum: MySQL Apr 2nd, 2009 |
| Replies: 2 Views: 818 If you have phpmyadmin, you can also upload the csv through it. |
Forum: MySQL Jan 10th, 2009 |
| Replies: 3 Views: 534 You could start off with basic data validation. Pumping all of the fields into the db without checking even one of them? That's just asking for injection. |
Forum: MySQL Jan 9th, 2009 |
| Replies: 3 Views: 557 Also, if you have phpmyadmin, you can just upload the csv instead of writing a script. |
Forum: MySQL Oct 7th, 2008 |
| Replies: 1 Views: 2,792 I'd guess that it would be http://localhost/phpmyadmin |
Forum: MySQL Oct 7th, 2008 |
| Replies: 5 Views: 1,016 Post the code and error messages. |
Forum: MySQL Sep 21st, 2008 |
| Replies: 6 Views: 1,013 SQL injection is an attack on the database. Basically, injectors take an educated guess about your query design and try to manipulate it. Let's take a look at the following login:
$query =... |
Forum: MySQL Sep 3rd, 2008 |
| Replies: 7 Views: 1,418 Michael Kofler wrote a VBA module that will do this. You'll need Excel, Word, or a MS program that can run VBA. Here (http://www.kofler.cc/mysql/mssql2mysql.txt) is the script with commented... |
Forum: MySQL Aug 19th, 2008 |
| Replies: 2 Views: 576 Do you have phpmyadmin? If so, create a table with the appropriate rows, save the excel file as a csv, and import to the table. |
Forum: MySQL Aug 19th, 2008 |
| Replies: 1 Views: 1,148 Yes, the best way is to just save the image path. You can save the image into the database as a blob but, most say it's a bad idea. Have a read here (http://www.phpriot.com/articles/images-in-mysql)... |
Forum: MySQL Aug 18th, 2008 |
| Replies: 5 Views: 936 Man, I still don't understand what you are asking. If your db is showing up in the phpmyadmin panel and you need to get the source files for the db, check in mysql/data. |
Forum: MySQL Aug 16th, 2008 |
| Replies: 5 Views: 936 Your host should have supplied you an admin panel. Inside should be phpadmin. It is a web application GUI that allows you to make changes to the db. If you don't have phpmyadmin in your console,... |
Forum: MySQL Aug 14th, 2008 |
| Replies: 5 Views: 936 Wow, a big fan of run-on sentences myself. Are you asking about wamp on your local machine? Most versions of wamp come with phpmyadmin installed. Try putting this in the url: ... |
Forum: MySQL Aug 11th, 2008 |
| Replies: 3 Views: 674 |
Forum: MySQL Aug 11th, 2008 |
| Replies: 3 Views: 674 Datetime is in the YYYY-MM-DD HH:MM:SS format so, Friday, August 28, 2015 at 8:00PM would be:
2015-08-28 20:00:00 |
Forum: MySQL Aug 7th, 2008 |
| Replies: 2 Views: 2,665 You could either concatenate all of the values and store them in one field or you could create three fields to store each value separately. |
Forum: MySQL Jul 31st, 2008 |
| Replies: 4 Views: 600 Yes mysqldump will do this. Read more at http://articles.techrepublic.com.com/5100-10878_11-1044663.html |
Forum: MySQL Jul 30th, 2008 |
| Replies: 4 Views: 600 I've done this for an RSS feed. It queries the db, populates variables, and outputs everything as xml. Here (http://www.ibm.com/developerworks/xml/library/x-phprss/index.html#c2) is the link. |
Forum: MySQL Jul 29th, 2008 |
| Replies: 6 Views: 2,488 Yes, Oracle is a beast and a memory hog. My favorite comparison was made by Charles Phillips, President of Oracle:
"We're both in the transportation business," Mr Phillips said. "We have a 747, and... |
Forum: MySQL Jul 27th, 2008 |
| Replies: 4 Views: 1,576 Most don't use MySql unless it is coordinated with open source (php or java) scripts/languages. In these cases ODBC is not necessary. If MySql won't work with a .net or coldfusion server, who cares.... |
Forum: MySQL Jul 27th, 2008 |
| Replies: 6 Views: 2,488 You shouldn't compare the two. It's like comparing a school bus (Oracle) to a Corvette (MySql). Oracle can deliver tons of data in a reasonable amount of time consistently. MySql can deliver smaller... |
Forum: MySQL Jun 20th, 2008 |
| Replies: 2 Views: 790 Could be wrong but I think this will require some type of middleware like PHP to communicate between them. |