![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
PFO Founder
![]() ![]() |
php and postgreSQL
Ok my question is when using php to connect to a postgreSQL database and when you send it a query what command is best and which one is the newest command. i have been look around and online i find pg_query but in this book i have it uses pg_exec. so which on is better or is there even a difference? thanks
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#2 |
|
Professional Programmer
|
for mysql i use mysql_query, i assume you should use pg_query, since i can't even find pg_exec in the PHP API...
![]() Dizz |
|
|
|
|
|
#3 |
|
PFO Founder
![]() ![]() |
sounds good.
i didnt even find pg_exec anywhere either so thats what im goin to use thanks
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() |
pg_query is what i use i think. pg_exec is back from the days when they first released version 4
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#5 |
|
Professional Programmer
|
cool, if you read the php.net comments in the API, A lot of people put their opinion down, or there's mention of which method is safer/faster if there are multiple ways to do something,
http://www.php.net/manual/en/funcref.php |
|
|
|
|
|
#6 |
|
Programming Guru
![]() ![]() |
yeah i love the user comments in the php manual. They've helped me more than once.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#7 |
|
PFO Founder
![]() ![]() |
yeah. i believe i will be using the pg_query as it is the newer of the 2 commands
![]()
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#8 |
|
Professional Programmer
|
yeah, they usually have more information, and better examples than the docs themselves
|
|
|
|
|
|
#9 |
|
Programming Guru
![]() ![]() |
yeah for sure
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#10 | |
|
Newbie
Join Date: Feb 2005
Posts: 12
Rep Power: 0
![]() |
From php.net's page in regards to pg_query:
Quote:
__________________
--Vorlin "Systems administration - it's not just my job, it's how I buy video games!" |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|