Jump to content

gtal3x

Members
  • Posts

    85
  • Joined

  • Last visited

    Never

Everything posted by gtal3x

  1. Hello, this is probably an easy question but I haven't used php for few years now and can not figure how to do this :'( :'(... Basically let say I have a string "Blah Blah Blah |||Need This Text Only||| Blah Blah Blah"... What is the easiest way to get the text "Need This Text Only" from the string, knowing that always infront and after the text there is going to be something like "|||"...?
  2. No because i dident try it. Basically I am starting a site now, and i wont to make the links look that way, the reason i posted this question was so i know, how should i write my links in the script, like you guys told me there is a mod_rewrite, or making a htaccess, so now i will make the site with normal links (if i understood right), and at the end just do the things you told me and it should work...
  3. Hello, i understand how to pass variables throu pages and how to get the data that you need from them from sql database. What i dont understand is how to make this variable: somesite.com/users.php?username=John to work like that: somesite.com/users/John/ or even like: somesite.com/users/John.html I have seen this many times in different sites, but dont know how they do this, if you can explain to me or give me a link for an understandable tutorial i will appreciate it! Thanks
  4. I guess this is not a php problem, you posted in the wrong forum my friend
  5. jackson was 100% right when he told me that i could search google, Just so you know after hes script dident work i was about to search a google myself, instead of doing this however i was siting here and having an argument with one little bitch. You. I assume that all you trying to do in your posts is to show how well educated and smart you are, and you even tryed to snick the idea that i cant understand what your are saying and you have to write more slowly... Well so you just stop trying to show off ill tell you that we all speak english here, however we dont all leave in usa and we dident all finish the Barkley university, and just because i do few simple typos in my sentences and i am strugling to understand your literature english doesnt mean i am uneducated, just so you know i speak and write in 3 complitly different languages, i know 2 of them perfectly and 1 just good wich is english Anyway stop writing your cheap propaganda to the solved topic the topic is solved just get it! I dont wonna continue this stupid conversation with you, i have got my opinion, u have got yours. For me the problem is solver... However if you still feel like you have a personal problem with me, then PM me, i would be happy to provide you with my mobile number and where i live, and we can start from there to solve your problem.
  6. How many lines did you post now? You can write a book if u continue like that. To be honest i cant be even bothered to read all this crap, take it this way, i don't like reading books. If someone is crazy enough to read all this then please post a brief description of what he was trying to say... And something last, why are you trying so hard to cover up what happened? You think if you write 1000 lines everyone is gonna read them and by the time they finish they will forget the hole point and just leave? Simple solution, dont pass your bullshit to users, and let them decide for them self who is right and who is wrong (if they can be bothered)... Agree? If you would have putted as much effort to my thread as you putted to write all this nonsenses, you would probably had answered it in 30 seconds, You remind me of someone who says so much bullshit and never does anything... Take a simple example of jacksonmj, he just gave 1-2 minute(s) to read and understand my post and then came up with a right solution If you simply dont know the answer to the question dont answer, or if you dont get what i mean then say WDF DO YOU MEAN THERE, dont just post anything you can think of just to say you posted. And the really last thing... I dident ask for your help at all, I asked help from people that are willing to help or at least give a right advice (after they understand the problem NOT before) and i know this forum is full of people like this, they really trying to help, and if i get the chance i will do anything to help them is well! EDIT: By the way i got NO problem at all because you dident understand my post, many other dident understood it either for some unknown reason (maybe its my fault btw!). The problem started when you start calling me rude and other things and when you tryed convince me that i cant remember what i wrote in my own post and how you are the top boy in the team and bla bla bla
  7. Man if i was a modarator i would change your rank from n00bie to super guru! Thanks a lot for your help thats excacly what i needed! Finally someone understood my question TOPIC SOLVED
  8. Man you are either blind or you smoke too much crack... Here is your comment: And here is my original post: So why are you lying then? I posted clearly that i already display 250 users on each page. I have seen many of your posts, in most of them you dont even read a problem and you just post your answer straight away and in some of them you are complitly rude and offer no help... I dont know why are you doing this... mybe because you just wont to increase your rating by posting stupid replys? I have to agree that i help rarely on this forum and most of the times i am asking for help, this is because there are so many questions here that i cannot answer (my php levels is not that good), so i just dont answer them, and i guess i dont have the same problem with rating like you do so i dont need just to post nonesances... Now you have a good day
  9. Yes, your main problem seems to be XSS, well there are tons of articles how to prevent it just search here
  10. No, your English is just fine. You're rude is all. No problem. Best of luck with your issue. PhREEEk Completly disagree. I mentioned that i am paging all my results on pages by 250 on each at least 2-3 times in my post, and say for example you wasnt reading what i was saying... What about the code: $site_rows2 = mysql_query("SELECT login FROM $sitename ORDER BY time DESC LIMIT $offset, $rowsPerPage"); And then you just post thats i sould do the paging thing... Anyway i dont wonna discuss this further...
  11. jacksonmj: Thanks for reply i understood what you mean... however i am getting the above error: Column 'login' in field list is ambiguous What does ambiguous mean? and how to solve it?
  12. LOL Coreye, you just smaked that little forum
  13. I have all site users on one table, on another table wich is called target_users (the importent users) i have like 10 rows... So basicly i search in the 1st while if i have got the same user in both tables then display them... the second while is just to print 250 first users from all 1200. I am explaining everything over and over again... Is my english that bad and no one can understand me? EDIT: And i am not forcing anyone to help me, i am always thankfull to people just for reading my posts, but at least try to understand what i am trying to do Thanks a lot again!
  14. I explained exacly what i need, I have 2 whiles. 1 while is to search from all the 1200 users, and display ONLY the target users (witch are only 8-10). The second while is limited by 250 so its displays the first 250 of all my users. I believe the problem is because i am using 2 whiles on the same script... But i need both results on the same page... Any idea how to do this a diffrent way? $site_rows = mysql_query("SELECT login FROM $sitename"); $site_users = mysql_num_rows($site_rows); $site_rows2 = mysql_query("SELECT login FROM $sitename ORDER BY time DESC LIMIT $offset, $rowsPerPage"); $rowsPerPage = 250 So Yes i am limiting the results
  15. You dident read my post propely, thats exacly what i am doing i dont have access to php.ini
  16. Completely agree. This is a second time i see this problem in 1 month!
  17. Whats the errors thats you get? If you say you downloaded the script then i guess it should work... but you have to configure the database, the config.php for example.... did you do all this?
  18. Ok i got 1200 users in my db and i wont to display all of them in many pages by 250 on each page... Not only this but i wont to display the target users(the important users) on top of the page. The problem i have is that when i am trying to load the page in 90% the page wont come up instead will come up blank page in netscape and "Page cannot be displayed" in ie. I have the same script seans i started this project and it was working fine when i had 4000 users. When the number raised to 8000 i started having this problem, but few refreshes would usually solve the problem, now i have 1200 users and i have to keep clicking the refresh button for like 20 minutes so the page finnaly displays... I believe the problem must be because the script reaches the time limit... because i got 2 whiles inside for mysql_fetch_array witch both accesses the 1200 rows. One while to get the users that are targets and the second while is to get all the users. You may ask why i did that in two whiles, i could simply do this in one while: if ($user == "target") { $print_targets .= $user; } else { $print_users ........... AND SO ON However i cant do this because i need one while to get result from all users and the second one is limited by 250 (so its only displays 250 users on each page) here is my code: $site_rows = mysql_query("SELECT login FROM $sitename"); $site_users = mysql_num_rows($site_rows); $site_rows2 = mysql_query("SELECT login FROM $sitename ORDER BY time DESC LIMIT $offset, $rowsPerPage"); $sitetitle = str_replace("_",".",$sitename); while ($row = mysql_fetch_array($site_rows)) { $user = $row['login']; $target_rows = mysql_query("SELECT login FROM target_users WHERE site = '$sitename' AND login = '$user'"); $target_user = mysql_fetch_array($target_rows); if ($target_user) { $print_t_users .= "<a href=\"admin.php?page=userdetails&sitename=$sitename&user=$user\">$user</a>, \n"; } } while ($row = mysql_fetch_array($site_rows2)) { $user = $row['login']; $print_users .= "<a href=\"admin.php?page=userdetails&sitename=$sitename&user=$user\">$user</a>, \n"; } Thanks for any help in advance!
  19. oh dont tell me i did such a stupid mistake....! is it coz its 5:30 am???? Thanks for reply!
  20. Ok here is my script, when you go to the page it should check if the seesion is not registred and display the login form, else it should echo "You are logged in" for some reason it doesnt work and am gettin confused coz its a simple script! <?php $username = "alex"; $password = "mypass"; $submit = $_POST['submit']; $post_user = $_POST['username']; $post_pass = $_POST['password']; if (isset ($submit)) { if (($username != $post_user) || ($password != $post_pass)) { $error .= "<b>Login Failed.</b>"; } if (!$error) { session_register("post_user"); header("location:index.php"); } else { echo $error; } } if (!session_is_registered("post_user")){ ?> <html> <head><title>Admin Page</title></head> <body> <form name="login" method="POST" action="<?php echo $PHP_SELF; ?>" > <table> <tr><td colspan="2"><h1>Admin login:</h1></td></tr> <tr><td><b>Username:</b></td><td><input type="text" name="username"></td></tr> <tr><td><b>Password:</b></td><td><input type="password" name="password"></td></tr> <tr><td><input type="submit" name="submit" value="Login"></td></tr> </table> </form> </body> </html> <?php } else { echo "You are Logged in!"; } ?>
  21. yes it does actually work without that, but i need to get the servers hostname is well so basicly the script outputs something like that: index.php?page=do&cookie=some_cookie_here&site=somesite_here.com well maybe the documet write is the wrong option to put there, if you got any other solution pls let me know (note that i wont the server's hostname not the user's)
×
×
  • 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.