The reason about php code

for example:
create table testtable (
order_number number(40),
item_id number(40),
quantity number(20),
item_desc varchar2(50)
insert into testtable values (1001,1,10,'apple');
insert into testtable values (1001,2,20,'banana');
insert into testtable values (1002,2,50,'banana');
insert into testtable values (1002,1,30,'apple');
commit;
Table Test DATA
order_number item_id quantity item_desc
1001 1 10 apple
1001 2 20 banana
1002 2 50 banana
1002 1 30 apple
if I insert into testtable below new line :
insert into testtable values (3020002506,242,5,'580gcreamery1x10');
why below example doesn't work?
<?php
$table ="testtable";
//$sid="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=202.79.36.170)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=WLDB)))";
$conn = ocilogon("apps", "apps", "prod");
$sql="select distinct(item_desc) item_desc from $table";
$stmt = oci_parse ($conn, $sql);
oci_execute ($stmt);
$items=array();
$result= array();
$i=0;
while ($result = oci_fetch_array($stmt,OCI_BOTH)) {
$items[$i]=$result['ITEM_DESC'];
// echo $result['ITEM_DESC'];
$i=$i+1;
//build part of select stateme
for ($i=0; $i<sizeof($items); $i++) {
$select_items .= "SUM($items[$i]) $items[$i],";
for ($i=0; $i<sizeof($items); $i++) {
$decode_items .= "DECODE(item_desc,'$items[$i]', quantity, null) $items[$i],";
//final SQL statement
$sql="SELECT $select_items order_number
FROM (SELECT $decode_items order_number FROM $table )
group by order_number";
$stmt=oci_parse ($conn, $sql);
oci_execute($stmt);
echo "<table border=1>";
echo "<tr>";
echo "<td>Order Number</td>";
for ($i=0; $i<sizeof($items); $i++) {
echo "<td>".$items[$i]." </td>";
echo "</tr>";
while ($row = oci_fetch_array ($stmt, OCI_BOTH)) {
echo "<tr>";
echo "<td>".$row['ORDER_NUMBER']."</td>";
for ($i=0; $i<sizeof($items); $i++) {
echo "<td>".$row[$i]." </td>";
echo "</tr>";
echo "</table>";
?>
who can help me?
thanks!

Try this...
I modified code a little, because your PHP-style is not too exellent :( (newbie?), but this code is equivalent to your original posted... The difference is in output part. Look at this part more attentive!
<?php
$table ="testtable";
$sql="select distinct(item_desc) item_desc from $table";
if ($conn = ocilogon("apps", "apps", "prod")) oci_execute (oci_parse ($conn, $sql));
else die ("Connection error!");
$items=array(); $result= array(); $i=0;
while ($result = oci_fetch_array($stmt,OCI_BOTH)) $items[]=$result['ITEM_DESC'];
//build part of select stateme
$select_items = ''; $decode_items = '';
foreach ($items AS $item) {
$select_items .= "SUM($item) $item,";
$decode_items .= "DECODE(item_desc,'$item', quantity, null) $item,";
//final SQL statement
$sql="
SELECT $select_items order_number
FROM (SELECT $decode_items order_number FROM $table )
GROUP BY order_number
if ($conn) oci_execute(oci_parse ($conn, $sql));
else die ("Connection error!");
echo "<table border=1>";
echo "<tr>";
echo "<td>Order Number</td>";
foreach ($items AS $item) echo "<td>$item</td>";
echo "</tr>";
while ($row = oci_fetch_array ($stmt, OCI_BOTH)){
echo "<tr>";
echo "<td>".$row['ORDER_NUMBER']."</td>";
for ($i=0; $i<sizeof($items); $i++) {
// echo "<td>".$row[$i]." </td>";
// Maybe you mean $row[$item] ???
echo "<td>".$row[$item]." </td>";
echo "</tr>";
echo "</table>";
?>
Message was edited by:
Jet

Similar Messages

  • The question about WBS code

    the WBS code is like GB08FA-B-101-TC1-TRA-001. and so on.
    now i should how to define project coding mask.
    Please explain me all the steps to be required.
    Thanks in advance!

    thanks a lot.
    the first      level code of WBS is  GB08FA
    the second level code of WBS is  GB08FA-B
    the third     level code of WBS is  GB08FA-B-101
    the fourth   level code of WBS is  GB08FA-B-101-TC1
    the fifth      level code of WBS is  GB08FA-B-101-TC1-TRA
    the sixth    level code of WBS is  GB08FA-B-101-TC1-TRA-001
    now i should how to define project coding mask.
    Please explain me all the steps to be required.
    Thanks in advance!

  • Does anyone know the reason about the J2EE example running erro?

    I want to run the JMS simple example on J2EE 1.4 SDK with Application Server 8.2 on Windows. Under instruction of tutorial of J2EE 1.4 update 7.
    I follow the insturction of the J2EE tutuorial step by step, http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html (in chapter 33, -Writing Simple JMS Client Applications), but when I excute the "Running the client" step - "Run the SimpleProducer program, sending three messages to the queue jms/Queue:" with command "appclient -client SimpleProducer.jar jms/Queue 3", there is exception appear in the command line -
    "Destination name is jms/Queue
    JNDI API lookup failed: javax.naming.NameNotFoundException
    javax.naming.NameNotFoundException"
    not the expect line:
    "Destination name is jms/Queue
    Sending message: This is message 1
    Sending message: This is message 2
    Sending message: This is message 3
    I have check the steps I have done carefully and make sure without any problem, and no different with the instruction, and then I restart the Application server again and delete all the steps then repeat again, the same result!
    Does anyone have meet the same probleme? Or could anyone tell me how to resolve the problem? Thank you!

    Installing a SIM card will never rectify the device being in recovery mode.
    Put the device in DFU mode and attempt to restore it as new via iTunes.  Google "DFU mode" for instructions.

  • The book who I selected doesn't move to the right in CheckedListBox and the reason is that I can't make an return.his code is good just for first user who I selected

    Imprumut = loan
    I have 6 tables: 
    I have one combobox(from where I select utilizatori(users)) and 2 CheckedListBox(Between first box and second box I have 2 buttons:imprumuta(loan) and restituie(return))
    This c# code works just for first user: Utilizator, but something's not good. When I add new utilizator(user) and select it,  the loan will be add in my SQL DataBase, but... the book who I selected doesn't move to the right in CheckedListBox and the reason
    is that I can't make an return
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using MySql.Data.MySqlClient;
    namespace proiect
        public partial class Imprumut : Form
            MySqlConnection con = new MySqlConnection("DataSource=localhost;UserID=root;database=biblio1");
            //stabilim conexiunea
            MySqlCommand comUser;//interogarea pe baza careia umplem comboBox
            MySqlDataAdapter adaptu;
            DataTable userT = new DataTable();
            MySqlCommand cmdCarti;//interogarea pe baza careia umplem checkListBox
            MySqlDataAdapter adaptCarti;
            DataTable CartiTabel = new DataTable();
            MySqlCommand cmdCartiImprumutate;//interogarea pe baza careia umplem checkListBox
            MySqlDataAdapter adaptCartiImprumutate;
            DataTable CartiImprumutateTabel = new DataTable();
            public int UserId
                get
                    return Convert.ToInt32(user.SelectedValue.ToString());
            void Completez_Combo_User()
                try
                    comUser = new MySqlCommand("SELECT n.userid, CONCAT(n.UserName) as UserN FROM users n left join userroles us on n.userid=us.userid left join roles r on r.roleid=us.roleid WHERE r.roleid='3'",
    con);
                    adaptu = new MySqlDataAdapter(comUser);
                    adaptu.Fill(userT);
                    user.Items.Clear();
                    user.DataSource = userT;
                    //DataTable din care sunt preluate datele pentru ComboBox user
                    user.ValueMember = "UserID";
                    //Valoarea din coloana UserID nu se afiseaza in combobox
                    user.DisplayMember = "UserN";
                    //Eelementele afisate in combobox, preluate din concatenarea mai multor coloane
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
            void Completez_CheckList_Carti()
                try
                    cmdCarti = new MySqlCommand("SELECT BookID, CONCAT(title, ' ', ISBN,' ',author)as date_carte FROM books WHERE NumberLeft > 0 ORDER BY BookID", con);
                    adaptCarti = new MySqlDataAdapter(cmdCarti);
                    adaptCarti.Fill(CartiTabel);
                    imp.Items.Clear();
                    //carti.DataSource=null;
                    imp.DataSource = CartiTabel;
                    //DataTable din care sunt preluate datele pentru ComboBox carte
                    imp.ValueMember = "BookID";
                    //Valoarea din coloana BookID nu se afiseaza in combobox
                    imp.DisplayMember = "date_carte";
                    //Eelementele afisate in combobox, preluate din concatenarea mai multor coloane
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
                void Completez_CheckList_Cartires()
                    try
                        cmdCartiImprumutate = new MySqlCommand(string.Format("SELECT b.BookID, CONCAT(title, ' ', ISBN,' ',author) as date_carte FROM books b inner join userbooks ub on ub.bookid = b.bookid
    WHERE ub.userid = {0} ORDER BY BookID", UserId), con);
                        adaptCartiImprumutate = new MySqlDataAdapter(cmdCartiImprumutate);
                        adaptCartiImprumutate.Fill(CartiImprumutateTabel);
                        res.Items.Clear();
                        //carti.DataSource=null;
                        res.DataSource = CartiImprumutateTabel;
                        //DataTable din care sunt preluate datele pentru ComboBox carte
                        res.ValueMember = "BookID";
                        //Valoarea din coloana BookID nu se afiseaza in combobox
                        res.DisplayMember = "date_carte";
                        //Eelementele afisate in combobox, preluate din concatenarea mai multor coloane
                    catch (Exception ex)
                        MessageBox.Show(ex.Message);
            void Inregistrez_imprumut_in_BD()
                int useridu = Convert.ToInt32(user.SelectedValue.ToString()); //useridu = id book
                int bookidi;
                try
                    DateTime azi = System.DateTime.Now; //  Data imprumutului
                    DateTime atunci = termenul.Value;   //  Data restituirii
                    MySqlTransaction tranzactie = con.BeginTransaction();
                    MySqlCommand adaugImpr = new MySqlCommand("INSERT INTO bookshistory(UserID, BookID,BorrowDate) VALUES(@UserID, @BookID, CAST(@BorrowDate as datetime))", con);
                    MySqlCommand scadCarti = new MySqlCommand("UPDATE books SET numberleft=numberleft-1 WHERE bookid=@bookid", con);
                    MySqlCommand adauga_userbooks = new MySqlCommand("INSERT INTO userbooks(userId,bookID)VALUES(@userID,@bookID)", con);
                    adauga_userbooks.Transaction = tranzactie;
                    adaugImpr.Transaction = tranzactie;
                    scadCarti.Transaction = tranzactie;
                    try
                        foreach (int i in imp.CheckedIndices)
                            imp.SelectedIndex = i;
                            bookidi = Convert.ToInt32(imp.SelectedValue.ToString());
                            MessageBox.Show(bookidi.ToString());
                                     //bookidi va fi id-ul cartea bifata, pe rand din checklistBox
                                     //Inregistrez in tabela imprumut
                            adaugImpr.Parameters.AddWithValue("@UserID", useridu);
                            adaugImpr.Parameters.AddWithValue("@BookID", bookidi);
                            adaugImpr.Parameters.AddWithValue("@BorrowDate", azi);
                            adaugImpr.ExecuteNonQuery();
                            adaugImpr.Parameters.Clear();
                            adauga_userbooks.Parameters.AddWithValue("@userID", useridu);
                            adauga_userbooks.Parameters.AddWithValue("@bookID", bookidi);
                            adauga_userbooks.ExecuteNonQuery();
                            adauga_userbooks.Parameters.Clear();
                                    //Scad numarl de carti disponibile pentru cartea imprumutat
                            scadCarti.Parameters.AddWithValue("@bookid", bookidi);
                            scadCarti.ExecuteNonQuery();
                            scadCarti.Parameters.Clear();
                        tranzactie.Commit();
                    catch (Exception ex)
                        tranzactie.Rollback();
                        string message = ex.Message;
                        if (ex.Message.ToLower().Contains("duplicate entry"))
                            message = "Una dintre carti mai exista deja";
                        MessageBox.Show(message);
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
            void Inregistrez_restituire_in_BD()
                int useridu = Convert.ToInt32(user.SelectedValue.ToString()); //useridu = id book
                int bookidi;
                try
                    DateTime azi = System.DateTime.Now; //  Data imprumutului
                    DateTime atunci = termenul.Value;   //  Data restituirii
                    MySqlTransaction tranzactie = con.BeginTransaction();
                    MySqlCommand modificIstoric = new MySqlCommand("UPDATE bookshistory SET returndate = @returnDate WHERE userID = @userID AND bookID = @bookID", con);
                    MySqlCommand adaugCarti = new MySqlCommand("UPDATE books SET numberleft = numberleft + 1 WHERE bookID = @bookID", con);
                    MySqlCommand sterge_userbooks = new MySqlCommand("DELETE  FROM userbooks WHERE userID = @userID AND bookID = @bookID", con);
                    sterge_userbooks.Transaction = tranzactie;
                    modificIstoric.Transaction = tranzactie;
                    adaugCarti.Transaction = tranzactie;
                    try
                        foreach (int i in res.CheckedIndices)
                            res.SelectedIndex = i;
                            bookidi = Convert.ToInt32(res.SelectedValue.ToString());
                            MessageBox.Show(bookidi.ToString());
                            //bookidi va fi id-ul cartea bifata, pe rand din checklistBox
                            //Inregistrez in tabela imprumut
                            modificIstoric.Parameters.AddWithValue("@UserID", useridu);
                            modificIstoric.Parameters.AddWithValue("@BookID", bookidi);
                            modificIstoric.Parameters.AddWithValue("@returnDate", termenul.Value);
                            modificIstoric.ExecuteNonQuery();
                            modificIstoric.Parameters.Clear();
                            sterge_userbooks.Parameters.AddWithValue("@UserID", useridu);
                            sterge_userbooks.Parameters.AddWithValue("@BookID", bookidi);
                            sterge_userbooks.ExecuteNonQuery();
                            sterge_userbooks.Parameters.Clear();
                            //Scad numarl de carti disponibile pentru cartea imprumutat
                            //adaugCarti.Parameters.AddWithValue("@bookid", bookidi);
                            adaugCarti.Parameters.AddWithValue("@bookid", bookidi);
                            adaugCarti.ExecuteNonQuery();
                            adaugCarti.Parameters.Clear();
                        tranzactie.Commit();
                    catch (Exception ex)
                        tranzactie.Rollback();
                        MessageBox.Show(ex.Message);
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
            public Imprumut()
                InitializeComponent();
                try
                    con.Open();
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
                Completez_Combo_User();
                Completez_CheckList_Carti();
                Completez_CheckList_Cartires();
                //selecteaza_carti_utilizator();
                //  Initializez termenul din dateTimePicker la data de peste 15 zile fata de data sistemului
                termenul.Value = System.DateTime.Now.AddDays(15);
            private void imprumuta_Click(object sender, EventArgs e)
                Confirmare c = new Confirmare("Confirmati imprumutul?");
                DialogResult dr = c.ShowDialog();
                if (dr == DialogResult.Yes)
                    try
                        Inregistrez_imprumut_in_BD();
                        MessageBox.Show("Imprumutul a fost inregistrat");
                        //Dupa inregistrarea imprumutului o parte din carti nu mai sunt disponibile pentru imprumut
                        //Reincarc in CheckList cu Carti noua lista cu carti ramase dupa imprumut
                        //Pentru asta "resetez" datele din dataTable cartiT (sursa pentru carti.DataSource)
                        CartiTabel.Clear();
                        adaptCarti.Fill(CartiTabel);
                        CartiImprumutateTabel.Clear();
                        adaptCartiImprumutate.Fill(CartiImprumutateTabel);
                    catch (Exception ex)
                        MessageBox.Show(ex.Message);
                if (dr == DialogResult.No)
                    MessageBox.Show("Imprumutul NU a fost inregistrat");
                    imp.ClearSelected();
                    //deselecteaza cartea selectat
                    foreach (int i in imp.CheckedIndices)
                        imp.SetItemChecked(i, false);
                    //debifeaza cartile bifate
                //if (imp.CheckedItems.Count > 0)
                //    //res.Items.Clear();
                //    foreach (string str in imp.CheckedItems)
                //        res.Items.Add(str);//adauga in partea cealalta, imprumuta
                //    while (imp.CheckedItems.Count > 0)
                //        imp.Items.Remove(imp.CheckedItems[0]);
            private void restituie_Click(object sender, EventArgs e)
                Confirmare r = new Confirmare("Confirmati restituirea?");
                DialogResult dr = r.ShowDialog();
                if (dr == DialogResult.Yes)
                    try
                        Inregistrez_restituire_in_BD();
                        MessageBox.Show("Restituirea a fost inregistrata");
                        //Dupa inregistrarea imprumutului o parte din carti nu mai sunt disponibile pentru imprumut
                        //Reincarc in CheckList cu Carti noua lista cu carti ramase dupa imprumut
                        //Pentru asta "resetez" datele din dataTable cartiT (sursa pentru carti.DataSource)
                        CartiTabel.Clear();
                        adaptCarti.Fill(CartiTabel);
                        CartiImprumutateTabel.Clear();
                        adaptCartiImprumutate.Fill(CartiImprumutateTabel);
                    catch (Exception ex)
                        MessageBox.Show(ex.Message);
                if (dr == DialogResult.No)
                    MessageBox.Show("Restituirea NU a fost inregistrata");
                    res.ClearSelected();
                    //deselecteaza cartea selectat
                    foreach (int i in imp.CheckedIndices)
                        res.SetItemChecked(i, false);
                    //debifeaza cartile bifate
                if (res.CheckedItems.Count > 0)
                    foreach (string str in res.CheckedItems)
                        imp.Items.Add(str);
                    while (res.CheckedItems.Count > 0)
                        res.Items.Remove(res.CheckedItems[0]);
            private void button2_Click(object sender, EventArgs e)
                con.Close();
                this.Close();
            //private void selecteaza_carti_utilizator()
            //    res.Items.Clear();
            //    MySqlCommand selectcart = new MySqlCommand("select title from books,userbooks where userbooks.userid='" + user.SelectedValue.ToString() + "' and userbooks.bookid=books.bookid", con);
            //    MySqlDataReader reader = selectcart.ExecuteReader();
            //    try
            //        while(reader.Read())
            //            res.Items.Add(reader["title"]);
            //    catch(Exception ex)
            //        MessageBox.Show(ex.Message);
            //    finally
            //        reader.Close();

    Hello Vincenzzo,
    This issue seems to be a window form UI implemented related issue, for this i suggest that you could ask it to the windows form forum:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
    The current forum you posted to is used to discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Testing ABAP Web dynpro: Error  code 403 and for the reason Forbidden

    Hi,
      We have NW04s Installed and trying to execute a SAP supplied ABAP web dynpro application DEMO_SIMPLE_MAIN. Please see the following error and let us know which service it's talking about? I am familiar with SICF. However in AS7.0( New name for WEB AS ) The transaction is little different.
      Thanks
    Arunava
      However we are getting the following service error
    Service cannot be reached
    What has happened?
    URL http://server.domain.name.com:8001/sap/bc/webdynpro/sap/demo_simple_main call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system XXX with error code 403 and for the reason Forbidden.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:NAME999_XXX_01-v:0-s:403-r:Forbidden
    HTTP 403 - Forbidden
    Your SAP Internet Communication Framework Team

    Hi,
      this was actually some services which needed to be started through SICF. Once I have started the service sap/bc/public ETC.. and the web dynpro started working. Most of the SAP delivered demo apps are working
      However for some ABAP web dynpro ( for some application XRPM ) I get  some peculiar error. Please see below and if you could think of anything out of these.
    I have already checked and found the both HTTP and SMTP services are working fine.
    The following error text was processed in the system PXA : Syntax error in program /1BCWDY/56ZRPAZLU25M8S1BKV2T==CP .
    The error occurred on the application server fmsap994_PXA_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CONSTRUCTOR of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: CONSTRUCTOR of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: CREATE_APPLICATION of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP

  • Now that I have backed up, can I delete items from my desktop? One of the reasons I got the time capsule was so that I could free up some space on my computer. I am confused about whether the backup will one day remove my photos/video

    I purchased a 2TB time capsule yesterday. I set it up as a router and did the backup no problem. I then navigated the backup folder and found that all my photos/video that I am nervous about losing are on there. So far so good.
    Taking a step back, the reason I bought the time capsule was 1.) I needed a router 2.) I have a mac and 3.) I am running out of disk space on that mac (I shoot and cut a lot of video and have years of high quality pictures on my mac hard drive)
    Can I now delete them from my mac computer to free space? I have used standard external disk drives in the past, but the whole "Back Up" piece of things has me confused. I love the idea of backing up my computer so I want to keep that functionality, but will the drive still function as a static external hard drive? Or do I need to move that material in seperately as a folder outside of the backup folder?
    I am nervous that if the backup overwrites information as the disk space becomes limited that in 10 years when I fill this drive up, that I will lose all of my photos that are part of the backups that I am running now.....
    Or worse, I am nervous that if I remove things from my mac right now, that the next time that a back up is performed that it will lose this data as it is not currently on the device I am backing up? How does this work?
    I apologize, the back up is a very new concept to me and I want to make sure I do not goof anything up.

    applefool wrote:
    Taking a step back, the reason I bought the time capsule was . . . 3.) I am running out of disk space on that mac
    That's an entirely different thing from backups.  A backup is an extra copy, in case the original is lost or damaged.   Additional space is just that -- more space for originals.
    While it's possible to use the same disk (such as the TC's internal HD) for both things, it's dangerous -- when (not if) something happens to the TC, you risk losing the originals that are on it.   To be safe, you need (at least) two copies of everything important, in (at least) two different places.  
    Many (including me) recommend at least three copies (originals plus 2 backups).  While it's not common for the Mac's hard drive to fail about the same time as the backup drive, it does happen.  There are several threads here where it did, and very expensive data recovery was needed, but in some cases everything was lost.
    So as the others recommend, getting an external HD for the stuff there isn't room for on your Mac is one solution for not having enough space.  But you might explore getting a larger internal HD.   If possible, that might be bettter.
    Then, also get another external, for "secondary" backups, so you're doubly protected.  If you get a portable model, you can take it offsite for even better protection.  See #27 in Time Machine - Frequently Asked Questions for details and some suggestions.
    Can I now delete them from my mac computer to free space? I have used standard external disk drives in the past, but the whole "Back Up" piece of things has me confused.
    You're not the first or only one. 
    There are different types of backup apps, so there are different answers for the different types.
    As the others have posted, Time Machine will, sooner or later, delete it's backup copies of things that are no longer on your system.  Depending on how long the original was there and when backups were run, that can be in as little as 24 hours, or as long as there's room.   So no, don't take the chance with data that's important!
    Is there helpful information on how to add an external drive to your backup set up?
    See the green box in #2 of the FAQ article.  All you have to do is format it for a Mac and remove it from the exclusion list.
               Once I set it up, will I need to leave the hard drive plugged into my mac in order for the data to be backed up?
    It can only be backed-up while it's connected.
               If I do, and a back up is performed without the hard drive attached to my computer, will it remove the backup of  what was on the hard drive
    No (unless you leave it disconnected until Time Machine starts deleting old backups).
    It will back up the external when it's connected, and not complain if it isn't.

  • Firefox 3 displays the php code when pages launched from dreamweaver 8

    The problem seems to relate to files opening as —
    file:///C:/localweb/ .... when sent from Dreamweaver 8.0 to Firefox
    The first html/php page loads correctly from dreamweaver as
    processed HTML, a second page linked from either an HTML or php
    page also loads correctly, but selecting any link from that or
    subsequent pages displays the full php code instead of processed
    html layout - so this appears to be a third level or greater
    problem.
    If I manually substitute -
    http://localhost/ — the problem
    does not arise.
    This is a problem with version 3 of firefox, all previous
    versions I used worked fine with both — file:///C:/localweb/
    and
    http://localhost/
    Both prefixes also appear with pure HTML sites, but they load
    and function correctly.
    Not every php site I have loads with file:///C:/localweb/, so
    I am wondering if this relates to something in the php code or
    Dreamweaver - I have conn.php set to:
    mysql_connect("localhost", "root", "") or die(mysql_error());
    I use winxp and have xampp installed - everything worked fine
    until I installed Firefox 3

    > but selecting any link from that or subsequent pages
    You are being confused by a) not understanding root relative
    vs document
    relative links, and b) not understanding how DW previews
    files.
    If I have a document with a link to an image that looks like
    this -
    <img src="/images/foo.gif"...
    That's what's called a root relative link.
    If I preview that document in DW, then the browser gets the
    document, sees
    the leading "/" and reads that as the root of the hard drive,
    since the
    browser has no idea where the root of the site is. Thus, the
    image is
    broken in the preview.
    If I have temp files enabled, then DW will secretly convert
    the file being
    previewed into a temporary file, and hand that to the
    browser. This temp
    file has had all root relative links converted to document
    relative links
    (as you will see by looking at the code in the browser), and
    has had all
    include files actually embedded in the page, and has had all
    external CSS
    and js markup embedded in the page. In other words, DW has
    made the
    document into a stand-alone page.
    If you do not have temp files enabled, all of these links
    would be broken on
    preview.
    Now - if you are using root relative links, AND you have temp
    files enabled,
    AND you click away from the previewed document, then all of
    your links will
    be broken, since DW has not made that linked file into a temp
    file. This is
    what you are seeing.
    So - if you want to click away on preview, then you must use
    document
    relative links for the site -
    <img src="../images/foo.gif"... (for example)
    These will still work on preview since the browser knows how
    to determine
    the current file's location and how to follow that path.
    Make sense?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "gbiras" <[email protected]> wrote in
    message
    news:[email protected]...
    > The problem seems to relate to files opening as ?
    file:///C:/localweb/
    > ....
    > when sent from Dreamweaver 8.0 to Firefox
    >
    > The first html/php page loads correctly from dreamweaver
    as processed
    > HTML, a
    > second page linked from either an HTML or php page also
    loads correctly,
    > but
    > selecting any link from that or subsequent pages
    displays the full php
    > code
    > instead of processed html layout - so this appears to be
    a third level or
    > greater problem.
    >
    > If I manually substitute -
    http://localhost/ ? the problem does
    not arise.
    >
    > This is a problem with version 3 of firefox, all
    previous versions I used
    > worked fine with both ? file:///C:/localweb/ and
    http://localhost/
    >
    > Both prefixes also appear with pure HTML sites, but they
    load and function
    > correctly.
    >
    > Not every php site I have loads with
    file:///C:/localweb/, so I am
    > wondering
    > if this relates to something in the php code or
    Dreamweaver - I have
    > conn.php
    > set to:
    >
    > mysql_connect("localhost", "root", "") or
    die(mysql_error());
    >
    > I use winxp and have xampp installed - everything worked
    fine until I
    > installed Firefox 3
    >

  • Can you give me some reasons about why I need to buy an iPod touch 5.Although I have the iPhone ,iPod nano, iPad ,MacBook pro,I think the iPod touch 5 is so attractive that I can't help buying it at once.If I have it,what I can do with it,can you tell me?

    can you give me some reasons about why I need to buy an iPod touch 5.Although I have the iPhone ,iPod nano, iPad ,MacBook pro,I think the iPod touch 5 is so attractive that I can't help buying it at once.If I have it,what I can do with it,can you tell me?

    All I can say is that I REALLY like my Touch 4th gen because I have all sorts of capabilities in a small form: e-mail, web browsing, news, weather, books, magazines, etc. etc.  Plus lots and lots of apps out there, including so many free ones.  I use the Cloud a lot so it's great to have everything sync'd to my MacBookPro (e-mail, Evernote, Pocket, etc.)
    It would be easier, though, to do some of this, especially magazines, on the iPad mini, but, again, I love the small size of the Touch. 
    As for the 5th gen instead of the 4th, the fifth has Siri and the 3D feature in maps, which are great.  And I'm sure it's a lot faster in iOS 6 than the 4th gen.  And cool colors! 
    Don't know if this helps . . .

  • My new iPod touch is getting really warm while I use it. Is it normal? I mean, I have silicone cover, maybe it's the reason for iPod being so HOT?... How do you think, is it too important to have a cover on the iPod? How about screen protector? :S

    My new iPod touch is getting really warm while I use it. Is it normal? I mean, I have silicone cover, maybe it's the reason for iPod being so HOT?... How do you think, is it too important to have a cover on the iPod? How about screen protector? :S

    My new iPod touch is getting really warm while I use it. Is it normal? I mean, I have silicone cover, maybe it's the reason for iPod being so HOT?... How do you think, is it too important to have a cover on the iPod? How about screen protector? :S

  • My ipod touch(4th gen) just recently had the iOS 5 update.bu for some reason about 80% of my music collection appears with no album artwork and doesnt play any songs.basically it has my music on their but wont let me access it? please help!

    My ipod touch(4th gen) just recently had the iOS 5 update.bu for some reason about 80% of my music collection appears with no album artwork and doesnt play any songs.basically it has my music on their but wont let me access it? please help!

    i have the same problem but i have ios 5.01. how do you unsync? please help, thanks

  • F-44 Vendor Clearing: Not able to save the reason code

    Hello Experts,
    We are testing t-code F-44.  We are attempting to perform a vendor clearing with a Debit Balance Write-off.  As part of the test we require to add a Reason Code to the transaction posting.  Unfortunately, the reason code is not being saved to the FI transaction being generated.
    I will be glad to provide further information if needed, also points will be rewarded as soon as suitable answer is received.
    Thanks,

    Hello Experts,
    We are testing t-code F-44.  We are attempting to perform a vendor clearing with a Debit Balance Write-off.  As part of the test we require to add a Reason Code to the transaction posting.  Unfortunately, the reason code is not being saved to the FI transaction being generated.
    I will be glad to provide further information if needed, also points will be rewarded as soon as suitable answer is received.
    Thanks,

  • How do I change the PHP code so that the name of the senders name appears in the email subject line?

    I need help please, altering the PHP code generated when exporting my Muse websites (to a host other than Business Catalyst). The emails generated from the forms need to have the sender's name in the subject line of the emails.

    This would require editing the published php page outside of Muse and would require the knowledge of PHP. You may get the required info at http://www.php.net or some PHP specific forums.
    Thanks,
    Vikas

  • Getting a lot of this error:The reason code is '4(802.1X Authentication failed 3 times.)'. - Controller Name:

    Since we upgraded our WCS system to V6.0.196.0 we are receiving a lot of the following error messages and I haven't figured out why.
    Client 'c0:cb:38:3f:a1:0d (anonymous, 0.0.0.0)' which was associated with interface '802.11a/n' of AP 'ACAA01-00.P04-G2C2.1' is excluded. The reason code is '4(802.1X Authentication failed 3 times.)'. - Controller Name: 205-dg20-bb3-4/2

    Check you ACS (Radius) logs under failures. You will see why its failing. Sounds like a AD account went bad
    or someone is entering the wrong logon ... But check your radius log it will point you in the right direction.

  • [svn:fx-trunk] 11118: Did some code cleanup on the Spark components to enforce the conventions about how to order stuff within an AS file .

    Revision: 11118
    Author:   [email protected]
    Date:     2009-10-23 16:35:38 -0700 (Fri, 23 Oct 2009)
    Log Message:
    Did some code cleanup on the Spark components to enforce the conventions about how to order stuff within an AS file.
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: None; no functional changes
    Tests run: ant checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.a s
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTex tBase.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as

    Hi Rod,
    different sources (i.e. different branches) are mapped to different local folders in your workspace - in fact you cant map two different server folder to the same local folder.
    In you example the mapping would be (for example) like this:
    Server path                                                          
    local path
    $/../WpfHelloWorld                                                
    C:\Src\WpfHelloWorld
    $/../WpfHelloWorldDev                                           
    C:\Src\WpfHelloWorldDev             
    You can see your Workspace mappings when you select "Workspaces..." in the Workspace selection drop down:
    Within the "Manage Workspaces" dialog select your workspace and klick "Edit" to see and edit all you mappings.

  • Where to configure the reason code for payment differene

    Dear Experts,
    I did the settings in obxl with reason code option and changed the screen layout for the postings keys for payment difference as mandatory. while doing the account assignment in obxl system asking the reason code for payment difference. Where to configure the reason code any t.code is there, please guide me.
    J.francis

    Just Go SPRO>IMG>Financial Accounting (New) >Accounts Receivable and Accounts Payable > Business Transactions > Outgoing Payments > Manual Outgoing Payments > Overpayment/Underpayment > Define Reason Codes (Manual Outgoing Payments)
    There you have to create Reason Code
    Now go  SPRO>IMG>Financial Accounting (New) >Accounts Receivable and Accounts Payable > Business Transactions > Outgoing Payments > Manual Outgoing Payments > Overpayment/Underpayment >Define Accounts for Payment Differences (Manual Outgoing Payment)
    Here assign GL
    Best Of Luck
    Tanmoy

Maybe you are looking for

  • I can isolate a bookmark with the filter, but how can I "find" a bookmark in the hierarchy of the ShowAllBookmarks window?

    I want to find a bookmark in its location in the hierarchy of bookmarks, but all I can do with the filter is isolate a bookmark[s]; either using the filter of the bookmarks sidebar, or in the ShowAllBookmarks window. For instance, I know I have a cer

  • Unable to process the request

    Hi All, I have deployed PowerPivot workbooks on SharePoint- 2013. When I try to clear all the Slicers, it gives following error as The Data Model is also deployed on SharePoint & its quiet large in Size. The reports are pointing to this Model using P

  • Error when log into sql developer as sysdba

    Hi iam able to loging in oracle 11g from command prompt as sysdba, the same when iam tried from sql developer with same credentials as sysdba its showing error invalid user or password. Could any one help me out o n ths pls?

  • Keeping Large Objects in shared pool

    Hi, what is my doubt is the following mention objects 1) DBMS_Application_info 2) Trigger 3) Dbms_space_admin 4) DBMS_RCVCAT 5) DBMS_RCVMAN 6) DBMS_Shared_pool 7) dbms_standard 8) dbms_utility 9) dbms_backup_resotre 10) standard the above mention obj

  • Counting line breaks

    Hello, I have a text field which can display up to 4 lines in Arial, size 9. I want to change the font size when there are more than 4 lines in it. Is there a way to count carriage returns in a field? e.g. IF string.count(:RECIPES, "<cr><lf>") > 3 TH