Jump to content

lssjg

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Everything posted by lssjg

  1. nah it wasnt running... thanks so much... it's now running.. thanks so much!
  2. [!--quoteo(post=376867:date=May 24 2006, 08:54 PM:name=legendary ssj goku)--][div class=\'quotetop\']QUOTE(legendary ssj goku @ May 24 2006, 08:54 PM) [snapback]376867[/snapback][/div][div class=\'quotemain\'][!--quotec--] all there is is a mysql command line client which opens up asking for my password... which once i enter my password it quickly flashs enter and then shuts.... i know the password is correct because it is stored in all my php config files. in my www folder..... i don't know what i am using.. i have windows xp pro mysql apache 2.0.55 php 5.1.2 [/quote] BUMP P.S. i keep trying to get a screen shot of the error,, but it is way to quick.... failed about 80 times! REALLY NEED HELP URGENTLY>>>.>otherwise i'm as good as dead
  3. all there is is a mysql command line client which opens up asking for my password... which once i enter my password it quickly flashs enter and then shuts.... i know the password is correct because it is stored in all my php config files. in my www folder..... i don't know what i am using.. i have windows xp pro mysql apache 2.0.55 php 5.1.2
  4. i have apache started and runnings..... it's just mysql usually runs.. but today when i logged it... and logged in and again.... it didn't start mysql... just apache.... so how do i start mysql... i have tried restarting apache... but it doesn't work i need eto know by as soon as possible because i have projects to hand in... and they wont take mysql as an awnser
  5. ok... as usual i turn on my computer, load dreamweaver, do something and open the site in ff and ie to test it..... goes fine.... been doing that for ages... then suddenly today.. i open dreamweaver and open ff and ie, send them to localhost/site and it says that it can't connect (what i got it to say if it can't connect), and that there was an error on line 8. On line at is the connect to mysql host. Now, i would go check all the files and everything, but it worked yesterday... and all my other stuff on localhost, works... just not anything that has connect because it can't connect. i haven't changed any files or anything! please help as soon as posible because i can't do anything while it doesn't work...and i have projects and everything due soon
  6. the reason why i made another post... is because i couldn't work it out... i tried 3 other methods.... and the script i am currently trying is the 1st example (in a couple of posts above). Once i get that working i will modifiy it to my hearts content...
  7. ok... now the 2nd never really worked... and without editing this new 3nd i get Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in E:\Websites\Server\www\site\site\news.php on line 21 Anyway.. that's href=\"user.php?action=profile&mode=view&user={$news['author']}\">$username</a> | what i was really trying to do is... before this thread i could get everything woring but, i got resource id # something as the username..... so i start using the 1st example.... and suddenly the news (the actual) news doesn't turn up...... what iw ant is for the news to come back
  8. Hey, thanks.... i have taken a look at both... the 2nd doesn't work... but the 1st does, so i'm using that, but i have edited it quite a bit....... it almost looks like a different language.... hee [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /] anyway..... now my only problem, is now the actual news isn't showing up on ff or ie
  9. bump.. i really would quite like to know this... could someone give an example
  10. Huh........ that kinda doesn't make much sense... could you give an example... like i have read it but i don't kinda understand ... could you show me what you mean?
  11. for the 2nd time i am stuck.,... this time it isn't just adding { and }. The following my edited version of the whole php script... the bits i took out is just the table and the layout of each table of news... [code]<? include 'include/config.php'; $query = mysql_query('SELECT * FROM news ORDER BY newsid DESC'); while($news = mysql_fetch_array($query)) { $username = mysql_query("SELECT username FROM users WHERE loginname='{$news['author']}'"); echo "<td align=\"center\" colspan=\"2\"> Posted by <a href=\"user.php?action=profile&mode=view&user={$news['author']}\">$username</a> | Posted at {$news['date']} <br /> <br />"; } ?>[/code] Ok... now explanation time... For each row in 'news' it will - grab the username for the 'author' - stick the username in after the words 'posted by' - and a few dozen other things that aren't related to the problem Now... what's happening... there isn't any error... (thus why i don't have anything to go on) instead this happens Posted by Resource id #8 starting at 8... the next news is 9 then 10 and then 11.... that's the 4 test news entries i've done. though the newsid for them isn't 8, 9 10 or 11.. it's 1, 2, 4 and 5... cause i deleted one. Anyway... of course the author part is still working because the link is still going to the correct address i tested putting test1 as the author of an entry and also a member in users... and thus it pointed at [a href=\"http://localhost/site/user.php?action=profile&mode=view&user=test1\" target=\"_blank\"]http://localhost/site/user.php?action=prof...view&user=test1[/a] so it can make the link between the tables... it just gives me resource link all the time. It is doing the same in FF and IE Can anyone please help? P.S. the author is simply the login name of the user that wrote the news.... author isn't username because i'm allowing changing of username....
  12. Ok... doing that..... and it works on both FF and IE.... thanks so much.... it works..... thank-you so very much.... veyr happy [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /] [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /] [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] thanks, cya
  13. Hey, i'm currently creating a site... and i have nearly finished the member system... so i am now doing the news syetem. Only problem, i can't get the news out. In the mysql table... [code]CREATE TABLE `news` ( `newsid` int( 25 ) NOT NULL AUTO_INCREMENT , `author` varchar( 25 ) NOT NULL default '', `topic` text NOT NULL , `news` text NOT NULL , `date` datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY ( `newsid` ) ) ENGINE = MYISAM DEFAULT CHARSET = latin1 COMMENT = 'News System';[/code] it's something like that... then in the actual news page [code]<? include 'include/config.php'; $query = mysql_query('SELECT * FROM news'); while($news = mysql_fetch_array($query)) { echo "Title: $news['topic'] <br /> Author: $news['author'] <br /> Date: $news['date'] <br /> $news['news']"; } ?>[/code] I am getting the following error Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in E:\Websites\Server\www\site\site\news.php on line 8 Obviously this is not going to be the actual thing... but before i format it... i want to get the coding done. Can someone please tell me what is wrong... P.S. the mysql stuff works... i checked in phpmyadmin and i even added a test row through phpmyadmin. But i still get the above error. [code] echo "Title: $news['topic'] <br />[/code] is line 8 and when i divided the line in 2 [code]$news['topic'] <br />[/code] this part ended up being the problem part If anyone could help me.... sometime soon... it would be extremely helpfull........ Until then i'm kinda stuck
  14. I first thought PS3.... then ps3 and now i don't know... revolution - yes that's right now you can see your favorite characters such as mario and pikachu in better graphics. - ah... yeah awesome...... mabye not.... that's pretty much what they bass them selves on each time the system changes...... the nintendo market is the kindergarten market of the gaming world.... i mean seriously..... anyone up to the age of 10.... or 8 or 10.... would be happy.... and fankly... i think it survives by having those classic characters like little kidies can recognise... + most parents wont get there 7 year old son/daughter a console which half the games include shooting.... x-box - the x-box 360 is like a computer which you can't do work on and can't claim tax deduction on as part of a business. If i wanted a microsoft game... then it i would get it for my computer. ps3 - looks to be bloody expensive... the games are always great quality....a bit of fps and a bit of sports..... bit of other stuff like SW: battlefront II to make it have more topic related fps's.... I got a ps1 when i was younger.....and i have a ps2 slim now..... I think i'll stick with my ps2 till it breaks or until there is a game i must have which is not on any computers..... But, 1st priority... get a better computer.... Mine is currently a slow, win XP, thing with 18 GB total... about 2 left and i clean the crap off the system every week to keep the 2 GB free...... So yeah..... once all the prices go down for all the consoles and a few great games come out i will seee
  15. oh, ok ok... what i'm trying to be able to do is have a way without using switch and break (because i don't want to have to update for every page) which will allow me to do the following kind of pagess /index.php?action=user which would bring up a page and /index.php?action=user&profile=modify now do u undertsnad???? currently i can only do stuff liked index.php?action=user . But i want to be able to do that as well as put &profile=modify or something like that on the end........ hence making it easier for me to design the navigation stuff!
  16. Hey, I have been using a script currently which allows me to include other pages into my a page which also happens to make the url like this /index.php?action=eatfrogs . Now, i amd quite good at PHP, i just can't get a grip on this nav thing. Now, i have search several search engines including google to try and find a script which would allow me to do /index.php?action=eatfrogs and also /index.php?action=eatfrogs&with=knifeandfork . Because finally, instead of trying to do basic websites, i would quite like to do something really interesting. But anyway. I have found several scripts. Is there any you guys would suggest that allows me to do both. For example /index.php?action=user would bring up a page, while /index.php?action=user&profile=modify would bring up another page and /index.php?action=user&profile=view would bring up another . Do you kind a get it???? I have seen ones with switch and break, but i don't paticulary want to have to update for each page. And i have seen millions of other ones. Some which people say aren't safe, while others say are safe. What do you guys use? And what would you suggest? Thanks in advance for anyone who helps me.
  17. yeah i found it... it aparently is INGOING: pop.gmail.com OUTGOING smtp.gmail.com so i am trying the 2nd currently... and i restarted apache and .... ERROR: Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first j7sm324703nzd in E:\Websites\Server\www\site1\users\register.php on line 91 Your membership information has been mailed to your email address! Please check it and follow the directions! ok... i tried to register with the script i posted above.... and i got this... the is i don't know what! And the your membership thing is simly what i got it to each when it is sent.
  18. thanks.... i fixed it.... i swaped email and password and it works! thanks! Now 2nd question... it gives me a mail function error.. it needs to be adjusted in php.ini with the details of a smtp server. Only problem. I don't know where to find it. I have a hotmail and a gmail account. Is there anyway i can find the smtp address of gmail or hotmail - preferably hotmail. I have googled it and got no where! i have tried mx1.hotmail.com mx.hotmail.com mx2.hotmail.com mx3.hotmail.com mx4.hotmail.com mail.hotmail.com smtp.hotmail.com anyway to find out!?
  19. Hey, i really need this kinda urgent. I wrote the whole thing apart from a small part in the php page which is just the creating a password.... that is the phpfreaks password something..... i got it off some part of the site SHORT SUMMARY OF IT: I have made it to take a username and an email address. Once done, you get taken to register.php register.html [code] <form method="post" action="../../../../../site1/users/register.php">   <table width="100%" border="0" cellpadding="4" cellspacing="0">     <tr>       <td width="22%" align="left" valign="top">Username:</td>       <td width="78%"><input name="username" type="text" /></td>     </tr>     <tr>       <td width="22%" align="left" valign="top">Email Address:</td>       <td width="78%"><input name="email" type="text"></td>     </tr>     <tr>       <td width="22%" align="left" valign="top">&nbsp;</td>       <td width="78%"><input type="submit" value="Register"></td>     </tr>   </table> </form> [/code] ok please note that in the next thing i call back registerform.html .... it is the exact same thing as register.html (which is above).. - the reason why i have two pages is because i have text on one saying other stuff.... ANYWAY... register.php [code] <? include 'db.php'; $username = $_POST['username']; $email = $_POST['email']; $username = stripslashes($username); $email = stripslashes($email); if((!$username) || (!$email)){     echo 'You didnt fill in the following fields<br />';     if(!$username){         echo "- Username<br />";     }     if(!$email){         echo "- Email<br />";     }         echo "<br><br>";         include 'register.html';         exit(); }      $sql_username_check = mysql_query("SELECT username FROM users WHERE username='$username'"); $username_check = mysql_num_rows($sql_username_check); if($username_check > 0){     echo "Please fix the following error: <br />";     if($username_check > 0){         echo "The username you have selected has already been used by another member of this site. Please choose a different Username!<br />";         unset($username);     }     include 'registerform.html';     exit(); } function makeRandomPassword() {   $salt = "abchefghjkmnpqrstuvwxyz0123456789";   srand((double)microtime()*1000000);       $i = 0;       while ($i <= 7) {             $num = rand() % 33;             $tmp = substr($salt, $num, 1);             $pass = $pass . $tmp;             $i++;       }       return $pass; } $random_password = makeRandomPassword(); $db_password = md5($random_password); $info2 = htmlspecialchars($info); $sql = mysql_query("INSERT INTO users (username, email, password, signup_date)         VALUES('$username', '$email', '$db_password', now())") or die (mysql_error()); if(!$sql){     echo 'There has been an error creating your account. Please contact the through the <a href="../../../../../../forum/">forum</a> or through the contact form.'; } else {     $userid = mysql_insert_id();     $subject = "Blah Site - Membership Info";     $message = "Dear $username,     Thanks for registering... blah blah blah     To activate your membership, please click here: http://www.this will be filled in when uploaded onto a site (yet to come).com/activate.php?id=$userid&code=$db_password          Once you activate your memebership, you will be able to login with the following information:     Username: $username     Password: $random_password          Then you can change your pasword in your user panel once you are logged in.          Thanks!     The bull sh-t admin Team     http://www.blahdjskfajdsbhfksjad.com          This is an automated response, please do not reply!  or you will die!..... i can ryme hehe";          $from = 'edited@out.com';          mail($email, $subject, $message, $from);          echo 'Your membership information has been mailed to your email address! Please check it and follow the directions!'; } ?> [/code] That is all.... NOW firstly i am doing this on my laptop so i am working off apache, php5 and mysql with phpmyadmin. My error is Column count doesn't match value count at row 1 It is black text on a white page..... no red boxes or anything.... i thought it might be a mysql error... so here is my table [code] CREATE TABLE users (   userid int(25) NOT NULL auto_increment,   username varchar(25) NOT NULL default '',   email_address varchar(25) NOT NULL default '',   password varchar(25) NOT NULL default '',   user_level enum('0','1','2','3','4','5','6','7','8','9','10') NOT NULL default '0',   signup_date datetime NOT NULL default '0000-00-00 00:00:00',   last_login datetime NOT NULL default '0000-00-00 00:00:00',   activated enum('0','1') NOT NULL default '0',   ban enum('0','1') NOT NULL default '0',   gender enum('0','1','2') NOT NULL default '0',   PRIMARY KEY  (userid) ) TYPE=MyISAM COMMENT='Membership Information'; [/code] It's something along those lines.... i don't know how to get the sql out of phpmyadmin - i put it in... but i forgot to save a copy in notpad..... - bad me! anyway... can someone help!
  20. [!--quoteo(post=365239:date=Apr 16 2006, 02:16 AM:name=legendary ssj goku)--][div class=\'quotetop\']QUOTE(legendary ssj goku @ Apr 16 2006, 02:16 AM) [snapback]365239[/snapback][/div][div class=\'quotemain\'][!--quotec--] please! [/quote] Is there a SMTP server which i can download even... HELP peoples!
  21. [!--quoteo(post=365044:date=Apr 15 2006, 06:30 AM:name=legendary ssj goku)--][div class=\'quotetop\']QUOTE(legendary ssj goku @ Apr 15 2006, 06:30 AM) [snapback]365044[/snapback][/div][div class=\'quotemain\'][!--quotec--] oh.... any else... please help! [/quote] please!
  22. Ok.... i tried to do a mail thing in php//.... and i couldn't get it to work... so someone who had already done and got it working sent me the files.... i then tried it on my computer and it didn't work... the error is this... Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:\Websites\Server\www\jstest\register.php on line 121 On 121 is just the mail part..... now i am running PHP, apache, etc... on my computer..... on WINDOWS XP pro... According to my research on google i am meant to put in some ISP or something...... but i don't know where to find it or anything... I just want to be able to run everything off my computer currently. thanks in advance to anyone that helps...
  23. [!--quoteo(post=361158:date=Apr 3 2006, 04:13 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 3 2006, 04:13 AM) [snapback]361158[/snapback][/div][div class=\'quotemain\'][!--quotec--] Make sure PHP is using the correct php.ini file by checking this with the phpinfo() function. Where is the php.ini file you are editing? If php is using the wrong file then ad this directive to to your httpd.conf file: [code]#PHPIniDir PHPIniDir "C:/WINDOWS"[/code]change C:/WINDOWS to where you are editing the php.ini file to. dont add php.ini to the end just do it to the folder it is been stored in. Also make sure you are restart Apache. [/quote] thanks sp much! it worked...... oh by the way i can't remember if it was like this before.... but!... down the botom of of the main phpmyadmin page it has IN RED The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.