Jump to content
xisto Community

midnitesun

Members
  • Content Count

    182
  • Joined

  • Last visited

Everything posted by midnitesun

  1. i guess i replied to a previous post of yours about deleting a particular row, since now you want a confirmation box i might as well suggest you to use another page to handle deleting, it will make life easy for you and you will understand it better i hope, so now we got to make some more modifications to the code , first put the following code in your original page where delete link is : <a href="java script:doConfirmation('<?=$content_id;?>','<?=$content_title?>')">delete</a> and put this in head section of your script : <script language="JavaScript">function doConfirmation(content_id,content_title) {if (confirm("Are you sure you want to delete " +content_title+ " ?")){window.location="delete.php?id="+content_id;}}</SCRIPT> now in make another page called delete.php and put the following code : ?>ob_start();if(isset $_GET['id'])){$id = $_GET['id'];// --------- here code to connect to mysql and select database -----------$query= mysql_query("delete FROM comment where id =$id")or die(mysql_error());header("location:some.php?action=deleted");} ?> if you have any doubts please post back
  2. oh boy , i cannot believe how missed this ! , i am great fan of nirvana and songs like smells like teen spirit has been my all time favourites but i never knew he left a suicide not when he died . Thanks for sharing it up
  3. you can also do the following if jihaslip's code proved to be a little complicated for you $result = mysql_query("select * from comments order by id desc limit 10");//the while loopwhile($r=mysql_fetch_array($result)){//getting each variable from the table$id = $r["id"];$self = $_SERVER['PHP_SELF'];echo $r["comment"];echo "<br />";echo "<a href = \"$self?id=$id\">delete</a>";}if(isset $_GET['id'])){$id = $_GET['id'];// --------- here code to connect to mysql and select database -----------$query= mysql_query("delete FROM comment where id =$id")or die(mysql_error());} if you already dont have a field called id make one and make it primary key. hope this helped you too
  4. midnitesun

    Hello

    honestly i dont think most people here at Xisto or antybody at all for that matter would say things like runscape sux and stuff, people here can be quite friendly as you will start to know , so enjoy your time here
  5. i guess it depends on your sense of humour , i like the simpsons more and i dont find them boring at all , of course different people have different tastes
  6. i understand you intended this post for Xisto admins i thought i migh as well drop a comment , it would not have been much of a problem or caused confusion if you had an agreement between you two that allows you the sole ownership of the site if the other one becomes inactive for a specified period of time, but since it is not your original work as you have told it seems very inappropriate to kick out your partner and block his ip, as buffalo has mentioned if you are using and maintaining someone else's car doent mean it will finally become yours or you can take over its ownership without prior permission from the rightful owner , i understand you may have done more work on the site then what he may have done to develop it , but i believe it is only fair if you talk to him and explain to him that you find it difficult to tolerate if he behaves more like a sleeping partner or something, and if it is going to be the case then you can ask for the sole ownership of the site, i think it is not so nice to delete his ftp and e-mail accounts and change the control panel passwords without his knowledge or permission from my time here at Xisto i have known you even though we wer not friends i sort of have some respect for you for what you do at Xisto so i only hope you wont make a decision that not only may hurt you but may change your image here at Xisto too
  7. /* recipients */$to = "Mary <mary@example.com>" . ", "; //note the comma$to .= "Kelly <kelly@example.com>";/* subject */$subject = "Birthday Reminders for August";/* message */$message = '<html><head> <title>Birthday Reminders for August</title></head><body><p>Here are the birthdays upcoming in August!</p><table> <tr> <th>Person</th><th>Day</th><th>Month</th><th>Year</th> </tr> <tr> <td>Joe</td><td>3rd</td><td>August</td><td>1970</td> </tr> <tr> <td>Sally</td><td>17th</td><td>August</td><td>1973</td> </tr></table></body></html>';/* To send HTML mail, you can set the Content-type header. */$headers = "MIME-Version: 1.0\r\n";$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";/* additional headers */$headers .= "From: Birthday Reminder <birthday@example.com>\r\n";$headers .= "Cc: birthdayarchive@example.com\r\n";$headers .= "Bcc: birthdaycheck@example.com\r\n";/* and now mail it */mail($to, $subject, $message, $headers); you can use the example above to test and send mail , hope this helps
  8. do you mean to get your own domain , if you dont know what a domain it is the name you use to access your site through internet ,like yoursitename.com , so if you want a domain it is not free and you will have to pay for it, you may use Xisto hosting services to register your domain and then host it , if you are looking to have it done for free then you will have to do with a sub domain , that means the original hosting provider will add their name to your sitename too , like for example in Xisto free hosted sites all sitenames will have something like yousite.trap17.com, but it is very much worth to get hosted for free here in Xisto for numerous reasons, the first and most obvious reason is they dont place any advertisements on your site which you will find annoying.so it largely depends on what you want , hope i may have helped you in someway , if it is not what you are looking for you can always post back with more details
  9. a really funny site i came across , here you can spend some good time destroying your favourite sites , use nuk or hurl meteors or even you can be god himself ,you have to provide a url of the site you want to be a disaster and then choose from the many options how you want to apply virtual damage to it , ofcourse you will be wondering what i am talking about m but it is best if you can go and check it yourself , here is the url netdisaster enjoy
  10. midnitesun

    Mysql Help

    if you can be more specific you will definitely find help from here , perhaps you are trying to connect to mysql server from a diferent machine ? if thats the case you need to re-configure mysql to allow root access from remote machines , just click on the check box saying allow rot access from remote machines when you are configuring mysql server , if not you can re post with a more details so we will be able to help you
  11. whats with your url ? it says http://forums.xisto.com/no_longer_exists/ while your site has http://forums.xisto.com/no_longer_exists/ on it
  12. yea as already mentioned nothing is free, sometimes free is meant if you dont pay hard cash for it , but the methods you would have to do is almost always more painful then paying with real money , only you are not aware you are spending money because you did not give your credit card number and purcahased it , but just think about this , sitting at you r computer from morning to night doing nothing but clicking on banners,referrals, signing up in countless number of sites , agree to recieve newsletters, give out the email addresses of anyone you can think of, now after all this and i am sure there will be more , this is just what i can think of right now , yea after all this if you are really determined to get it for "free" i guess you can get one in two three days, now i believe nobody gets internet connection or elcetricity "freely" so what comes on your internet and electricity bill itself will be a thousand times costlier than buyin a domain, not to mention all the mental stress and and the urge to click click click and get it as soon as possible , and god only knows how many times after a click or signing up for spam you go back to home page or wahtever page your score is .. lol , of course i have exaggerated unjustly but i hope you will get a clear idea that in these when everyone has run out of options to make money a "free" thing is the most expensive thing you will be buying without even the knowledge of the price you are paying ,god knows how many times i cursed at him when i am searching for something and is unnecessarily and silently led into trap so never believe it when somone says it is free
  13. well one more thing about php is that it is totally free unlike other server side scripting languages like asp and asp.net, what you need to start working on php is a server that has a php server , the ideal and most often used one is apache which too is totally free and next thing you need to have is mysql again free which is the reason it is becoming more and more popular besides being a powerful and competent server side language ,everyday it is being downloaded thousands of times togather with apache and mysql and is mostly used in lunux based machines , but no need to get scared , you may as well run php codes on your windows OS by using IIS so apache is not a must for php, as far as i know you can do anything that can be done in asp or dotnet by using php too and it is only limited to your knowledge , the more you learn the more complex things you can do without much effort as it is developed with user friendliness in mind ,so you can start away coding right at noob level too, so keep up your interest in php and learn it and sure enough it will make your world be completely under your control
  14. lol that is certainly a bug in notepad , when i first typed "Bush hid the facts" and opened it the letter "u" was missing , but as i read the posts and saw everybody was getting squares i closed and opened again and sure enough i got squares,and as someone pointed out it happens when the words are in 4335 order only
  15. i see this is a really old topic but since it had been dug up i thought i will make post here too ,the very first and obvious program i use when designing a site is photoshop cs , from which i make the layouts for each of the pages and then i use macromedia flash mx 2004 to add more versatility to my pages ,then i use frontpage to htmlalize the layouts ,when i need to make tons of php code i use a php editor ,those of you who code php in frontpage will now how much of a headache it is to debug your code if you are using frontpage for everything , i never used dreamweaver but maybe i may check it out anyway i am pretty much happy with frontpage so makes no sense for me to jump into another software just because i havent used it
  16. i am suprised that you go through all that pain of uploading files and checking it on the internet thus wasting a lot of time and energy which you could have used for developing your pages when you can do it all on your computer even without an internet connection , in case you happened to be not aware of the fact , most probably the windows version you are using will have microsoft internet information server ,which will be there by default on xp ,windows server 2000 and 2003, all you need to do is open IIS and add your site , and type localhost on the IE address bar , there you are now running your site and you can perform what ever check you want and when you are done just upload the files using a ftp client to your Xisto account or which ever server you are using .
  17. as jihaslip has said using gmdate() is always the best opition which then can be adjusted by the user in accordance to his time zone , for which you just have to include a little extra code if you don not have one already
  18. you canget much cooler effects if you dont use a flat color as background , for example the Xisto name in the header can also be done following the above example upto step 4and move the reflected image more closer to the original text and then by setting eraser opacity to about 26% , just move the eraser in a horizontal line halfway below the reflected text three to four times and you are done ,
  19. i believe the best way to test off your knowledge is to start coding right away and see how complex pages you can make, you can start off by installing apache and php in your computer ,perhaps mysql too as you improve yourself , and run the pages on your localhost ,now it is not really necessary to install apache even because you can run php scripts on IIS too which i assume you'll be having as you may be using windows, now if this got a little bit complicated you can PM me your doubts and i will try my best to answer, if you dont know how to configure IIS to run php scripts or install php you can always use online too help if you dont feel like you'll learn yourself without asking anybody , good luck with your coding and again i stress there is no need to obtain an online certificate to assure you know php when you can do more yourself , you can start off by making a simle login script and see how it turns out
  20. well nobody can help you unless you show either the swf or the fla , perhaps you can upload it and the other files to some free uploading site and post the link back here ?
  21. yea phpfreaks is a nice resourceful site but if i want to for script i always go to hotscripts.com, maybe you should check it out, it is one of the biggest such sites in internet and you can virtually find anything from a simple script to softwares
  22. well you should have known albus better, he is not trying to show any authority or to make it known he is a higher member or anything else for that matter, it is just that we at Xisto is like a family as someone has mentioned before, and each and everyone is a responsible member of it , be it a moderater, a member or a newbie, responsible meaning ensuring that there is no spamming on the board and other various things required to make Xisto like what it is, you may have noticed that posts are very different here in Xisto as when compared to other forums, like if somebody is having asking a question or having a problem with a site , the posts are appropriate and dont have unneccessary headingS like "oh my god help me plz ........... HELP !!!!!!!!!!!!! " stuff which you find on other boards, and ofcourse Xisto is what it is because of members like albus and i guess pretty soon you will be another albus on board Xisto if you like it here
  23. so was that guy a muslim ? i doubt so because otherwise anyone will quickly point out he is a muslim, i know of nan incident where some guy who wanted to do something cool did exactly as like this one did but that incident was not much publicised since he was not the normal "terrorist", which i mean by he been white and christian, some people just get a kick or some high when they do things like that i guess and those freaky people should be properly punished so as to punish them for their offences and warn other wanna be's. but no wonder america has become so jumpy nowadays, it is much better to live in a war then live in terror because during a war you will expect anything to happen but with terror it is making people more jumpy ,
  24. 90% of my online time is spent on designing sites and sites like hotscripts.com because nowadays i am learning asp.net , so it is basically google i usally start with and i go to wherever google directs me, other than that an everyday must is hotmail obviously and not to mention getting online from msn messenger almost daily in the night even though i spend less time talking on it than being online from it
  25. so it is the final version ? i did use the beta version once but i did not use it fully as it was a beta , so i guess it is about time to download it
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.