PDA

View Full Version : What could be causing this?


Capn
05-30-2005, 10:52 AM
I'm trying to install the bookshop with another hosting provider. I got it to work a few days ago, but now I'm getting this error when trying to setup another bookshop:

PHP Fatal error: Call to undefined function mysql_connect() in C:XXX\XXX...\includes\config.php on line 51

What am I doing wrong?

Greg
05-30-2005, 11:33 AM
That's a standard mysql function when mysql is included with php. I can't see any reason for that to be undefined other then a host issue.

By the c:\ path I can see it's windows and I have no clue what to tell you unfortunatly.

LGR
05-31-2005, 05:11 PM
I read somewhere that the default php 5 install on Windows servers does not include the mysql functions. They have to be turned on in the php.ini, but I could be wrong, my memory is not what it used to be. You might want to check www.php.net.

Greg
05-31-2005, 05:18 PM
Thanks LGR, I'm hoping to hear back from him soon.

Capn
05-31-2005, 06:29 PM
Thanks LGR, I'm hoping to hear back from him soon.

Here's my dilemma. I'm trying to get Link-Vault to work in conjunction with my FREEBS bookstore. I tried another web hosting provider and could get the Link-Vault to work, but the bookstore wouldn't work. I'm not smart enough to figure it out, so I finally gave up and wen't back to my old host. I'll figure it out eventually. Sorry for bothering you with these silly issues, noppid.

Greg
05-31-2005, 06:47 PM
Here's my dilemma. I'm trying to get Link-Vault to work in conjunction with my FREEBS bookstore. I tried another web hosting provider and could get the Link-Vault to work, but the bookstore wouldn't work. I'm not smart enough to figure it out, so I finally gave up and wen't back to my old host. I'll figure it out eventually. Sorry for bothering you with these silly issues, noppid.

Hey man, no big deal, we'll help where we can. :)

As for link vault, if I understand it correctly, each page is unique. That is gonna be an ambitions piece of code to make each page unique in the book store for that purpose.

There is a common footer for the whole store. You can use a conditional to see if it's the front page, an index page or a book page, but nothing more granular then that.

Capn
05-31-2005, 06:59 PM
Thanks for your help so far, bro. You've been nothing short of outstanding and your bookshop is top notch.

I've placed the Link Vault code on the book.php and index.php pages instead of in the footer file, and it does actually recognize individual book pages and the index type pages. I don't know how, but I've checked my data file and it's right there. Bottom line - Link Vault should play nice with FREEBS if you're smart enough to get it to work. Getting it to work is another matter altogether.

Like the DigitalPoint Co-op, Link Vault and FREEBS seem like a natural fit. Lots of pages to run ads in return for lots of permanent text link ads.