I am making a page with css for styling and php for browsing and dynamic
content.
I use a simple switch statement to get the main content of each page into
the same tag like this:
However. I am not that competent in PHP to make my own forum, so I use a
premade forum. Invision Power Board actua
I am making a table at my homepage that automatically collects the
latest news from mysql db.
I have got it to work at my own server at home, but not at
www.torewestre.com (my remote site)
Local settings:(WinXP Pro) Apache 2.0.54, PHP 5.0.4 and MySQL 4.1.11
Remote settings:(Unix) Apache 1.3.27,
I'm new to this. So I used a tutorial to write this. But it shows "Login ok.
Welcome" at once when the page loads. Here is the tutorial:
http://www.ss32.x10hosting.com/ss32/files/PHP-logins.pdf
There was an error processing your login.
Login as:
Password:
Login ok. Welcome ";
When I fill in the form with user and password, it goes to the
loginerror.php anyway.
Is this because I use switch with only one case(I'm going to make more
later), and if it is. What should I use instead?
This is my first php-script. I have tested this on both php4 and php5.
Please help.
(login.p
Here are all the scripts original. It still won't work. I can't see what's
wrong with it???
It's from the tutorial PHP5 and Mysql for dummies. I have shorted it
down though, since I am the only one who will register the User with a
password. What I did was removing the Switch at the beginning o
All: Sorry. I forgot to write what's wrongstupid me...
Mike:1) I'm not sure how to indent the code...
2) I'm using Dreamweaver, but not to write the code for me. I'm not that
lazy :). And that's not the way for me to learn.
It's just rather annoying that all the tutorials I have tried seems
_pass']);
$reg = mysql_query($sql_reg) or die(mysql_error());
On 10/15/05, twistednetadmin <[EMAIL PROTECTED]> wrote:
>
> All: Sorry. I forgot to write what's wrongstupid me...
> Mike:1) I'm not sure how to indent the code...
> 2) I'm using Dreamweaver, but
Well. I have figured out that the login is working as it should.
The query brings back both the username and the userpass and stores them in
$_SESSION as: auth|yes|logname|Test
When I echoed the query with both user and pass, I got both back as they
should be. In this case I ran user:Test Pass:Test
I am making an imagegallery with fileuploads for the members of the site and
need a little info on how the open_basedir affects the fileupload.
I have read what I have found on it, but I'm not sure what it really does.
The phpinfo file says something like this:
PHP CORE config.
--
I asked my host to set up PHP and MySQL on the server.
They had either that or ASP with Access db.
I got an adress from them to the PHPmyadmin.
I don't think most webhosting companies allows remote access to th DB from
the local machines.
OffcourseI could be wrong...
-Twisted-
I have made this script to upload pictures into a picturegallery on a
website.
The script works just as I expected, but with one huge flaw. It doesn't work
from every users computer.
I can upload pictures with no problem, but another user get's an
errormessage. the other user emailed the picture to
The errormessage is from this part of the script.
echo "Result:\n";
echo "Now that didn't seem to work... \n
Did you try a wrong format or size? \n
File that failed--> (".$_FILES['guildimage']['name '].")";
So it seems that the file is wrong type or size, but as it works with the
same picture fro
As I'm not the serveradmin I have only checked the phpinfo wich says:
mysql.connect_timeout60
default_socket_timeout60
Keep-Alive 300
HTTP_KEEP_ALIVE 300
Timeouts Connection: 300 - Keep-Alive: 15
Wich of these I should work out from and what they all have to say, I'm not
sure of though since
I use this line in a script for uploading pictures to a website:
$_FILES['guildimage']['type'] == "image/jpeg"
This works fine when using Mozilla, but it doesn't work with IE.
How should I do it to get it working with both/all browsers?
if (isset($_POST['submit']))
Is it possible to use PHP to find out wich type of browser is in use?
Or must is this done by javascript or something else?
I would like to have a little statistic on my page that tells me what
browser is currently moet used.
This did the trick:
elseif ($_FILES['guildimage']['type'] == "image/pjpeg" or "image/jpeg")
Thanks guys. That helps alot!
But this:
Returned this using Mozilla: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.12) Gecko/20050915 Firefox/1.0.7
And this using IE: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Does that just mean that it's not completely accurate?
I have a news-script on a webpage. Or an eventscript you might call it.
This lists up events thats gonna happen on a given day. ie concerts and
sportsevents.
To get this deleted without having to log on to the adminpage when the event
is over would have been a great relief.
1. Is it just as simple
18 matches
Mail list logo