User Profile

Collapse

Profile Sidebar

Collapse
pradeepjain
pradeepjain
Last Activity: Jun 15 '11, 10:53 AM
Joined: Jul 28 '07
Location: India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to escape quotes when passing data to javascript from PHP?

    Code:
    $myPage .= '<td><a href=\'javascript:editProduct('.$row['id'].',"'.htmlentities($row['name'],ENT_QUOTES).'")\'>Edit</a></td>';
    
    
    function editProduct(id,name){
            alert(name);
            }

    $row['name'] can have value like pradeep"s or pradeep's. so i need to escape these. but its not working. can you please help me with this....
    See more | Go to post

  • pradeepjain
    started a topic jquery load function problem in IE

    jquery load function problem in IE

    http://ratingscorner.com/tempcollege

    Hi i have posted a link above. i load a data from server using .load() function . its working in all browsers . but it does not in IE. is there a coding problem or problem with IE and that function ?...
    See more | Go to post

  • i run the code outside zend . it works well. but inside zend it does not.so asked here...
    See more | Go to post

    Leave a comment:


  • How to handle json data in zend while using flexigrid

    i have a page post2.php which prints the json array like

    Code:
    {
    page: 1,
    total: 239,
    rows: [
    {id:'239',cell:['239','ZW','ZIMBABWE','Zimbabwe','ZWE','716']},
    {id:'238',cell:['238','ZM','ZAMBIA','Zambia','ZMB','894']},
    {id:'237',cell:['237','YE','YEMEN','Yemen','YEM','887']},
    {id:'236',cell:['236','EH','WESTERN SAHARA','Western Sahara','ESH','732']},
    {id:'235',cell:['235','WF','WALLIS
    ...
    See more | Go to post

  • hey its typically a web based application which will be run in an hospital....
    See more | Go to post

    Leave a comment:


  • hey to prevent the duplication of data i decided to have 1 table... but the patient Id field is auto incremented in patient data table...creatin g a ID 9999 in patient data table will start the auto increment from that ID ...

    i will give the table structure

    Code:
    desc patient_data;
    +-----------------------+--------------+------+-----+---------+----------------+
    | Field                 | Type         | Null |
    ...
    See more | Go to post

    Leave a comment:


  • yeah.Its being accessed by 2 or more persons at same time......
    See more | Go to post

    Leave a comment:


  • How to skip integrity check while inserting record

    Hi,
    I have a small problem.

    I am creating an appointment table where in the foreign key is patient id which is referenced from patient table.This table is for all registered patients.

    there will be unregistered patients also, who will be seeking appointments.SO i just need to store the name,phone and few details.

    I don't want to make these 2 as different tables.

    So is there...
    See more | Go to post

  • pradeepjain
    started a topic slot booking mechanism
    in PHP

    slot booking mechanism

    Hi,
    I am making a doctor appointment slot booking mechanism,where in doctor appointment slots will be divided into 30 mins slot each...i have achieved all the working code.. 1 problem i am facing is that..this booking is made at 2 places i.e 2 receptions..so when 1 selects a slot(radio button) not yet confirmed and saved in DB.other reception must not be able to select .how do i do it.any help on this...how do i go abt it.
    See more | Go to post

  • How to maintain array values over multiple accesses?

    How do I maintain an array over number of different accesses? When ever the page gets refreshed the doctor index maintained by incrementing will be lost right?

    Should i make it a global variable? How is it that I maintain it in memory?
    See more | Go to post
    Last edited by pradeepjain; May 8 '10, 04:57 AM. Reason: This question was a part of that whole logic.

  • pradeepjain
    replied to jquery data change
    Can i know what are those alternate methods.


    I am just trying to display the results from db query .Thats it.
    See more | Go to post

    Leave a comment:


  • pradeepjain
    replied to jquery return false problem
    Yeah i was using it. but jconfirm provided a styled pop up window..
    See more | Go to post

    Leave a comment:


  • pradeepjain
    started a topic when to write a new controller in a OO php
    in PHP

    when to write a new controller in a OO php

    Hi ,
    I have a practical doubt ,

    I am using OO php , and i am new to it. I am using zend framework to be clear.

    I am writing models(class) and methods with in it say PatientMapper.p hp which has all single mysql table related actions and Patient.php which has all setter and getter functions.

    I get a doubt that when should i write a new model.

    1. Should i write a model for all the actions...
    See more | Go to post
    Last edited by pradeepjain; Apr 29 '10, 01:26 PM. Reason: question error

  • pradeepjain
    started a topic building an url
    in PHP

    building an url

    i an trying to build a url like
    Code:
    $valid-url = "p1=".rawurlencode($_GET['p1'])."&type=".rawurlencode($_GET['type'])."&os=".rawurlencode($_GET['os'])."&price=".rawurlencode($_GET['price'])."&sort=".rawurlencode($_GET['sort'])."&sort_order=".rawurlencode($_GET['sort_order'])."&perpage=".rawurlencode($perpage)."";
    and...
    See more | Go to post

  • pradeepjain
    started a topic jquery return false problem

    jquery return false problem

    Code:
    <script LANGUAGE="JavaScript">
    function confirmSubmit()
    {
    jConfirm('Is the Appointment Confirmed?', 'Confirmation Dialog', function(r) {
    if(r){return true;}
    else {return false;}
    });
    
    }
    </script>
    whjen i submit the foem i call this function and use jConfirm from jquery. i print r .its printing properly like true and false.but return false or...
    See more | Go to post

  • pradeepjain
    started a topic using not GET method
    in PHP

    using not GET method

    Code:
    <Tr class='pendingAppointment'>
                    <Td>1</Td>
    
                    <Td><a href="/hms-new/index.php/appointment?id=2">Pradeep g</a></Td>
                    <Td>1</Td>
    
                    <Td>Telphone</Td>
                    <Td>Sudeep  Rai</Td>
    
                    <Td>Regular</Td>
    ...
    See more | Go to post

  • pradeepjain
    started a topic jquery data change

    jquery data change

    Hi ,
    i use jquery along with php for a ma applications.It s like i have a list of products in a page say like

    filter1[drop down] filter2[drop down]
    <div id='change'>
    1.
    2.
    3.
    </div>
    these list of products are dynamically generated from DB. So like when there is any change in the drop downs i go to a page and rebuild the page there and using .html(data) i replace the...
    See more | Go to post

  • pradeepjain
    replied to Difference between varchar and int
    Thanks a lot for help.Its one of the guidlines for me.
    See more | Go to post

    Leave a comment:


  • pradeepjain
    replied to Difference between varchar and int
    but
    when i make the column as int and use



    1.
    Code:
     select * from mytable where mycol between '5000' and '10000';

    it works. how is it ?
    See more | Go to post

    Leave a comment:


  • pradeepjain
    started a topic Difference between varchar and int

    Difference between varchar and int

    Hi,
    I was storing integer values like 5000 and 10000 in a column which was defined as varchar.

    i was trying to use statement like

    1.
    Code:
    select * from mytable where mycol between '5000' and '10000';

    but was not working but
    2.
    Code:
     select * from mytable where mycol between 5000 and 10000;
    but i changed the datatype to int and it started working . 1st statement started working,just...
    See more | Go to post
No activity results to display
Show More
Working...