2

Instead of doing never end copy past between 2 joomla 2.5 website (I want to copy past their modul and articles)

Phpmyadmin : How can I copy past a single or multiple row (article, module) from one jrm_content to jasso_content (they have both exactly the same colons type)

I know how to select rows and to import them, but after...? (I changed the id are different exept for some the Asset ID is it a problem?

Thanks a lot!

4

2 回答 2

4

这样的查询有什么问题?

INSERT INTO tableNew
            (col1,col2,col3,col4,col5)
            (
              SELECT
                    col1,col2,col3,col4,col5
              FROM tableOld
            )
于 2012-07-04T21:01:45.063 回答
0
select from tablename where table name.primary key = table name.foreign key

<?php
$sname=$_POST['srname'];
      $link=mysql_connect("localhost","root","") or die("Cannot Connect to the database!");
         mysql_select_db("human_resource",$link) or die ("Cannot select the database!");
         $query="SELECT * FROM employee WHERE  fname='$sname'";
         $resource=mysql_query($query,$link);
         echo "
        <table align=\"center\" border=\"1\">
        <tr>
        <td><b>FName</b></td> <td><b>lname</b></td><td><b></b></td><td><b>Department</b></td></tr> ";
        while($result=mysql_fetch_array($resource))
        {
        echo "<tr><td>".$result[1]."</td><td>".$result[2]."</td><td>".$result[3]."</td></tr>";
        }
        echo "</table>";
        ?>
于 2013-05-25T16:35:48.137 回答