Search found 40 matches

by thesimon
Sun Aug 07, 2005 10:31 pm
Forum: PHP - Code
Topic: PHP Poll, stop double voting
Replies: 7
Views: 1369

How would i go about using cookies to achieve that? Its not that important that they cant go about voting again, it will just be better if they have to delete cookies before doing so.
by thesimon
Sun Aug 07, 2005 11:13 am
Forum: PHP - Code
Topic: PHP Poll, stop double voting
Replies: 7
Views: 1369

PHP Poll, stop double voting

I have managed to script a poll with PHP and mySQL. Currently on the page i have the table in which the choices can be made and a second table with the results. I would like for those who havnt voted to see the first table, and for those who have voted to see results, and not be able to vote again (...
by thesimon
Tue Jul 26, 2005 12:31 pm
Forum: PHP - Code
Topic: PHPmyadmin CSV import
Replies: 1
Views: 556

Hmm kinda fixed it, you know the type where it works, but you don't know why.

I made up some primary key values in the csv file, seemed happier :?
by thesimon
Tue Jul 26, 2005 10:07 am
Forum: PHP - Code
Topic: PHPmyadmin CSV import
Replies: 1
Views: 556

PHPmyadmin CSV import

Can anyone help me use phpmyadmin to import a csv file into a mySQL database.

At the moment it will only import a single line from the file (but it does that properly).
by thesimon
Sun Jul 24, 2005 8:30 am
Forum: PHP - Code
Topic: File Extensions
Replies: 16
Views: 2142

Is there any easy way to "zap" the .php using the .htaccess. I am on reseller hosting, so i do not have much control.

Thankyou for your help so far, this is very interesting.
by thesimon
Sun Jul 24, 2005 3:04 am
Forum: PHP - Code
Topic: File Extensions
Replies: 16
Views: 2142

True, very true.

But I suppose the most obvious question is, which do you prefer? What do you use?

Besides, if i use echo or print, the end user will not see any difference.
by thesimon
Sun Jul 24, 2005 2:11 am
Forum: PHP - Code
Topic: File Extensions
Replies: 16
Views: 2142

File Extensions

by thesimon
Tue Jul 12, 2005 9:52 pm
Forum: PHP - Code
Topic: MySQL Error: No Database Selected
Replies: 15
Views: 2953

wow thanks seems ok for me on the remote server, with about 15 refreshes, is it ok for you?
by thesimon
Tue Jul 12, 2005 9:34 pm
Forum: PHP - Code
Topic: MySQL Error: No Database Selected
Replies: 15
Views: 2953

Hmm, but its the same connection file i use for all pages, and they did have similar recordsets

could the problem be my if statement?
by thesimon
Tue Jul 12, 2005 9:02 pm
Forum: PHP - Code
Topic: MySQL Error: No Database Selected
Replies: 15
Views: 2953

yeah it was happening on my local server before.

Could it have something to do with the amount of time it takes phpthumb to generate the thumbs, or a cache problem
by thesimon
Tue Jul 12, 2005 8:30 pm
Forum: PHP - Code
Topic: MySQL Error: No Database Selected
Replies: 15
Views: 2953

Its working on my local server now, but not on the main server :(

It you have anymore ideas, please help me :?
by thesimon
Tue Jul 12, 2005 12:59 pm
Forum: PHP - Code
Topic: MySQL Error: No Database Selected
Replies: 15
Views: 2953

It's messy, sorry. <?php require_once('Connections/keenandb.php'); ?> <?php include('header.php') ?> <?php $catp = $_GET['cat']; ?> <?php if(isset($catp)) { ?> <?php mysql_select_db($database_keenandb, $keenandb); $query_photocat = "SELECT * FROM photocat WHERE pcatid = $catp "; $photocat ...
by thesimon
Tue Jul 12, 2005 12:43 pm
Forum: PHP - Code
Topic: MySQL Error: No Database Selected
Replies: 15
Views: 2953

yeah i wil go through and change that, but thats not the issue, i have searched this error on google and got very little results :S
by thesimon
Tue Jul 12, 2005 12:35 pm
Forum: PHP - Code
Topic: MySQL Error: No Database Selected
Replies: 15
Views: 2953

Yes before each SQL query.

The page has a header.php, footer.php, itself,, and it uses the phptumb files
by thesimon
Tue Jul 12, 2005 11:59 am
Forum: PHP - Code
Topic: MySQL Error: No Database Selected
Replies: 15
Views: 2953

MySQL Error: No Database Selected

I am new to php, but have been getting the hang of it. That is until today, when it left me heartbroken. I am building a photogallery to add to a site i have built. The cms component where users upload images seems to work fine. However, the public page is supposed to work like such, -- Page check t...