I have form fields that are the same, with the same name/id, let's say that I have ten such fields.
name: id=name
name: id=name
name: id=name
name: id=name
name: id=name
name: id=name
name: id=name
name: id=name
name: id=name
and so forth,
would I would like to do, is if the first "name"...
In MYSQL there's a functionality where I can export a select statement directly to a file... such as...
SELECT * FROM table
INTO OUTFILE '/tmp/testing.txt'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
is there something similar to this in PostGreSQL?
Hello,
I've got a database that has boolean search on it, but from what I read and see from my results, MySQL ignores words with three or less characters, is there a way to force this? or how I can deal with having two and three character words searched?
Any help appreciated.
AN
I have:
co_name, id
BigCompany, 1
BigCompany, 2
SmallzCo, 3,
SmallzCo, 4
So, I want to be able to only show BigCompany,1 and SmallzCo,3 from the above data. Meaning, a unique company and the ID associated with it.
I have this SQL statement:
SELECT DISTINCT co_name, id FROM user
id is a unique number
co_name has many values that are the same, I am looking for something that will select the first DISTINCT co_name and the id associated with it.
The above SQL doesn't do this, because I think it selects...
I figured this out, and wanted to post this for others.
What I did is call up a PHP script from DOMAIN1 on DOMAIN2, which produced an 1x1 image and at the same time set a cookie on the DOMAIN1. So now I am able to cross authenticate.
I thought this wasn't possible in PHP. Do I do something like this:
setcookie("TestCookie", $value, time()+36000, "/", ".");
where that lost dot means every domain?
Thanks for helping.
Feherke, thanks for reply.
They can share the same database, and that's what I'm planning on doing, but how do I detect that when a visitor was properly authenticated on domain1.com, and then they visit domain2.com, that they are already authenticated?
Hello.. Can anybody suggest the best way to authenticate users on two or more domains on a LAMP servers?
Are there any tutorials out there that might help me with this?
Thanks in advance
Hello, has anybody had any success with accessing and download Gmail message using PHP? I'm trying to accomplish this, and any help would be appreciated.
Thanks,
This might a weird question, but I'm able to set cookies OUTSIDE of a function, but not inside of a function. maybe somebody has come across this before. I'm using PHP 5.2.1 Here's the code that I have, the utoutside coookie sets fine, the utinside cookie DOES not set, I've never seen this...
Hi, I have a web server, running ubuntu 6.06.1 apache2, and I would like to give access to some LDAP/AD groups. This would be done over the local network. So the people would just map a network drive on their windows machines and have access to do certain things if they are part of a group that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.