Search found 21 matches

by nullpunkt
Thu Oct 06, 2005 1:49 am
Forum: mySQL & php coding
Topic: sorry to bother you... again... but please help me
Replies: 9
Views: 2839

thanks for all the help... and php-vikas.. yeah I know I've got a long way to go before I master both PHP and MySQL... but i wonder how you think I can do that with out trying things and also asking questions when I'm stuck... just wondering
by nullpunkt
Wed Oct 05, 2005 1:40 pm
Forum: mySQL & php coding
Topic: sorry to bother you... again... but please help me
Replies: 9
Views: 2839

sorry to bother you... again... but please help me

This script wont do what I'm trying to tell it to do... there's no error messages, but it won't fetch the username and password and it returns the SELECT lines from everything else... <?php $dbUser = "root"; $dbPass = "*******"; $dbName = "users"; $username = $_POST['username']; $password = $_POST['...
by nullpunkt
Wed Oct 05, 2005 3:24 am
Forum: mySQL & php coding
Topic: just wont INSERT
Replies: 4
Views: 2624

that's the wierd thing... there's no error message displayed... it prints out exactly the way I've set it to do at the end of the code... which means that it goes all the way trough...

[EDIT: No worry... figured it out..]
by nullpunkt
Tue Oct 04, 2005 4:50 pm
Forum: mySQL & php coding
Topic: just wont INSERT
Replies: 4
Views: 2624

just wont INSERT

I've been looking around the forum and google for several hours... been trough every post I could find that had the same question as me, but I couldn't get a answer that solved my problem... please help me.. It goes trough everything and prints the text at the bottom, but i just wont INSERT anything...
by nullpunkt
Tue Oct 04, 2005 4:09 pm
Forum: PHP coding => General
Topic: picture view...
Replies: 11
Views: 2901

thanks.... and about that HTML... I'll do my best :) right now I'm working on getting my f**** SQL to work properly... i got the feeling from your first post that using database makes things easier.,...
by nullpunkt
Tue Oct 04, 2005 1:45 pm
Forum: PHP coding => General
Topic: picture view...
Replies: 11
Views: 2901

yeah I really belive that. Looking forward to start learning it... but hey maurits... i can't get it to work... are all the codes going into the same file? (showimage.php)
by nullpunkt
Tue Oct 04, 2005 12:32 pm
Forum: PHP coding => General
Topic: picture view...
Replies: 11
Views: 2901

thanks... I'll change from my to your code right away.... i'm very new to php... been using it for almost a year, but until now I've only been using it to include pages...

thanks alot...
by nullpunkt
Tue Oct 04, 2005 10:46 am
Forum: PHP coding => General
Topic: picture view...
Replies: 11
Views: 2901

thanks for all the help... just checked in to say that i had solved the problem... I don't know, but yours looked easier :) hehehe... but anyhow... I did it with the following code <?php $current = $_GET['pic_id']; # Tell the script what picture to show $firstpic = 0+1; # Tells the script that the f...
by nullpunkt
Tue Oct 04, 2005 8:04 am
Forum: PHP coding => General
Topic: picture view...
Replies: 11
Views: 2901

but there's one primar problem here... I don't use SQL cause I run my site from my local computer.. so all the pictures are taken straight out of the folder...

so if you also know how to do it then, I would be really happy... but thanks for giving it a shot
by nullpunkt
Mon Oct 03, 2005 3:13 pm
Forum: PHP coding => General
Topic: picture view...
Replies: 11
Views: 2901

picture view...

I've been working on a small photo viewer on my site... but there's one thing that I just can't figure out... I wanna be able to hide the "« Forrige" link when I'm showing the first picture, and hide the "Neste »" link when I'm showing the last picture... I've tried to use if ($current > 2) { to hid...
by nullpunkt
Sun Oct 02, 2005 2:52 pm
Forum: PHP General
Topic: what's wrong? please help me!
Replies: 6
Views: 2446

well i changed from w+ to a.. but it still writes to the same line seperating with a square... not to line 2,3,4,5 and so on in addlink.txt
by nullpunkt
Sun Oct 02, 2005 1:00 pm
Forum: MySQL Installation
Topic: What the ehll does this mean?
Replies: 1
Views: 3908

What the ehll does this mean?

Client does not support authentication protocol requested by server; consider upgrading MySQL client
by nullpunkt
Sun Oct 02, 2005 4:44 am
Forum: PHP General
Topic: what's wrong? please help me!
Replies: 6
Views: 2446

thanks... but is there a way to get it to write like on the next line, not on the same, seperating with the square? (sorry for all the questions.. still fresh in php)
by nullpunkt
Sat Oct 01, 2005 4:45 pm
Forum: PHP General
Topic: what's wrong? please help me!
Replies: 6
Views: 2446

what's wrong? please help me!

What's wrong? It keeps overwriting the first line in addlink.txt... It won't write to the next line... Please help me... <?php $filename = "linker/addlink.txt"; $content = $_POST['link']; if (file_exists($filename)) { $fp = fopen ($filename,"w+"); $link="$content\n"; fwrite ($fp,$link,strlen($link))...
by nullpunkt
Fri Sep 30, 2005 6:24 am
Forum: PHP General
Topic: wont $_GET[] form info
Replies: 6
Views: 3044

Like this? Because it didn't work.... it wrote to line 1 everytime and added a black square on the ende... probably the ascii sign for enter or something... i don't know... <?php $filename = "addlink.txt"; $content = $_POST['link']; if (file_exists($filename)) { $fp = fopen ($filename, "w"); fwrite ...
by nullpunkt
Fri Sep 30, 2005 5:32 am
Forum: PHP General
Topic: wont $_GET[] form info
Replies: 6
Views: 3044

ohh... thanks... it works now.. but damn I've been looking for hours now after the answer of a new question... how the hell can I write multiple lines to a text file? i've tried to use the file (string) to get the current number of lines and then calculate +1 to it and everything... but i just cant ...
by nullpunkt
Thu Sep 29, 2005 8:16 am
Forum: PHP Installation
Topic: need serious help
Replies: 3
Views: 4137

I've posted a gb script that's not working on my local computer, but it worked fine at a host... please, if you have the time, take a look at it...

http://pastebin.com/377832
by nullpunkt
Thu Sep 29, 2005 7:46 am
Forum: PHP General
Topic: wont $_GET[] form info
Replies: 6
Views: 3044

now i've changed from $_GET[] to $_POST[] and it still won't work... i'm trying to print it first to make sure it catches the variable from the form, and nothing appears....
by nullpunkt
Thu Sep 29, 2005 7:43 am
Forum: PHP Installation
Topic: need serious help
Replies: 3
Views: 4137

how can i do that when it's on my computer? log on with an ftp program? because that's the only way i know....
by nullpunkt
Thu Sep 29, 2005 12:28 am
Forum: PHP General
Topic: wont $_GET[] form info
Replies: 6
Views: 3044

wont $_GET[] form info

I don't understand why, but it just won't get the info from my form. Form code: <form name="form1" method="post" action="addlink.php"> <input name="link" type="link" value="http://" size="50"> <input type="submit" name="Submit" value="Foresl&aring;"> </form> addlink.php code: <?php $filename = "...
by nullpunkt
Wed Sep 28, 2005 7:58 am
Forum: PHP Installation
Topic: need serious help
Replies: 3
Views: 4137

need serious help

i need some serious help... I have set up Apache 2.0 and PHP 4.0.0 on my windows... It all works fine except one thing... It won't let me write to any files... I have a guestbook and when I try to write a message I get alot of error messages... do i need to enable any extentions or something? becaus...