Need Help in creation of Database.
I am an Pl Sql Developer.
But i was given a role to configure the new database. What r the steps to be followed?
Any help would be greatly Appreciated.
Regards,
--Sona
This might help some: http://www.oracle.com/pls/db102/homepage
Jim P.
Similar Messages
-
Need Help to query Lync Database for User Information
Need Help to Query the lync database to retrieve below user information.
1. SIP Address of the registered user
2. Phone Number configured to the particular account.
3. IP Address
4. Last Logged in time.
I am trying to pull the above information from rtc database for all the registered users. Please let me know if this is possible and it would be great if you can throw some light on what tables to look for the data. Thank You.Hi,
For SIP address and Phone number you can check RTC database.
IP Address:
You can refer to the link below to query IP address:
http://h30499.www3.hp.com/t5/Business-Service-Management-BAC/Monitoring-Lync-with-the-User-Registrations-Viewer-Free-NMC-tool/ba-p/5961497#.UtOU43mIrwo
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
Last Logged in time:
You can refer to the link below:
http://blogs.technet.com/b/dodeitte/archive/2011/05/11/how-to-get-the-last-time-a-user-registered-with-a-front-end.aspx
Best Regards,
Eason Huang
Eason Huang
TechNet Community Support -
Need help for creation of aging report of customer
Hi Experts,
I am going to create aging report for custer so have a need of basic concept of creation of aging report.
Thanks and Regards
vijay
Edited by: vijay dwivedi on Mar 9, 2009 1:19 AMHi here is a guide of how to understand the components in an ageing report.Hope this helps
Customer Receivables Aging Report
Field
Description/Activity
Currency - Click This graphic is explained in the accompanying text and choose the currency in which you want to display the report results.
The available options include:
● Local currency
● System currency
● Business partner currency
● Any additional currencies defined in SAP Business One
Aging Date - Displays the aging date entered in the selection criteria window.
Age By - Choose whether you calculate the age of the receivable according to the due date, posting date, or document date of the document/journal entry.
Customer Code - Displays the code of the customer.
Click This graphic is explained in the accompanying text to open the corresponding Business Partner Master Data.
Customer Name - Displays the name of the customer.
Total - Displays the total amount of open receivables.
Figures in brackets mean that you have already received payments from a customer that exceed the amount of the receivables for the period.
Future Remit. - Displays all open receivables owed by the customer according to the date selected in the Age By field for which the date specified in the Aging Date field has not yet been reached.
Example:
The customer has an open A/R Invoice for USD100, due on May 1st.
Due Date is selected in the Age By field.
The Aging Date is April 28th.
Since the invoice is due after the aging date, the invoice amount is displayed in the Future Remit column..
Letter - Indicates whether a dunning letter was created.
This column is displayed only when generating the report by Sales Documents and by Due Date
Time Intervals - These four columns are constructed according to the specifications you made in the Interval field in the selection criteria window.
SAP Business One displays the relevant open receivables in four columns for the time interval. The amount of future remit is first subtracted from the total sum of receivables.
· Days u2013 Each column represents the number of days entered in the selection criteria window starting from the aging date and backwards. The fourth column includes open receivables for the days prior to the first three columns.
· Months u2013 Each column represents one month starting from the aging date month and backwards. The last column includes open receivables for months prior to the first three months.
· Periods u2013 Each column represents one period (as defined in Administration ® System Initialization ® Posting Periods tab) starting from the aging date period and backwards. The last column includes open receivables for periods prior to the first three periods.
If the number of periods in your company is less than the 4, the non-relevant columns will be titled as Not Valid.
Doubtful Debt - Displays the doubtful debt amount if exists.
Top Total Row - The top total row displays the sum of amounts listed in one column.
Bottom Total Row - The bottom total row displays the percentage of open receivables for each time interval.
Thanks
Kevin -
Need help connecting to a database with an applet
I am making a Java game that runs in an applet and needs to connect to a Java DB database. I created the database and table in NetBeans and now I have no idea how to connect this applet to the database. I tried using a DataSource and an InitialContext and I got a NoInitialContextException. Any help would be appreciated thanks.
Already made the InitialContext. This is the code I used in the applet:
InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup("jdbc:derby://localhost:1527/GameDatabase");
Connection con = ds.getConnection();
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM Scenery"); -
Need help on creation of a useful custom filter
Dear Members,
I need your help on a
custom filter which will:
1) ask
for my input on which element(s) of WBS are going to be
used,
2) Then it will filter the activities
under that element,
3) As well as all
predecessors and successors of the activities within that
element.
Note that their
predecessors and successors may be under some other
elements of WBS.
This is to be used
for obtaining buy-in from the package contractor,
especially for the activities linked to his/hers.<br
/>
Regards,
Tutku OZERHi,
Check this [Link1|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3004a2d2-0653-2a10-779c-f5562b3fac39] [Link2|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/92914af6-0d01-0010-3081-ded3a41be8f2] & [Link3|https://wiki.sdn.sap.com/wiki/x/dDg ].
Regards,
Surjith -
Need Help On creation of Proxy in webservices !!
Hi all ,
Can one any one help me in finding what is creation of standalone/deployable Proxy in webservices.
Is there any material where can i get to know in detail about this.
Please help meHi
This is a good sample that shows how to create a useful Deployable proxy:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0310279-b8a5-2a10-73a1-9588eedcc07c
This links shows the differences between a Standalone and Deployable Proxy:
http://help.sap.com/saphelp_nw04s/helpdata/en/45/f957507cb343f78e818c50620ed5ca/content.htm
Basically a deployable proxy must be used on server side and Standalone on client side. The deployable proxy can configured to different clients on some ways.
This links shows the differences on confiuration of two type, deployable use the concept "Logical Port" its very flexible.
http://help.sap.com/saphelp_nw04/helpdata/EN/ab/c955e2e2d24a888127f211f2d5043f/content.htm
Best regards -
Urgent: need help in creation of a simple PCUI application
Hi Experts,
I am new to this PCUI. i need the help of urs.
My requirement is
>>>>To create a simple PCUI application.This contains a Search and Result list.
>>>>Then i have to find the BSP coding or the HTML coding for the the PCUI
application.
>>>Can anyone please tell me the detailed steps for creating a simple PCUI application that displays the search and a result list???
>>>Then how can i find the BSP coding or script(such as HTML,XML..) coding used for the application.
Pls help me , its urgent.... If anyone have any kind of useful documents pls mail me in my id <b>[email protected]</b>
Thanks & Regards
SudhansuHi Experts,
I am new to this PCUI. i need the help of urs.
My requirement is
To create a simple PCUI application.This contains a Search and Result list.
Then i have to find the BSP coding or the HTML coding for the the PCUI
application.
Can anyone please tell me the detailed steps for creating a simple PCUI application that displays the search and a result list???
Then how can i find the BSP coding or script(such as HTML,XML..) coding used for the application.
Pls help me , its urgent.... If anyone have any kind of useful documents pls mail me in my id [email protected]
Thanks & Regards
Preethika -
Newbie needs help! Cannot open database home page...
Hi all,
I know this sort of question has been posted before but either it never got resolved or the thread seems to just die...
I have just installed 10gXE and have tried to open the 'homepage' but all I get is 'page not available' errors in either IE Firefox or Opera. I have turned off the windows Firewall to see if that had anything to do with it but it made no difference.
the out put of 'lsnrctl status' is:
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 08-MAR-2007 14:19:22
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 08-MAR-2007 13:31:01
Uptime 0 days 0 hr. 48 min. 21 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fawlty-towers)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
which seems ok but then I've never used Oracvle before so I don't know what to look for. (I have years of database experience btw using MySQL, PostgreSQL, SQL Server, hell, even Access!)
If I do 'netstat -na' I get:
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 0.0.0.0:1521 0.0.0.0:0 LISTENING
TCP 0.0.0.0:3260 0.0.0.0:0 LISTENING
TCP 0.0.0.0:3261 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1026 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1027 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1597 0.0.0.0:0 LISTENING
TCP 127.0.0.1:2691 127.0.0.1:2692 ESTABLISHED
TCP 127.0.0.1:2692 127.0.0.1:2691 ESTABLISHED
TCP 127.0.0.1:2693 127.0.0.1:2694 ESTABLISHED
TCP 127.0.0.1:2694 127.0.0.1:2693 ESTABLISHED
TCP 127.0.0.1:2695 127.0.0.1:2696 ESTABLISHED
TCP 127.0.0.1:2696 127.0.0.1:2695 ESTABLISHED
TCP 127.0.0.1:6880 0.0.0.0:0 LISTENING
TCP 127.0.0.1:45100 0.0.0.0:0 LISTENING
TCP 192.168.1.64:139 0.0.0.0:0 LISTENING
TCP 192.168.1.64:1912 141.146.8.66:80 ESTABLISHED
TCP 192.168.1.64:1913 141.146.8.66:80 ESTABLISHED
TCP 192.168.1.64:1914 141.146.8.66:80 ESTABLISHED
TCP 192.168.1.64:1919 141.146.8.66:80 ESTABLISHED
TCP 192.168.1.64:1920 141.146.8.66:80 ESTABLISHED
TCP 192.168.1.64:1921 141.146.8.66:80 ESTABLISHED
TCP 192.168.1.64:1945 194.106.56.35:110 TIME_WAIT
TCP 192.168.1.64:4550 82.11.36.182:33445 ESTABLISHED
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:500 *:*
UDP 0.0.0.0:1032 *:*
UDP 0.0.0.0:1034 *:*
UDP 0.0.0.0:1066 *:*
UDP 0.0.0.0:1067 *:*
UDP 0.0.0.0:4500 *:*
UDP 0.0.0.0:16680 *:*
UDP 127.0.0.1:123 *:*
UDP 127.0.0.1:1640 *:*
UDP 127.0.0.1:1700 *:*
UDP 127.0.0.1:1900 *:*
UDP 127.0.0.1:2629 *:*
UDP 127.0.0.1:4765 *:*
UDP 192.168.1.64:123 *:*
UDP 192.168.1.64:137 *:*
UDP 192.168.1.64:138 *:*
UDP 192.168.1.64:1900 *:*
UDP 192.168.1.64:2697 *:*
UDP 192.168.1.64:56841 *:*
My local PC IP is 192.168.1.64 incase you didn't guess from all that!
My 'hosts' file has nothing in it except '127.0.0.1 localhost' which I tried commenting out but, rather obviously, didn't make a jot of difference.
Any help would be appreciated.sqlplus / as sysdbaThis will tell you if you are connected to an idle
instance or not. If it says your are connected to an
idle instance ...It does indeed say that I am connected to an idle instance
... do the following:
SQL> startup
When I do that I get the following:
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file 'C:\oraclexe\app\oracle\product\10.2.0\serv
er\dbs/spfileXE.ora'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.Legatti, the dump log you mentioned is this (Hope you don't mind me pasting the whole thing...):
Dump file c:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
Thu Mar 08 13:31:14 2007
ORACLE V10.2.0.1.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows XP Version V5.1 Service Pack 2
CPU : 1 - type 586
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:1068M/2047M, Ph+PgF:2871M/3939M, VA:1943M/2047M
Thu Mar 08 13:31:14 2007
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Shared memory segment for instance monitoring created
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =10
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
sessions = 49
sga_target = 599785472
control_files = C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
compatible = 10.2.0.1.0
db_recovery_file_dest = C:\oraclexe\app\oracle\flash_recovery_area
db_recovery_file_dest_size= 10737418240
undo_management = AUTO
undo_tablespace = UNDO
remote_login_passwordfile= EXCLUSIVE
dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
shared_servers = 4
job_queue_processes = 4
audit_file_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\ADUMP
background_dump_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\BDUMP
user_dump_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\UDUMP
core_dump_dest = C:\ORACLEXE\APP\ORACLE\ADMIN\XE\CDUMP
db_name = XE
open_cursors = 300
os_authent_prefix =
pga_aggregate_target = 199229440
PMON started with pid=2, OS id=5344
PSP0 started with pid=3, OS id=1424
MMAN started with pid=4, OS id=4928
DBW0 started with pid=5, OS id=2092
LGWR started with pid=6, OS id=3088
CKPT started with pid=7, OS id=1920
SMON started with pid=8, OS id=2148
RECO started with pid=9, OS id=5296
CJQ0 started with pid=10, OS id=5960
MMON started with pid=11, OS id=3720
Thu Mar 08 13:31:18 2007
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
MMNL started with pid=12, OS id=5076
Thu Mar 08 13:31:18 2007
starting up 4 shared server(s) ...
Oracle Data Guard is not available in this edition of Oracle.
Thu Mar 08 13:31:22 2007
The input backup piece C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\CONFIG\SEEDDB\EXPRESS.DFB is in compressed format.
Thu Mar 08 13:31:41 2007
Full restore complete of datafile 4 to datafile copy C:\ORACLEXE\ORADATA\XE\USERS.DBF. Elapsed time: 0:00:19
checkpoint is 193065
Full restore complete of datafile 2 to datafile copy C:\ORACLEXE\ORADATA\XE\UNDO.DBF. Elapsed time: 0:00:20
checkpoint is 193065
Thu Mar 08 13:32:04 2007
Full restore complete of datafile 3 to datafile copy C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF. Elapsed time: 0:00:42
checkpoint is 193065
Full restore complete of datafile 1 to datafile copy C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF. Elapsed time: 0:00:52
checkpoint is 193065
Thu Mar 08 13:32:14 2007
Create controlfile reuse set database "XE"
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
Datafile
'C:\oraclexe\oradata\XE\system.dbf',
'C:\oraclexe\oradata\XE\undo.dbf',
'C:\oraclexe\oradata\XE\sysaux.dbf',
'C:\oraclexe\oradata\XE\users.dbf'
LOGFILE
GROUP 1 SIZE 51200K,
GROUP 2 SIZE 51200K,
RESETLOGS
WARNING: Default Temporary Tablespace not specified in CREATE DATABASE command
Default Temporary Tablespace will be necessary for a locally managed database in future release
Setting recovery target incarnation to 1
Thu Mar 08 13:32:15 2007
Successful mount of redo thread 1, with mount id 2497757598
Thu Mar 08 13:32:15 2007
Completed: Create controlfile reuse set database "XE"
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
Datafile
'C:\oraclexe\oradata\XE\system.dbf',
'C:\oraclexe\oradata\XE\undo.dbf',
'C:\oraclexe\oradata\XE\sysaux.dbf',
'C:\oraclexe\oradata\XE\users.dbf'
LOGFILE
GROUP 1 SIZE 51200K,
GROUP 2 SIZE 51200K,
RESETLOGS
Shutting down instance: further logons disabled
Thu Mar 08 13:32:15 2007
Stopping background process CJQ0
Thu Mar 08 13:32:15 2007
Stopping background process MMNL
Thu Mar 08 13:32:15 2007
Stopping background process MMON
Thu Mar 08 13:32:16 2007
Shutting down instance (immediate)
License high water mark = 1
Thu Mar 08 13:32:16 2007
Stopping Job queue slave processes
Thu Mar 08 13:32:16 2007
Job queue slave processes stopped
Waiting for dispatcher 'D000' to shutdown
All dispatchers and shared servers shutdown
Thu Mar 08 13:32:18 2007
ALTER DATABASE CLOSE NORMAL
ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
Thu Mar 08 13:32:18 2007
ALTER DATABASE DISMOUNT
Completed: ALTER DATABASE DISMOUNT
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 activeAny ideas? -
Need help with creation of Payment Cycles
We need you to determine a way to sum up the Measure "Prod Matl - Std" into Payment Cycles of the 5th, 10th, 15th, 20th, 25th and 30th of each month. Company only pays suppliers on the Payment Cycles indicated above.
General Rules:
Days: Paid on: Example:
1 - 5 Day 5 2008-08-01 through 2008-08-05 are all paid on 2008-08-05
6 - 10 Day 10 2008-08-06 through 2008-08-10 are all paid on 2008-08-10
11 - 15 Day 15 and so on…
16 - 20 Day 20 and so on…
21 - 25 Day 25 and so on…
26 - 30 Day 30 and so on…
Exceptions to Rules:
Paid on Day: Example:
1.) 31st of any month Day 5 of the following month 2008-08-31 is paid on 2008-09-05
2.) Since the month of February only has 28 or 29 days, payment for the 26th-28th of Feb will occur on Feb 28th. If it is a leap year and February has 29 days, then the payment for the 26th-29th will occur on Feb 29th.
Comments:
Please feel free to add new measures, UDAs and any formulas necessary to accomplish the objective.The best advice I can give is to mock it up on a spreadsheet as follows:
Columns: Time periods, highlight all periods (columns) that are payment cycle end dates.
Rows: Item 1 = Amount Due, Item 2 = Amount Paid, Item 3 = Due This Cycle
Now, all you need is to take each column and on the highlighted columns and put a formula into the Item 3 line that takes the sum of amounts paid and subtracts it from the sum of amounts due. These can run from the beginning or just back to the previous highlighted column.
Once you have it mocked up, the formulas can be converted and members added to support it. You'll also need to get the people that make the payments to book the items, etc..., but that might already be part of the bigger picture.
You will need to fine tune the results for roll-ups. You can either use time balance last members or create a member to store the current due/current paid elements as a running total. These are all style points though -- the bottom line is that if you can't model the process in excel or code it in essbase, you need to bring a good consulting organization in. It wouldn't take long for them to help, and I can recommend a couple in particular, but without knowing a lot more about your outline and constraints it would be very difficult to point to any one direction with certainty. -
Need help in merging two database
Dear All,
Can any one please let me know the methodology/Best practices for merging two databases.
We are having two oracle Database A and B, the data from
Database A has to be migrated to Database B using PL/SQL scripting.
it will be a great help,Thanks in advance!Hi,
Use the DB Links and try to use the "MERGE" that is better.
you can clone it right, almost you are getting the same data from A to B and then you are going to Update is I am correct. Does the "B" consist the data, If yes then you can't clone on exiting DB, As i said above go for DB links and write custom scripts as per your requirement.
Refer for DB links
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_admin.htm#sthref4108
- Pavan Kumar N -
Need help in migration of database from 8i to 10g
Hi,
I have to upgrade the database of our application form 8.1.6 to 10g release2 version.
I am new in this job.
Can anyoneone give the guideline that in which part i have to taken care of specially.
Thanks,Hi,
here i have one more idea:
if you only want a dump for the Structure, use the "CONTENT=METADATA_ONLY" in expdp.
In this case, you will not have data, but only the Datastructures (Users, tablespaces, tables etc.)
You can control, what is transferred by doing an impdp with the parameter "SQLFILE=filename.sql".
In this file you will find all statements; p.ex "create user User5 identified by values '44U7369872587307';"
after Importing this (without sqlfile=) in your new instance, you can later import from a full dump only the needed schemata
# impdp ... .... SCHEMAS=HR,U555 ..... TABLE_EXISTS_ACTION=REPLACE
To import tehe schemata online in your new instance, you need a databaselink p.ex OLD_DB (user system).
in impdp you can use the parameter NETWORK_LINK=OLD_DB instead of DUMPFILE=
-much success- -
Need Help with my frist database
I am developing a Java application locally with a very simple database.
Where do I begin when I want to make a database? I know SQL but never done a connection to database.
I can do my tables with a database tool program (does Sun have such a program for design of database?)
When I am trying different database tools, they want me to connect to the db-server? What does it mean? How do I choose a db-server (this is not a web application).
Thank you for some advice to push me in the right direction...
KiaI by myself (the writer of this topic), found a great website with instructions in details for newbie like me. I am recommending it to everyone who is doing its first database:
http://www.developer.com/java/data/article.php/3417381
Questions I made before are all answered here, as:
Getting things up and running
As a minimum, getting up and running with MySQL and JDBC involves at least the following steps:
Download and install the appropriate release of the MySQL database server software (several different releases are available).
Download and install the MySQL Connector/J -- for connecting to a MySQL database server from Java.
Download and install the documentation for the MySQL database server.
Download and install the documentation for the Connector, which is a separate documentation package from the database server documentation.
Write and test one or more JDBC programs that will act as a database administrator, creating one or more users and possibly one or more databases on the database server. (I will show you three different ways to accomplish this.)
Write and test a JDBC program that will log in as a user and manipulate data stored in one of those databases.
Nice yeee... This was what I needed...
Message was edited by:
Kia70
Message was edited by:
Kia70 -
Need Help with IMG+PHP Database+Selective Display
The problem is really a lot simpler than I made it sounds to
be, though I fear the answer might be vice versa.
I need to have pictures appear when they exist. That's all.
Here is where I am at:
I have created a php database for a news announcement page.
In that database, I have a column named "img" whose default value
is "null"
Whenever I actually have a picture corrosponding to a
particular news, the "img" column will change to the file name of
that image, which I will then extract.
So basically... if news A, img = null... no picture. news B
img = b... then yes picture. very simple concept for database.
Here's what I can't do.
When I read the database from DW, how can I make it so that
when it reads a "null" it won't insert a picture and vice versa? I
figure it definitely has to do with the "if" statement (duh...)
I know how to make text do that effect...
<? if $row_data['text'] != null
echo("i have data");
?>
but how do i do it with an image? I tried putting the image
tag to replace the entire "echo" line, but that's apparently not
how you do it. I tried putting it inside "echo", but that doesn't
seem to be it either.
also, as a premise, all pictures are associated with only 1
particular news.
which i wrote something similar to this:
<img src="<?php echo $row_data['img']; ?>.jpg"
width="200" height="200" />
Um, basically... I need THAT to fit into the IF statement. So
thanks in advance.if (!is_null($row_data['img']))
echo '<img src="',$row_data['img'],'.jpg" width="200"
height="200" />';
Let's break that down into the following:
echo '<img src="' ;
echo $row_data['img'] ;
echo '.jpg" width="200" height="200" />' ;
When you string multiple echoes together use a comma between
them,. so now
we have:
echo '<img src="',$row_data['img'],'.jpg" width="200"
height="200" />';
(You may also use a period, but my understanding is the
period is less
efficient.)
I only have single quotes in my PHP statements. The double
quotes you see
are part of what will be the rendered HTML.
You may generally use the single quote or double quote
interchangeably with
few exceptions such as having double quotes as part of the
text or vice
versa among others. You can probably escape the characters
too, but lets
keep this simple for now.
If I misspoke I am sure Micha will be sure to correct me.
IMO The best thing to do is learn by trial and error, and
your best resource
on the net for PHP is probably the php website. www.php.net
"Bih Wang" <[email protected]> wrote in
message
news:gr3p0m$293$[email protected]..
> thanks so much!
>
> is how i interpret the code correct?
>
> if (!is_null($row_data['img'])) ---> if img is false
> echo <--- maybe i been using this without
understanding it correctly...
> echo
> means to display on screen but not limited to text
right?
>
> and the rest is where you lost me... i don't get the
punctuations
>
> bracket double quote (" is for text right?
> so single quote ' means to accept a php function or html
code?
>
> so can i do this?
> '<div bob>blah'
> and have div bob appear only when the conditions are
met?
>
> and external data is define by comma?
> such as... if i pre-define value "x"
> so i can do img src=',x,'.jpg?
>
> thanks again! is there a tutorial i can read for these?
>
> -
Need help on Physical standby database
Currently our physical standby database is running in manual mode and logs are applied by me manually delay of 2 days.
And also when I add a data file in the primary database ,I've to manually add the file again on the standby .
This process is becoming too laborious, now I want to automate this process,
Now my question is
For automating this process ,do I need to bounce the database ?
I want to have 2 days gap for archive log apply process? How should I do that.
And what all parameters I need to change.
Please advice....
Verison Oracle 9.2.0.7
OS-solaris 10Duplicate thread
[duplicate thread | http://forums.oracle.com/forums/thread.jspa?threadID=699262&tstart=0 ] -
Need help with data from databases
Hi,
I need to search several columns in a table, for ex. the Id column and the Headline column. Of cource the id must be connected to the right headline when I want to do something to the data.
Now I get a Resultset and I have tried out different ways to get the data out from the Resultset but the result doesn't seems to be right. Can anyone help me, please.
-Thanks-You can iterate on your ResultSet if it contains several
rows.
Let's imagine you have defined a class Element containing
the values you want to use.
List l = new ArrayList();
// Calling rs.next() put the cursor on the next row
// and return false if there is no more row
while (rs.next()) {
Element e = new Element(rs.getString(1), rs.getInt(2));
l.add(e);
Maybe you are looking for
-
Hello Can you please tell why do we need tables BSIS and BSAS. What kind kind of transactions they contain (practical example)?
-
Hi All, I am getting the following error when tried to connect to the sap system Database is SQLSERVER trc file: "dev_disp", trc level: 1, release: "640" Thu May 22 18:21:37 2008 kernel runs with dp version 130(ext=102) (@(#) DPLIB-INT-VERSION-130) l
-
I have a simple PHP registration form, with a couple option boxes for different prices. I want to use the $_POST command to send me the total price. I know this is very simple, but I can't get it to work. I know this obviously doesn't work, but what'
-
G6: Transformer Tags: how to shrink input box of -- pt:ptui.searchform
Hello all! I'm working with header customization and would like to use the canned ptui.searchform but the input box is a little large for my taste. Currently it displays 16 characters on my screen and I'd like to reduce that down to about 10-12. Any
-
Hello, Can anyone please let me know how to do the setup of Apache/Tomcat server to run XSQL pages against Oracle 8i server? More specifically, I need to know if I need to download any software component from Oracle or elsewhere. I have Oracle 8i run