Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 25th, 2003, 11:18 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
mysql help

hi all.
i was playing around with mysql when i found
trouble to insert a record that had a "'" caracter in the middle like: Ocean's Eleven.
How can insert this caracter "'" in the record?
Another thing, why took a script long time to display 200 records to a webpage and still the page made a lot of refresh's until stop, and doing the same thing using a odbc connection took only half a second to show the same results?
thanks.

Reply With Quote
  #2  
Old July 25th, 2003, 11:22 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to notepad
RE: mysql help

as far as the quotes, you'll need to add slashes (escape characters) to the data before inserting, and remove the slashes when retrieving the data. in php, you'd use addslashes() and stripslashes()

no clue about your other question.

Reply With Quote
  #3  
Old July 25th, 2003, 11:52 PM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 5
Send a message via Yahoo to bakertrg
RE: mysql help

what database where you using in the odbc instance? It seems very unlikely you were getting better performance in terms of speed with any database or scripting language than apache/php/mysql. Apparently the new embedded (in php) SQLite is faster than MySQL but I haven't worked with it yet. If your machine was thrashing it might have been a piece of bad code, if it was a web based appliaction it was probably one of those instances where the vagaries of the net slow down your connection.

Reply With Quote
  #4  
Old July 26th, 2003, 03:52 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: mysql help

hi...thanks for the reply's.
about the second question iwas using an odbc conection on a MS Acess database.
The script dumped the records very fast and without refreshing,then i made a script to dump the records from Acess to a MySql database, and using the same structural code i was unable to get the same speed

Reply With Quote
  #5  
Old July 28th, 2003, 08:17 AM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 5
Send a message via Yahoo to bakertrg
RE: mysql help

I am uncertain how you were able to run the code on an access database and then on a MySQL db as one is primarily unix/linux based and the other is windows. PHP does not run as well on a NT/Windows server as it does on linux/unix/freeBSD because it can't run inline as part of the webserver (apache) and is an external call. Access is certainly not faster than MySQL, especially as part of a web app, perhaps part of the issue was different servers or the configuration of the servers.

Reply With Quote
  #6  
Old July 29th, 2003, 04:09 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: RE: mysql help

Quote:
PHP does not run as well on a NT/Windows server as it does on linux/unix/freeBSD because it can't run inline as part of the webserver (apache) and is an external call.


php runs just fine on apache on win nt (2k, xp).

as for that "inline" remark, you are probably thinking about running php as apache module (as oposed to cgi), well, php also runs just fine as apache module...

Reply With Quote
  #7  
Old July 29th, 2003, 07:38 AM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 5
Send a message via Yahoo to bakertrg
RE: mysql help

actually I meant just the reverse as far as cgi and an apache module. The apache module is the fastest way to implement PHP by far. No commercial hosts offer NT servers with Apache because it doesn't make sense in terms of cost. If you're going to have the added cost of NT servers then you'll undoubtedly be planning on supporting ASP - MSSQL - Access - .NET etc. because many people want that environment. People who are offering Apache/PHP/MySQL are almost invariably running on Linux/Unix/FreeBSD because it doesn't make sense to do it cross platform for a higher cost with no added functionality. I run Foxserv locally as a dev environment (on 2k) but what I really meant was that people running MS servers run IIS or .NET and not Apache so PHP has to be a remote call which takes longer to process than the inline module does. Kind of like chilisoft ASP in reverse.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > mysql help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek