User Profile

Collapse

Profile Sidebar

Collapse
sarahaziz
sarahaziz
Last Activity: Jul 3 '12, 07:55 AM
Joined: Oct 15 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sarahaziz
    started a topic Send a file online
    in PHP

    Send a file online

    Hi Gurus
    i wanna send a file between 2 users using php how would i do such thing?Can any one tell me the steps
    See more | Go to post

  • sarahaziz
    started a topic Problem with ajax requests in Firefox

    Problem with ajax requests in Firefox

    Hello guys
    I cerated this chat system with several ajax requests(using jquery).Now i have several ajax requests on a page, it works fine with safari but on firefox it causes a problem of slowness that sometimes when i write a message some letters are missing.
    This could be the problem of function, browser or network?
    See more | Go to post

  • Since i get all data from only one query the group is repeated with each record i want to add it once in the array and then add users of this group after it in the array.
    How is that done?
    See more | Go to post

    Leave a comment:


  • sarahaziz
    started a topic How to create array of groups and their users
    in PHP

    How to create array of groups and their users

    Hello guys
    i want to create something like this image ,consider the fact that Group and users comes from 2 different tables but only one query.
    I want to add them into one array.
    ...
    See more | Go to post

  • sarahaziz
    started a topic Re:Create an html table like this one
    in PHP

    Re:Create an html table like this one

    Hello guys,
    I have posted a question by the date of Jan 10 '10 under the name of Create an html table like this one.
    ANd i got this as an answer
    Code:
    SELECT
            s.`complete_name` AS 'from', 
            r.`complete_name` AS 'to',
            COUNT(*) as 'message_count'
    FROM    `messages` AS m
    LEFT JOIN `groups` AS s
        ON  m.`Group_ID` = s.`id`
    LEFT JOIN `groups` AS r
        ON  m.`To_Group_ID`
    ...
    See more | Go to post

  • sarahaziz
    started a topic Message generator
    in PHP

    Message generator

    Hello guys
    i want to create a random message generator to add new messages to database, but without causing any slow scripts.
    Here are my trials till now
    php to generate new messages
    Code:
    $no_of_msgs = $_POST['No_of_msgs'];
    
    $randMsg = array("Hi, welcome to my page!", "Hey you! Thanks for visiting!","Bonjour, mon ami!", "So, do you like the site?", "Come one,
    ...
    See more | Go to post

  • sarahaziz
    started a topic Use jquery to retrieve a lot of data
    in PHP

    Use jquery to retrieve a lot of data

    Hey guys I created this chat system that used to work fine till number of messages increased (over 300 messages and i want it to take up to 1000)started to cause slow script and takes time to retrieve all data. The idea depends on selecting the data XML style and then add it to a specific tab and repeat the act with setTimeout,is there any other way i can do i really need ideas and here is my code.
    Code:
     function updateMessage()
     {
    ...
    See more | Go to post

  • I don't understand could you explain more.
    See more | Go to post

    Leave a comment:


  • sarahaziz
    started a topic Jquery table sorter causing slow script

    Jquery table sorter causing slow script

    Hello guys
    i have a problem i wish i could find a solution i created this instant chat system works fine i created this seTimeout to retrieve data when the messages exceeded an extent slow script alert started to appear when i tracked down the problem i found out that the data is retrieved in time longer than the call to setTimeout and since i use jquery table sorter don't realize that the data is a table until it is all retrieved so continuous...
    See more | Go to post

  • sarahaziz
    replied to Create an html table like this one
    in PHP
    Thanks Dormilich for the heads up i changed it
    See more | Go to post

    Leave a comment:


  • sarahaziz
    replied to Create an html table like this one
    in PHP
    Thank you Alti i used your same code like that if you have any comments tell me please .YOU ROCK.
    Code:
           $sql = mysql_query("SELECT s.login AS 'from', r.login AS 'to',COUNT(*) as 'message_count'
    					FROM messages AS m
    					LEFT JOIN groups AS s
    					ON  m.Group_ID = s.id
    					LEFT JOIN groups AS r
    					ON  m.To_Group_ID = r.id
    					GROUP BY m.Group_ID, m.To_Group_ID") or die (mysql_error());
    ...
    See more | Go to post
    Last edited by Dormilich; Jan 11 '10, 02:01 PM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • sarahaziz
    replied to Create an html table like this one
    in PHP
    Thank you so much Alti , of course it helped and worked but just out of curiosity if i want to build an HTML table what should i do?
    See more | Go to post

    Leave a comment:


  • sarahaziz
    replied to Create an html table like this one
    in PHP
    @ adsense:Could you elaborate?
    See more | Go to post

    Leave a comment:


  • sarahaziz
    replied to Create an html table like this one
    in PHP
    @Atli ok sorry.First I just want to say too that you pointed out this mistake in a nice way not like most of the people in other forums and tutorials do.
    Second there is table groups with group_id and login from where i get the to_group and from_group.
    And there is table messages that has the to_group,from_g roup and messages.
    Attached the structure of these 2 tables.
    I feel confident that you are going to solve this problem....
    See more | Go to post
    Last edited by Atli; Jan 11 '10, 12:21 PM. Reason: Added the attached text tot he post. Easier to access that way.

    Leave a comment:


  • sarahaziz
    started a topic Create an html table like this one
    in PHP

    Create an html table like this one

    Hello guys
    i have a table in DB that has messages exchanged between groups and i need yo create a table like this one (messages exchanged between 2 groups)
    knowing that Gr1,.... are group names from DB and numbers are from DB too.
    http://www.freeimagehosting.net/uploads/10b1fb8eeb.jpg...
    See more | Go to post

  • sarahaziz
    started a topic Adding different data to different jquery tabs
    in PHP

    Adding different data to different jquery tabs

    i have 2 functions
    1- addMessage(): save data into database and is called only on click .
    2-updateMessage() :get data with ajax from database, called when document is ready ,called every 3 seconds for new data, and called on success of addMessage().

    Code:
    function updateMessage()
    {   
        $.ajax({
        url:"db.php",
        type:"post",
        dataType:"text/xml",
    ...
    See more | Go to post
    Last edited by Dormilich; Dec 17 '09, 12:03 PM. Reason: Please use [code] tags when posting code

  • sarahaziz
    started a topic Implement read/unread like in email
    in PHP

    Implement read/unread like in email

    Hello Guys i am trying to implemenet something like the read/unread in the email.How can i do so by using jquery , php and mysql. What i want to do in steps:

    1- When i click on a row in html table i change the status of the this message in database. 2- And then change the background of this row but also if i logout and relogin the row remains changed. 3- knowing that i am already using css classes for the table rows.

    What...
    See more | Go to post
No activity results to display
Show More
Working...