Edit in the database field
Is there a way to change (update) a field in a database?
So I have a 2D array in the database and I know that the index of the line and column of the field I want to change.
Another way is reading the 2D table, alter table 2D deleting 2D-table of the database and insert the new 2D array in the database.
But I fear that this will make the slow program.
I hope so it is more quick/easy way?
Thank you
You will use the SQL UPDATE command.
http://www.w3schools.com/SQL/SQL_UPDATE.asp
Tags: NI Software
Similar Questions
-
CFIF to the boxes being inserted into the database field car_make.
Hello, I need help on CFIF for the boxes being inserted into the database field car_make.
At this point, several values is inserted in the car_make field. I would like to only have one value depending on what is checked in the box.
Thank you
Here's what I mean. I would like to know if it is is not clear.
CFIF
If Honda is checked then Honda value is inserted in the field car_Make
If if Toyota is checked then Toyota value is inserted in the field car_Make
If If Subaru is checked then Subaru value is inserted in the field car_Make
You CAN, of course, but not without being fluent in javascript. Is there a particular reason you want to use checkboxes versus radio buttons?
From an interface point of view, its generally not a good idea to change the behaviours expected of HTML form elements. If users see an option button, they assume generally that it will allow only 1 choice. If they are presented with a box, they could very easily be expected they could select more than 1.
-
Hash in the database field name
I have a domain name that has a square symbol (#) in the name. I have no control over the naming of this particular database structure. I need this output field. How the hell can I do that? How do I know if the output has a # in it, but what about the real field name?
Thank youIn the query, I do ' ACCOUNT # as Act ' (ACCOUNT # is the real name of the field)
I had tried this before I posted, but it was a mistake. Copied the code into a new document to isolate all other variables on the page and now it works. Frustrating.
Thanks for the quick response.
-
Deletion of a link when the database field is empty?
Using ASP and Access - I make a list of organizations using repeated regions. Some require a link to their Web site, others do not. The code I use is fine when an organization has a web address. However, those who still do not receive the "Web Site" linked text, but lacks a URL in the (orgWebsite) relevant data field is empty. I need to remove the linked Word and the void < a > HTTP: / / < /a > that is rendered when a field is empty.
Ideally, I want that he continues to behave as it does when a URL is present on the database, but leave no case of absence code. I'm pretty sure this means him < A HREF = and the "Web Site" text must be contained in the ASP code, but none of my attempts worked. Appreciate any assistance on this...
Thank youAssuming that your URL is stored in a field called URLLink then the code
looks like this< %="">< br="">ThisLink = recordset.fields.item("URLLink").value < br=""> ThisLink if <> >"" then< br="" >="" %="">
Website: http:// <%=ThisLink%> ' > <%=ThisLink%>
<%End if%>--
Paul Whitham
Certified Professional Dreamweaver MX2004
Adobe Community Expert - DreamweaverValleybiz Web design
www.valleybiz.NET"Lancs"
wrote in message
News:e6qddr$f9v$1@forums. Macromedia.com...
> Using ASP and Access - I make a list of organizations using
> repeated
> regions. Some require a link to their Web site, others do not. The code I am
> help
> right when an organization has a web address. However, those who don't
> still
> get the linked 'Site Web' text, but it lacks a URL as the relevant data
> field
> (orgWebsite) is empty. I need to delete the linked Word and the void
> HTTP: / / returned when a field is empty.
> Ideally, I want to keep it to behave as it does when a URL is present on
> the
> database but leave no case of absence code. I'm pretty sure that this happening by the
><>
> HREF = and the "Web Site" text must be contained in the ASP code but
> no
> my attempts worked. Appreciate any assistance on this...
> Thank you
>
("> http://<%=rsOrgs.Fields.Item("orgWebsite "). Value% > "> Web site
>
>< / [email protected] > "
-
MySQL - cannot see the database fields
I've set up a very simple database with the names and addresses in it. I want out of the records based on the State. When I set up my recordset in the "columns:" field, it says "No column found." What I did wrong to put up my database. When I look at my database, I can see all of the fields. Thanks in advance.I actually found the problem. It was a problem with the way I had the index defined on my database. Thanks for your offer to help.
-
linking the database field list box
Hi guys, this is really frustrating me that I have done this before but forget how to do it now. I created a list box in which I want to connect to all the data in a certain area in my database so that when the user extends the list box they will have a direct list of values of the database in which to choose. This ensures that the list will be updated dynamically along with the database and also limit the user to these only values input in the database, thus reducing errors in user input.
If someone would be kind enough to remind me how to do this, I would be very gratefull.
Thanks in advance.First of all, you need to eliminate the "Elements of the list '' for the list in the property palette item.
Then, create the following procedure:
PROCEDURE p_populate_listitem IS
list_id POINT;
Nom_liste VARCHAR2 (40): = ' DATACODE. ListItemname';
rg_name VARCHAR2 (40): = "LIST_RG";
RG_ID RecordGroup;
ERRCODE NUMBER;
result NUMBER;
Str varchar2 (1000);
BEGIN
-fill values
list_id: = Find_Item (list_name);
RG_ID: = Find_Group (rg_name);Str: = ' your request, Select here.
Errcode: = Populate_Group_with_query (rg_id, str);
IF errcode = 0 THEN
result: = GET_GROUP_ROW_COUNT (rg_id);
END IF;
Clear_List (list_id);
Populate_List (list_id, RG_ID);END;
And then under the trigger a TIME NEW FORM INSTANCE of your form, call the procedure...
It should work...
Kind regards
gunajee! -
URL (for database field) in the RTF report
Hello!
I create report BI Publisher (ver. 11.1.1.7..) to RTF.
One of the fields of the report contains the URL link to an external resource.
URL is stored in one of the database fields in the format () varchar2).
After the launch of the report, URL Is displayed as of the text, it is not clickable.
Please tell me How do I draw a hyperlink the database to make it is clickable in RTF report.
Sincerely Alex
Check this http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#BIPRD3265
-
Insert some values into the database of field boxes
I had a similar probem and error when you use the drop-down list instead of a checkbox. It was solved by putting the SELECT name = "CarMake in the menu dropdown.
But in the box, I don't know?
I seem that the problem is the action page has the Form.carmake, but the page does not work. What Miss me and where should I put in the entry below page.
The main objective is to have checked checkboxes to insert some values into the database field carmake based on what is checked.
If the Honda checkbox is checked then
It inserts into the carmake field value Honda.
If the Toyota checkbox is checked then
It inserts into the carmake field the value of Toyota.
If both are true then 2 rows are inserted two values
Honda and Toyota.
Ditto for the last option.
Thanks for your help
Here's the error again
error:
Error occurred while processing request
CARMAKE element is not defined in the FORM.
12:21:50.050 - term Exception - in C:\CFusionMX7\wwwroot\Author\CarAddAction.cfm: line 16
CARMAKE element is not defined in the FORM.
line 16 is:
"#Trim (Form.carmake), #
Join the Code
<! - Here is the form - >
< html >
< head >
< / head >
< body >
< h1 > < / h1 >
< table >
< action = "CarAddAction.cfm cfform" method = "POST" > "
< b >
< td > Honda: < table >
< td > < Center > < input type = "checkbox" name = "HONDA_MODEL" value = "HONDA" checked > < / center > < table >
< /tr >
< b >
< td > Toyota: < table >
< td > < Center > < input type = "checkbox" name = "Toyota_MODEL" value = "Toyota" Unchecked > < / center > < table >
< /tr >
< b >
< td > SUBARU: < table >
< td > < Center > < input type = "checkbox" name = "SUBARU_MODEL" value = "SUBARU" unchecked > < / center > < table >
< /tr >
< Tr > < td > < table > Honda model
< td >
< input type = "Text".
name = "Honda_Model".
Value =""
size = "22".
MaxLength = "20" >
< table >
< tr > < /tr >
< Tr > < td > < table > Toyota model
< td >
< input type = "Text".
name = "Toyota_Model".
Value =""
size = "22" >
< table >
< tr > < /tr >
< Tr > < td > < table > Subaru model
< td >
< input type = "Text".
name = "Subaru_Model".
Value =""
size = "22" >
< table >
< tr > < /tr >
< td > < table >
< td >
< input type is 'submit' value is "Take Add to database" >
< table >
< /tr >
< / cfform >
< /table >
< / body >
< / html >
<!-action page
--------->
< cfdump var = "#form #" >
< name cfquery = "InsertCarInfo."
DataSource = "#request. MainDSN #">"
INSERT INTO Car_tab)
car_Make,
Honda_Model,
Toyota_Model,
Subaru_Model
)
VALUES)
"#Trim (Form.carmake), #
"#Trim (Form.Honda_Model), #
"#Trim (Form.Toyota_Model), #
"#Trim (Form.Subaru_Model) #
)
< / cfquery >
You check in one or more of the boxes before continuing? Remember what I said about the form field box existing only on the page of treatment at least 1 or more checkboxes are checked on your form. Make sure you use
to avoid this problem. What happens when you take a look at the output of your dump of form? Your fields are present?
-
Here's my question after tons of research and test without have the right solutions.
Target:
(1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".
(2) I created physical standby database "stbydb" on the server "node2".
(3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.
(4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)
(5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)
(6) I do RMAN backup (database and archivelog) on the site of relief only.
(7) I want to use this backup for full restore of the database on the primary database.
He is a DR test to simulate the scenario that has lost every primary & Eve total servers.
Here is how to save, on the database pending:
(1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files
(2) RMAN > backup database;
(3) RMAN > backup archivelog all;
I got elements of backup and copied to primary db Server something like:
/Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)
/Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)
/Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)
So here's how to restore, on the main site:
I clean all the files (data files, controlfiles oder all gone).
(1) restore spfile from pfile
RMAN > startup nomount
RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';
(2) modify pfile to convert to db primary content. pFile shows below
*.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '
* .audit_trail = "db".
* full = '12.1.0.2.0'
*.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'
* .db_block_size = 8192
* .db_domain = "
*.db_file_name_convert='/testdb/','/testdb /'
* .db_name = "testdb".
* .db_recovery_file_dest ='/ orafra'
* .db_recovery_file_dest_size = 10737418240
* .db_unique_name = "testdb".
*.diagnostic_dest='/opt/Oracle/DB '
* .fal_server = "stbydb".
* .log_archive_config = 'dg_config = (testdb, stbydb)'
* .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"
* .log_archive_dest_state_2 = 'ENABLE '.
*.log_file_name_convert='/testdb/','/testdb /'
* .memory_target = 1800 m
* .open_cursors = 300
* runoff = 300
* .remote_login_passwordfile = "EXCLUSIVE."
* .standby_file_management = "AUTO".
* .undo_tablespace = "UNDOTBS1.
(3) restart db with updated file pfile
SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'
SQLPLUS > the judgment
SQLPLUS > startup nomount
(4) restore controlfile
RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';
RMAN > change the editing of the database
(5) all elements of backup catalog
RMAN > catalog starts by ' / home/oracle/backupset / '.
(6) restore and recover the database
RMAN > restore database;
RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)
(7) open resetlogs
RMAN > alter database open resetlogs;
Everything seems perfect, except one of the file log roll forward pending is not generated
SQL > select * from v$ standby_log;
ERROR:
ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'
ORA-27037: unable to get file status
Linux-x86_64 error: 2: no such file or directory
Additional information: 3
no selected line
I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.
So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.
And I got the same missing log file.
The problem is:
(1) complete alert.log filled with this error, not the concern here
(2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."
(3) I can't delete and re-create this log file
Then I tried several and found:
The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.
For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.
SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;
GROUP # SEQUENCE # USED STATUS
---------- ---------- ---------- ----------
4 19 ACTIVE 133632
5 0 0 UNASSIGNED
6 0 0 not ASSIGNED
7 0 0 UNASSIGNED
So until I take the backup, I tried on the primary database:
SQL > alter system set log_archive_dest_state_2 = delay;
This was the Group of standby_log side Eve #4 was released:
SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;
GROUP # SEQUENCE # USED STATUS
---------- ---------- ---------- ----------
4 0 0 UNASSIGNED
5 0 0 UNASSIGNED
6 0 0 not ASSIGNED
7 0 0 UNASSIGNED
Then, the backup has been restored correctly without missing standby logfile.
However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.
Finally, my real questions come:
(1) what I do may not do on parameter change?
(2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?
I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...
And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.
I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.
Your idea is very much appreciated.
Thank you!
Hello
1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.
2nd--> when we opened the ORL database should be deleted and created
3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.
DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;
THREAD # SEQUENCE # GROUP # STATUS
---------- ---------- ---------- ----------
1 233 4 ACTIVE
1 238 5 ACTIVE
DR sys@cdb01 SQL > select * from v$ logfile;
GROUP # STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- ------------------------------ --- ----------
3 /u03/cdb01/cdb01/redo03.log no. 0 online
/U03/cdb01/cdb01/redo02.log no. 0 2 online
1 /u03/cdb01/cdb01/redo01.log no. 0 online
4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0
/U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0
DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log
method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory
DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log
-rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log
DR sys@cdb01 SQL > alter database force claire logfile 4;
change the database group claire logfile 4
*
ERROR on line 1:
ORA-01156: recovery or current flashback may need access to files
DR sys@cdb01 SQL > alter database recover managed standby database cancel;
Database altered.
DR sys@cdb01 SQL > change the database group claire logfile 4;
Database altered.
DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log
-rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log
DR sys@cdb01 SQL >
If you do, you can recreate the controlfile without waiting for redo log entry...
If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".
Thank you
-
How to restore the database only with redolog, ctl and dbf files
Hi friends,
I had an oracle 11g database, but the server is down. So I just save only the DBF, CTL and REDOLOG files. But I couldn't save the file spfile and pwd.
How to restore this database in the other server? How can I recreate the spfile?
I hope someone can give me a hand.
Thank you.
Hello
Thanks for all your advice.
I try to recreate an environment equal to the original.
I have install windows server 2003 and install the database from oracle 10.1 all default options.
I create the directory D:\oracle\product\10.1.0\oradata\
. Then I put the files (*.) CTL *. DBF, *. Log) in this directory. After this, I create a pfile file in: D:\oracle\product\10.1.0\db_1\database\init
.ora with only the db_name and the control_file, the compatibility settings. Then open a CMD and create a service, set the ORACLE_SID and try to start the database:
oradim-new - sid
Set ORACLE_SID =
sqlplus / as sysdba
startup nomount pfile='D:\oracle\product\10.1.0\db_1\database\init
.ora'; change the editing of the database;
ALTER database open;
And, the open database
After I install Oracle Sql Developer, and I can connect to instance and check the tables.
But when I try to do an export of CMD, I get tracking errors:
Export: Release 10.1.0.2.0 - Production on Jue 30 Abr 10:04:24 2015
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Contrase±a:
Conectado has: Oracle Database 10 g Enterprise Edition Release 10.1.0.2.0 - product
ion
With partitioning, OLAP and Data Mining options
Exportaci¾n made in el juego WE8MSWIN1252 character y el juego CARAC
Teres AL16UTF16 NCHAR
Exportando toda database...
. exportando tablespace definiciones
. exportando people
. exportando usuario definiciones
. exportando roles
. exportando recursos costos
. exportando rollback segmentos definiciones
. exportando enlaces a the database
. exportando sequence n·meros
. exportando directorios alias
. exportando espacios of numbers in context
. exportando numbers of Ajas functions bibliotecas
. exportando tipo p·blico sin¾nimos
. exportando privado tipo sin¾nimos
. exportando definiciones objetos types
. exportando actions y objetos del sistema procedure
. exportando actions y objetos procedure pre-sequence
. exportando agrupamiento definiciones
EXP-00056: is ha UN error 24324 ORACLE sown
ORA-24324: Service Manager no inicializado
EXP-00056: is ha UN error 24324 ORACLE sown
ORA-24324: Service Manager no inicializado
EXP-00056: is ha UN error 24324 ORACLE sown
ORA-24324: Service Manager no inicializado
EXP-00000: the exportaci¾n no ha terminado correctamente
Someone knows this problem?
Best regards.
-
Refresh the production database to test the database with RMAN
Hi experts,
I want to refresh the production database to test the database with RMAN. You can help me please how to do this.
I saw a lot of blog on the internet but not got a satisfactory answer.
Reg,
Thomas verrma
Thomas
Follow these steps
1. on the server target
a. Add entry in oratab
b. create init.ora for target db copy of source
c. If you use catalog
connect to the RMAN catalog, you can use the double option to clone run below
one.
RMAN > Connect target sys /
@trgt RMAN > Connect Catalog rman /
@catalog b. check that the backup connects to the source and to collect information on the elements of backup that contains the backup controlfile
c. restore the controlfile
RMAN > set DBID = xxxxxxxx (DBID of the source db)
RMAN > run
{
allocate channels ch1 type parms 'SBT_TAPE' = 'ENV = (NB_ORA_CLIENT =
-
Redirect to different URLS depending on the entry in the database.
I have a login page that I want to redirect my mysql database to the user based on the value in my "Auth" category. I'm trying to figure out how to get the login to redirect if he sees the 'HE' in the 'Auth' that he goes to indexil.php, "IA" goes to indexia.php and I also FL and NV to redirect to their corresponding pages. Hoping someone can help me with that. Here's the code that Dreamweaver created.
Login page
<? php require_once('.. / Connections/Users.php');? >
<? PHP
If (! function_exists ("GetSQLValueString")) {}
function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
$theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);
Switch ($theType) {}
case 'text ':
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "long":
case "int":
$theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
break;
case "double":
$theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";
break;
case "date":
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
break;
}
Return $theValue;
}
}
? >
<? PHP
Validate request to connect to this site.
If (! isset {})
session_start();
}
$loginFormAction = $_SERVER ['PHP_SELF'];
If (isset($_GET['accesscheck'])) {}
$_SESSION ['PrevUrl'] = $_GET ['accesscheck"];
}
If (isset($_POST['username'])) {}
$loginUsername = $_POST ['username'];
$password = $_POST ["password"];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "... / Members / ';"
$MM_redirectLoginFailed = 'login.php ';
$MM_redirecttoReferrer = false;
@mysql_select_db ($database_Users, $Users);
$LoginRS__query = sprintf ("SELECT Uname, Pword OF USERS WHERE Uname = %s AND Pword = %s",
GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));
$LoginRS = mysql_query ($LoginRS__query, $Users) or die (mysql_error ());
$loginFoundUser = mysql_num_rows ($LoginRS);
If {($loginFoundUser)
$loginStrGroup = "";
Declare two session variables and assign them
$_SESSION ['MM_Username"] = $loginUsername;
$_SESSION ["MM_UserGroup"] = $loginStrGroup;
If (isset($_SESSION['PrevUrl']) & & false) {}
$MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];
}
Header ("Location:".) $MM_redirectLoginSuccess);
}
else {}
Header ("Location:".) $MM_redirectLoginFailed);
}
}
? >
< ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""
< html >
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"
<? PHP include ('inc_title.php')? >
< link href = "styles.css" rel = "stylesheet" type = "text/css" > "
< / head >
< body > < div id = "banner" > < / div >
< div id = "container" >
< div align = "center" >
< p > < / p >
< p > < span class = "largebold" > forms connection </span > < / p >
< name of the form = "form1" method = "POST" action = "<?" PHP echo $loginFormAction;? > ">"
< p > user name:
< name of entry = "username" type = "text" id = "username" >
< /p >
< p > password:
< name of entry = "password" type = "password" id = "password" >
< /p >
< p >
< input type = "submit" name = "Submit" value = "Login" >
< /p >
< / make >
< p >
<!--right end-->
< /p >
< / div >
< div id = 'Clear' > < / div >
< / div > <! - container end - >
< / body >
< / html >
index page
<? PHP include ('inc_auth.php')? >
< ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""
< html >
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"
<? PHP include ('inc_title.php')? >
< link href = "styles.css" rel = "stylesheet" type = "text/css" > "
< / head >
< body > < div id = "banner" > < / div >
< div id = "container" >
< div id = "left" >
<? PHP include ('inc_formselector.php')? >
< / div > <! - end left - >
<!--right end-->
< div id = 'Clear' > < / div >
< / div > <! - container end - >
< / body >
< / html >
inc_auth page
<? PHP
If (! isset {})
session_start();
}
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";
Restrict access to Page: grant or deny access to this page
Function isAuthorized ($strUsers, $UserGroup, $strGroups, $UserName) {}
For safety, first assuming that the visitor is NOT allowed.
$isValid = false;
When a visitor is connected to this site, the MM_Username of Session variable value equal to their username.
So, we know that a user is NOT logged if this Session variable is empty.
If (! empty ($UserName)) {}
In addition to being connected, you can restrict access to only certain users based on a created ID when they connect.
Analyze the channels in the tables.
$arrUsers = explode (",", $strUsers);
$arrGroups = explode (",", $strGroups);
If (in_array ($UserName, $arrUsers)) {}
$isValid = true;
}
Or, you can restrict access to only certain users based on their user name.
If (in_array ($UserGroup, $arrGroups)) {}
$isValid = true;
}
If (($strUsers == "") & & true) {}
$isValid = true;
}
}
return $isValid;
}
$MM_restrictGoTo = 'login.php ';
If (!) {(((isset($_SESSION['MM_Username']))) & & (isAuthorized ("", $MM_authorizedUsers, $_SESSION ['MM_Username'], {$_SESSION ['MM_UserGroup']})))}
$MM_qsChar = ';?
$MM_referrer = $_SERVER ['PHP_SELF'];
If (strpos ($MM_restrictGoTo, "?")) $MM_qsChar = "&";
If (isset ($QUERY_STRING) & & strlen ($QUERY_STRING) > 0)
$MM_referrer. = « ? ». $QUERY_STRING;
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar. "accesscheck =". UrlEncode ($MM_referrer);
Header ("Location:".) $MM_restrictGoTo);
"exit";
}
? >
I hope this is all to help me on this. I worked on this NCB for a few weeks now. I can't get one of the 4 redirects to work. Thanks in advance
It works very well.
What it does is to select 'Auth' from the 'users' table that corresponds to the "Username" and "Password" and assigns the name of the page (indexil.php) that must be inserted into the database field 'Auth' to a variable named $Auth
Connect to the database server
mysql_connect ("xxxxxxx", "xxxxx", "xxxxxxx") or die (mysql_error ());
Select database
@mysql_select_db ("XXXXXXXXXXX") or die (mysql_error ());
Select the url
$strSQL = "SELECT authentication OF USERS WHERE Uname = '$loginUsername' AND Pword ="$password "";
$rs = mysql_query ($strSQL);
While ($row = {mysql_fetch_array ($rs))}
$Auth = $row ["Auth"];
Header ("Location:".) $Auth);
-
Display image if the data field is not empty
I try to mask an image, depending on whether or not a certain area (the link behind this image) is empty.
While I'm not a guru-script I can only imagine that it has something to do with the fact that I have mix javascript and VBscript in a page?
I used something like this before and it worked, but it doesn't seem to work in this case? :
< % dim strStory
strStory = rsProduct ("fld_prodStory")
If strStory <>"" then
% >
HERE IS THE PART TO HIDE
< %
End if
% >
The image I want to hide if the database field is empty:
< a href = "< % = (rsWatch.Fields.Item("fld_wStory")." "(% De la valeur) > ' Mm_swapimgrestore" onMouseOver = "MM_swapImage (' here '", ' Images/ico_docs_o.jpg', 1) "> < img src =" Images/ico_docs_u.jpg"alt ="Uitleg"name ="Uitleg"width ="26"height ="26"border ="0"> < /a >"
Thanks in advance for the helpjrolf
Try changing your line:
If strStory <> "" then
Also, check if the strStory is not Null.
Brendan
--
______________________________________________
Rate your experiences with your manufacturers UK and Ireland to
http://www.ratethebuilder.co.UK
========================================="jrolf"
wrote in message
News:e3nfa6$DT8$1@forums. Macromedia.com...
> I'm trying to hide an image, depending on if a certain field (the link
behind
(> This image) is empty or not.
> While I am not a guru-script I can only imagine that he has something to
do
> with the fact that I have mix javascript and VBscript in a page?
>
> I used something like this before and it worked, but it does not seem
work
> in this case? :
> < %="" strstory="" dim=""> < br=""> > strStory = rsProduct ("fld_prodStory") < br=""> > strStory if <> >"" then < br=""> > %>
> HERE IS THE PART TO HIDE
> < %="">< br=""> > End if < br=""> > %>
>
> The image I want to hide if the database field is empty:
>">
' > Mm_swapimgrestore.
> onMouseOver = "MM_swapImage (' here '", ' Images/ico_docs_o.jpg', 1) ">"<>
> src = "Images/ico_docs_u.jpg" alt = "Uitleg" name = "Uitleg' width = '26'
height = "26".
> border = "0" >
>
> Thank you in advance for help
> -
problem in the recovery of the database!
Hi all
I created a new database and wanted to restore the backup to a different database in it, I created the required tablespaces and began the restoration of RMAN backup by
Run {}
allocate channel 'dev_0' type 'sbt_tape '.
parms 'ENV = (OB2BARTYPE = Oracle8, OB2APPNAME = orcl OB2BARLIST = DAILY_HISDBS01_ORACLE-DB_ONLINE_5W, OB2BARHOSTNAME = hisdbs01.kfmc.med)';
Restore controlfile from "c-1179279249-20090511-02';
change the editing of the database;
free the channel "dev_0;
}
The obtained controlfile restored successfully, then I tried to restore and recover the database
Run {}
allocate channel 'dev_0' type 'sbt_tape '.
parms 'ENV = (OB2BARTYPE = Oracle8, central = OB2APPNAME, OB2BARLIST = DAILY_HISDBS01_ORACLE-DB_ONLINE_5W, OB2BARHOSTNAME = hisdbs01.kfmc.med)';
restore the database;
recover the database;
free the channel "dev_0;
}
The restoration was successful, but when I tried to open the database with the resetlogs option
SQL > alter database open resetlogs;
ALTER database open resetlogs
*
ERROR on line 1:
ORA-01194: file 1 needs a recovery more match
ORA-01110: data file 1: '+ DATADG/orcl/datafile/system.295.686609187 '.
SQL > restore database using backup controlfile until cancel;
ORA-00279: change 1136286903 September at 2009-05-11 02:08:22 for thread1
ORA-00289: suggestion: */arch/archivelog/1_8493_651861624.dbf*
ORA-00280: change 1136286903 thread 1 is in sequence #8493
Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
Cancel
ORA-01547: WARNING: RECOVER succeeded but OPEN RESETLOGS would get below error
ORA-01194: file 1 needs a recovery more match
ORA-01110: data file 1: '+ DATADG/orcl/datafile/system.295.686609187 '.
ORA-01112: media recovery not started
The recovery process is looking for */arch/archivelog/1_8493_651861624.dbf* this archivelog, but this archivelog file is not present at this location, the restore process should have restored all archivelogs as well, in fact any archivelogs didn't get restored, how can I recover the database without newspapers archivelog? It is not possible at all.
Please tell me how can I do the database work?Have you tried to restore the Archivelogs through RMAN manually, using "RESTORE ARCHIVELOG FROM TIME ="datestring "?
See if RMAN can detect the ArchiveLogs tape.
-
Cannot update a single display field when writing the record in the database
Hello all-
I have a situation in which I displays a record in a form. Most of the fields are editable by the user and is written back to the database table when the user clicks on the button changes to. However, there are two fields that are show in view-only mode. I don't want users to be able to change these fields. On the contrary, they are modified programmatically to a specific date and time in these areas and the ID of the user in the update to field. Then the file is submitted to the database.
If these fields are defined as TEXT fields, they write back to the database correctly.
If these fields are defined in VIEW ONLY mode, they do not get rewritten on the basis of data - whatever values are in here are ignored.
Here's the question: is it possible to not allow the user to change these fields, but always show them and also allow them to be updated before registration gets written back to the database?
Thank you!
John Ramuta
Adjust your column 'display as': text field
Then scroll down to the section 'Element' and 'attribute of the HTML Form element' enter readonly text
Maybe you are looking for
-
I downloaded macOS Sierra, now how to install it?
It sounds ridiculous, I know. But I downloaded Sierra (indicate directly on the page in the Apple Mac store: a says "downloaded" button). But by clicking on this button does nothing and there are no other obvious way to install now Sierra. What Mis
-
Fellows Why is blood so difficult to change the font size of the General the Mac OS? Why strategies to change the font size are different for each different software? Why our genius of Apple - him even gave us the screen 27 "hut - simply do not give
-
Discount on the MBA 2011 and continuity
Since obtaining a new office, I found continuity and transfer of useful work and miss me when I'm with the Air. I read that there are some BlueTooth dongles with the latest version of BlueTooth for that to be possible on my old computer. Any recommen
-
Need driver for Satellite A200 - 11 c Win 2003 display
Hello Need display driver for Windows 2003 Concerning Aziz
-
Where can I find driver for MS Wireless MultiMedia Keyboard 1.1 model 1014
I am running XP Pro 64-bit, 8 GB of Ram. I recently had to format my HD and everything... to reinstall all the software programs and hardware connected. This includes the keyboard listed in the title of this message. Everything works... MS Wireles