User Profile

Collapse

Profile Sidebar

Collapse
youngpann42
youngpann42
Last Activity: Nov 28 '12, 07:55 AM
Joined: Oct 20 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • youngpann42
    started a topic Show/hide images

    Show/hide images

    Code:
    function toggle(element, speed) {
    	if (document.getElementById(element).style.display == 'none') {
    		$(element). toggle(speed);
    	} else {
    		$(element). hide(speed);
    	}
    }
    this is suppose to show and hide pictures uploaded from mysql database according to image_id and album_id it works but all it does is toggle through the first image how can i get it to show and hide the rest...
    See more | Go to post

  • youngpann42
    started a topic add/subtract php mysql
    in PHP

    add/subtract php mysql

    Code:
    $existing= "select * from * where id = 2";
    $exist=mysql_query($existing);
    $num=mysql_numrows($exist);
    if($num == 0)
    {
    echo " ";
    }
    else
    {
    if(isset($_POST['*'])){
    $add=1;
    $query="update * set *=*+$add where id=1";
    mysql_query($query) or die("Cannot update");
    }
    if(isset($_POST['*'])){
    $subtract=1;
    ...
    See more | Go to post

  • youngpann42
    started a topic Getting error
    in PHP

    Getting error

    Code:
    while($data_fetch=mysql_fetch_array($query_for_result))
    {
        echo "<li>";
        echo '<a href="<?php echo $user_data['username']; ?>">' .
    	substr($data_fetch[$db_tb_atr_name], 0,160). '</a>';
        echo "</li><hr/>";
    }
    but keeping getting this error

    Parse error: syntax error, unexpected 'username' (T_STRING), expecting ','...
    See more | Go to post
    Last edited by zmbd; Oct 25 '12, 04:08 AM. Reason: Please format posted code using the <CODE/> button.
No activity results to display
Show More
Working...