Search found 35 matches

by pHp_n0ob
Sun Nov 18, 2012 5:05 am
Forum: Javascript
Topic: Dealing with get elements
Replies: 2
Views: 2333

Re: Dealing with get elements

Suppose I've a php script if($_GET['d']==2) $top="game"; elseif($_GET['d']==3) $top="app"; else $top="empty"; echo $top; and now I want a script which does the same work but in JavaScript .Is it possible? Without a framework, you can run a regex against document.locatio...
by pHp_n0ob
Sat Nov 17, 2012 8:45 pm
Forum: Javascript
Topic: Dealing with get elements
Replies: 2
Views: 2333

Dealing with get elements

Just like in php

Code: Select all

if($_GET['d']==2)
$top="game";
elseif($_GET['d']==3)
$top="app";
else
$top="empty";
echo $top;
is their any way to deal with get variables using javascript only
by pHp_n0ob
Fri Nov 16, 2012 5:58 am
Forum: PHP - Code
Topic: Getting different problems while trying to write into db
Replies: 3
Views: 1210

Re: Getting different problems while trying to write into db

social_experiment wrote:Could you please explain what problems you are having
check the first link
by pHp_n0ob
Thu Nov 15, 2012 10:37 pm
Forum: PHP - Code
Topic: Getting different problems while trying to write into db
Replies: 3
Views: 1210

Getting different problems while trying to write into db

Errors,one after another,please help me out...
I am trying to writing into db using a html form,but getting problems one after.

Here's the php page http://topx.3owl.com/add_story.php
Here's the Script
http://topx.3owl.com/add_story.txt
by pHp_n0ob
Thu Nov 08, 2012 8:52 am
Forum: PHP - Code
Topic: Flat File Based Chat Help
Replies: 17
Views: 3658

Re: Flat File Based Chat Help

BTW, since this will be for a "chat", I would assume that this page will update often so people can see the latest replies. Say you have 10 people in chat, and you do one update per second, that is 600 page calls PER MINUTE, do you really need two different sites tracking all 600 calls pe...
by pHp_n0ob
Mon Nov 05, 2012 6:59 am
Forum: PHP - Code
Topic: What is the exact problem??
Replies: 4
Views: 1456

Re: What is the exact problem??

I got it! Problem was in mycss.css Here's my new script which I'm using on category.php and its working well. <?php include "main_head.php"; include "css.html"; $category=$_GET['category']; $file=$category.'.php'; if(file_exists($file)) { include($file); } else echo "Categor...
by pHp_n0ob
Sun Nov 04, 2012 3:16 am
Forum: PHP - Code
Topic: What is the exact problem??
Replies: 4
Views: 1456

Re: What is the exact problem??

Code: Select all

<?php
echo '<font color="red">Category Doesnot Exits!</font><a href="index.php">Go Back</a>';
?>
by pHp_n0ob
Sat Nov 03, 2012 2:51 pm
Forum: PHP - Code
Topic: Flat File Based Chat Help
Replies: 17
Views: 3658

Re: Flat File Based Chat Help

Browsing to http://topz.iwebs.ws/priyanka/Love.txt (the content of the file you are trying to display backwards) shows: <--- WWW.WAPFTP.BIZ ---> TestingTesting2Testing3 Going to the test site you gave saying it isn't reversing it is giving: TestingTesting2Testing3<--- WWW.WAPFTP.BIZ ---> So the &qu...
by pHp_n0ob
Sat Nov 03, 2012 2:24 pm
Forum: PHP - Code
Topic: What is the exact problem??
Replies: 4
Views: 1456

What is the exact problem??

This link is opening..http://topz.iwebs.ws but why this one is not opening http://topz.iwebs.ws/category.php or http://topz.iwebs.ws/footer.php . Its saying Connection Closed By Remote Server in Opera Mini 4.4. here is the simple code that I'm using on category.php <?php include "main_head.php&...
by pHp_n0ob
Thu Oct 18, 2012 11:40 am
Forum: Code Snippets
Topic: HTML Special Characters
Replies: 2
Views: 33201

HTML Special Characters

It will show you some HTML Special Characters you dont even know! Works best with Mozilla Firefox. <?php echo '<html> <head> <title>HTML Special Characters</title> </head> </body> <center><h2>HTML Special Characters</h2> <font color="green">Values</font> - <font color="red">Chars...
by pHp_n0ob
Sun Oct 14, 2012 10:48 pm
Forum: PHP - Code
Topic: printer_create_dc()
Replies: 1
Views: 2081

Re: printer_create_dc()

by pHp_n0ob
Sun Oct 14, 2012 10:17 pm
Forum: PHP - Code
Topic: Flat File Based Chat Help
Replies: 17
Views: 3658

Re: Flat File Based Chat Help

Browsing to http://topz.iwebs.ws/priyanka/Love.txt (the content of the file you are trying to display backwards) shows: <--- http://WWW.WAPFTP.BIZ ---> TestingTesting2Testing3 Going to the test site you gave saying it isn't reversing it is giving: TestingTesting2Testing3<--- http://WWW.WAPFTP.BIZ -...
by pHp_n0ob
Sun Oct 14, 2012 10:15 pm
Forum: PHP - Code
Topic: Flat File Based Chat Help
Replies: 17
Views: 3658

Re: Flat File Based Chat Help

I just refreshed the page to see if anyone else posted... LOL I don't know who did it, but someone decided to let you know about some basics missing... It had to be done. Many programmers don't take the issue of filtering data seriously enough. I'm not a programmer now, just a newbie...this alert w...
by pHp_n0ob
Sun Oct 14, 2012 10:13 pm
Forum: PHP - Code
Topic: Flat File Based Chat Help
Replies: 17
Views: 3658

Re: Flat File Based Chat Help

twinedev wrote:I just refreshed the page to see if anyone else posted... LOL I don't know who did it, but someone decided to let you know about some basics missing...
I got it...LOL...I knew it but had left because I was focusing on "writing data".Now I did it :-D
by pHp_n0ob
Sun Oct 14, 2012 2:00 pm
Forum: PHP - Code
Topic: Flat File Based Chat Help
Replies: 17
Views: 3658

Re: Flat File Based Chat Help

↓ This tag tells PHP to interpret what follows as PHP code. <?php ↓ This is a call to the header() function which is used to set HTTP response headers. The Content-Type header tells the browser what kind of document it should expect to receive. The text/plain MIME type means that the document will ...