Reply
built-in-function mysql?
Old 11-11-2004, 11:33 PM built-in-function mysql?
starsunited's Avatar
Extreme Talker

Posts: 211
Location: Singapore
mysql is a built in function of php?
starsunited is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-11-2004, 11:40 PM
NateDogg's Avatar
Extreme Talker

Posts: 163
No, MySQL is a DataBase Management System (DBMS). Through PHP you can access information stored in MySQL and create dynamically created information.

see http://www.mysql.com/ for more information
__________________
Nathan

Become an affiliate
Web Design Web Hosting
NateDogg is offline
Reply With Quote
View Public Profile
 
Old 11-11-2004, 11:44 PM
starsunited's Avatar
Extreme Talker

Posts: 211
Location: Singapore
but then why is that people are able to use it to retrieve data from the database using this function. i suspect it was built in because i cannot find the function created else where.

Another question is that

HTML Code:
SQL/DB Error -- [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
localhost,root,got problem?hmmm...
Warning: Cannot modify header information - headers already sent by (output started at ez_sql\ez_sql.php:93) in addcart.php on line 52
i keep getting this error and i'm really clueless on what has gone wrong?
starsunited is offline
Reply With Quote
View Public Profile
 
Old 11-11-2004, 11:51 PM
NateDogg's Avatar
Extreme Talker

Posts: 163
In regards to your SQL/DB error.
You have to have MySQL installed before you can retrieve data from the database. You also must create a connection to the DBMS. If you have both your DBMS installed and a connection on the page double and triple check the syntax of your SQL, you may have a typo.

Your second error is in regards to headers which have to be the first information sent back to the browser. You can't modify them there.

Hope this helps
__________________
Nathan

Become an affiliate
Web Design Web Hosting
NateDogg is offline
Reply With Quote
View Public Profile
 
Old 11-12-2004, 12:04 AM
starsunited's Avatar
Extreme Talker

Posts: 211
Location: Singapore
the sql/db error, everything is in orde. mysql is installed. the server is connected to the database. so i just don't understand why is there still a db/sql error and by the way i do not even knoe where the sql error comes from.

i understand i cannot modify the headers but then the information printed out first is a error msg indicating there is a sql error msg.
starsunited is offline
Reply With Quote
View Public Profile
 
Old 11-12-2004, 12:33 AM
Republikin's Avatar
Super Moderator

Posts: 3,191
Are you sure your using MySQL? MySQL will usually throw an error that begins with MySQL Error not SQL/DB Error. At least that has been my experience. It would also appear that the error in your syntax is that the SQL query is empty.

I would not worry much about the headers problem. It is more than likely because the script is probably trying to access the db first, then set some cookies or a session but when the db throws an error it sends that error text, in effect passing headers.
Republikin is offline
Reply With Quote
View Public Profile
 
Old 11-12-2004, 12:43 AM
starsunited's Avatar
Extreme Talker

Posts: 211
Location: Singapore
but i cannot go to the page that i want because of that error. yes i am very sure that i'm using mysql.
starsunited is offline
Reply With Quote
View Public Profile
 
Old 11-12-2004, 12:47 AM
Republikin's Avatar
Super Moderator

Posts: 3,191
Can you post the code for that page?
Republikin is offline
Reply With Quote
View Public Profile
 
Old 11-12-2004, 03:57 AM
starsunited's Avatar
Extreme Talker

Posts: 211
Location: Singapore
the header solve already. Yet another problem arises. whenever a person click add to the shopping cart, the cart details cannot be inserted into the table and the output page will say the shopping cart is empty. any idea what might cause it>?
starsunited is offline
Reply With Quote
View Public Profile
 
Old 11-12-2004, 08:03 AM
Ultra Talker

Posts: 377
Hard to say. It would be very good to take a look at script
__________________
andrews_john
www.softwareforhosting.com
andrews_john is offline
Reply With Quote
View Public Profile Visit andrews_john's homepage!
 
Old 11-12-2004, 10:14 AM
Republikin's Avatar
Super Moderator

Posts: 3,191
Quote:
Originally Posted by andrews_john
Hard to say. It would be very good to take a look at script
Ditto
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to built-in-function mysql?
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15824 seconds with 12 queries