User Profile

Collapse

Profile Sidebar

Collapse
gamernaveen
gamernaveen
Last Activity: Apr 24 '10, 06:33 AM
Joined: Oct 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gamernaveen
    started a topic How to use pagination with PHP and MySQL
    in PHP

    How to use pagination with PHP and MySQL

    What this does is , take those results form the database and print them in tab like fashion. What I want to do is ,

    1) Set a range , example 6
    2) Display only 6 results after which I want "NEXT PAGE"
    3) Again display 6 results with "PREVIOUS PAGE" and "NEXT PAGE"

    I wanna add pagination to this. how can I do this?

    Code:
    			<?php
    		  	$count=0;
    			//$level
    ...
    See more | Go to post

  • gamernaveen
    replied to MySQL Sorting Question
    in PHP
    ok ty guys , i'll make 2 fields
    See more | Go to post

    Leave a comment:


  • gamernaveen
    started a topic MySQL Sorting Question
    in PHP

    MySQL Sorting Question

    Hello everyone ! ,
    I am working on a rating field in my database. Basically , my rating formula goes like this
    Code:
    RATING = TOTAL POINTS / TOTAL RATINGS
    Ofcourse , its the average rating. I store the total points and total ratings in a single field called 'catrating' (like 4/2 i.e points=4 ratings=2) and explode it with php to get required values. What am looking for is , is there an easy MySQL inbuilt function to sort the ratings...
    See more | Go to post

  • gamernaveen
    started a topic Check string for special chars help
    in PHP

    Check string for special chars help

    I wanted to include a string invalid character check in my application.
    Like the field comment , if a user inserts any special characters
    (Except '[' , ']' , '@' , '/' , '=' and numbers - alphabets) , the function should return true , if the string contains no special char in any position , the function should return false.

    Can anyone design a function to check the special chars ?
    Thanks so much.
    See more | Go to post

  • gamernaveen
    started a topic A big problem with SESSIONS
    in PHP

    A big problem with SESSIONS

    Hello everyone , am running PHP 4.
    I dont use SESSION IDs in URL.
    This is what the problem is.
    I set a session in file
    Code:
     http://vegetariancooking.mobi/index.php
    , it works fine , and displays the session too. However , when I goto
    Code:
    http://www.vegetariancooking.mobi/index.php
    , why isnt the session displaying ?
    I mean the session value ?
    Please help me , thank you so much.
    See more | Go to post

  • gamernaveen
    replied to Article/Blog Pagination with PHP
    in PHP
    Well I just found the lovely PEAR:Pager package , it works fine , ty.......
    See more | Go to post

    Leave a comment:


  • gamernaveen
    started a topic Article/Blog Pagination with PHP
    in PHP

    Article/Blog Pagination with PHP

    Hey guys , I have my blog script ready ...
    anyway as am making it for mobile phones ,
    the blogs must be split into pages to make
    it viewable. I already know MySQL PHP
    pagination with those LIMIT query etc.

    However , I need to split the article itself into pages.
    Say ,
    [PHP]
    <?
    $body="You will learn a lot more by attempting the problem yourself and asking for help with...
    See more | Go to post

  • gamernaveen
    replied to Why pass SESSION ID in URL ?
    in PHP
    Am just curious though but I really need to know it , it may come handy anytime...
    See more | Go to post

    Leave a comment:


  • Well actually you can. There comes AJAX.
    It cannot be done without refreshing though but it can be done without refreshing the whole page. There are ajax functions to get data from server without refreshing the whole page. Check the AJAX forum.
    See more | Go to post

    Leave a comment:


  • gamernaveen
    started a topic Why pass SESSION ID in URL ?
    in PHP

    Why pass SESSION ID in URL ?

    Why do people pass session ids in URLs? (GET method)
    I mean whats the use?
    ex. sample.php?sid= <sessionid>

    Doesnt it work without passing ?
    See more | Go to post

  • gamernaveen
    replied to PHP $_POST with invalid data?
    in PHP
    LoL sorry for the invalid type error , didnt check it though.
    Anyway I fixed the bug looking at the chain.
    Thanks....
    See more | Go to post

    Leave a comment:


  • gamernaveen
    replied to PHP $_POST with invalid data?
    in PHP
    okay here is the flow

    form 1
    [PHP]
    <form method="POST" action="form2.p hp">
    <input type="text" name="name"/>
    <input type="age" name="age"/>
    <input type="submit" name="subone" value="submit"/>
    </form>
    [/PHP]
    This submits to form 2:
    form2
    [PHP]...
    See more | Go to post

    Leave a comment:


  • gamernaveen
    replied to PHP $_POST with invalid data?
    in PHP
    Oh am really sorry , wont do that in future. LoL

    Anyway guys please help....
    See more | Go to post

    Leave a comment:


  • gamernaveen
    started a topic PHP $_POST with invalid data?
    in PHP

    PHP $_POST with invalid data?

    I've been busy coding a signup system with PHP.
    There are 2 forms , form1 and form2.

    form1 contains:
    Name , Age ,
    form 2 contains
    Username , Password , Repeat Pass , Email

    I use POST method to submit the form.
    Here , name and age is sent from form1 to form2 and form2 gets it through $_POST vars. The next step is submitform.php , once form2 gets form1 data with $_POST , it submits its...
    See more | Go to post
    Last edited by ronverdonk; Mar 20 '08, 05:15 PM. Reason: code tags

  • gamernaveen
    started a topic Help with DIR Permissions
    in PHP

    Help with DIR Permissions

    I wrote a script to log MySQL connections into a log file ...
    So that whenever and wherever in the different part of the scripts , I need to connect , I could use this code to connect as well as track the connections to a log.

    This is the code.
    [PHP]
    <?
    $username="xxxx ";
    $password="xxxx ";
    $port="xx";
    $ip = getenv("REMOTE_ ADDR") ; // User IP...
    See more | Go to post

  • gamernaveen
    started a topic Iframe not fitting with page layout

    Iframe not fitting with page layout

    Hi guys , please help me with this bug.
    the site (tell me other bugs if you find)
    http://web.acen.mobi/eoa/,
    there the iframe (the form content is the iframe) is not fitting with the layout , u know what I mean , the circles do not get connected.

    I have tried many things but its not just working , please help me fixing it.
    Also the footer , it is not adjusting properly , please help me guys , this is urgent....
    See more | Go to post

  • IE 6 , Dont think it works on IE 7 ,
    Well many sites have js (this one inc.) but it doesnt prompt for such sites.
    Why only mine ? How can I make it execute by default ?...
    See more | Go to post

    Leave a comment:


  • Allow JS/Ajax modal window script to run without prompts in IE

    Hello , am new to js and ajax stuff (Well web designing itself) ,
    I created a js/ajax modal window ,

    the problem is , IT WORKS ON OPERA , FIREFOX (NOT TESTED) , BUT NOT ON IE. Everytime , IE prompts to allow JS scripts to run , and if allowed to run ,
    then my modal works , but I dont need this prompt thing , I need it to be executed automatically.

    Please help me.
    See more | Go to post

  • Help! DIV footer setting for IE and other browsers...

    Hi guys , am writing a web page , which a lot of divs.
    Everything is fine , but I want to make a footer.
    Am not able to do that.

    I am using:

    div.footer
    {
    position:fixed;
    bottom:0px;
    left:0px;
    width:100%;
    }

    for the footer... but not working , IE is nor positioning the footer to down , and neither to left , and also , the width is not set to full too....
    See more | Go to post

  • gamernaveen
    replied to Generate a 10 digit unique id every time
    in PHP
    ronverdonk and JeremyMiller , looking forward for your replies.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...