Jump to content

vickkeshav

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

vickkeshav's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello all, I just need to make this function work... How can I do this using ajax? please help?
  2. <?php class My { public function disp() { echo "ehllo"; } } ?> <html> <head> <script type="text/javascript"> function displaymessage() { document.write(My.disp()); } </script> </head> <body> <form> <input type="button" value="Click me!" onclick="displaymessage()" /> </form> </body> </html> HEllo I wanted to know wheter php function can be call in js functions. Please Help.
  3. Hey I tried loading them in Js as well but read from some post on the internet that php is server side and js is client side etc etc, I tried using setTimeout ()... Please tell me how to proceed
  4. the intervals are in seconds, suppose I have a range of int; 1 to 10 So the first post is echoed without any interval, the second record must be echoed after say 5 seconds (any number from range 1 to 10) and the third record maybe after 6 second or 8 seconds.. (it can be any seconds as far as it there is a delay between the last echoed record and the present echoed record)
  5. <?php include ("db_connect.php"); $q=$_GET['q']; $nxtreply= $q+1; $all= "select * from cmt"; $result= mysql_query($all); $numrows = mysql_num_rows($result); $i=1; while($i<$numrows){ $sql="SELECT cmmt FROM cmt WHERE cat_num = '$nxtreply' ORDER BY RAND()LIMIT 0,1"; $result2 = mysql_query($sql); while($row = mysql_fetch_assoc($result2)) { echo "<button type='button' onclick= com() >SIMULATE</button> "; echo "<table border='1'> <tr> <th>Comment</th> </tr>"; echo "<tr>"; echo "<td>" . $row['cmmt'] . "</td>"; echo "</tr>"; } echo "</table>"; $nxtreply++; $i++; } mysql_close($con); ?> These are the codes, the records from the table are displayed all at the same time, I want each Record to be displayed at different time intervals MOD EDIT: . . . BBCode tags added.
  6. They are texts not images. ok so I have am calling the records 1 by 1, using mysql_fetch_assoc ( .... ) and so on, All the records are displayed at once, but what I want is to display them at different intervals. Please help if u can, i,ve been struggling with this for days..
  7. Hello Everyone, I wanted to know how to Display records from a Table one by one at difference time intervals. Kindly suggest
  8. hello all, I have a table comment as follow: **Comment** comment_id cmt followupid 1 Hello 3 2 hi 4 3 Hey 2 4 wassup 1 My query is that I want to echo "Hello", "hi", "hey" , "Wassup" and other (the record continues) individualy, I have used $comment = mysql_result($runQuery, $i,"cmt"); echo $comment; which works fine but the problem is that it echoes all the comments at once, what I want is to echo all the comment but one at a time. the comment are in a div tag such that each the div appears only after 1 second the page is loaded. I want each comment to appear after different time interval for e.g: Hello to appear at 5pm (not necessarily the corect time it can be just an int) hi 5.10 pm hey 6.30 pm Please Help!
  9. I have one table say its name is: User in this table there are 2 fields User_id and User_name User_id has 3 records so do user_name as shown below user_id | user_name 1 Tom 2 harry 3 ringo Next thing is that I have a webpage and i need to retrieve these names automatically each and 10 seconds interval That is if Tom appears on the page a 12.00 Harry appears at 12.10 and Ringo appears at 12.20
  10. have a web base page where I want to generate records from my database one by one and at different time intervals. For example I have a table, Comment coment_id: 1 2 3 comment_message: "Hello", "Hi", "Bye" on the page, the first comment is Hello is posted then after 10 secs Hi is automatically posted then after 5 secs Bye is automatically posted.
×
×
  • 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.