• Catania / Scienze MM. FF. NN. / Informatica
  • chi mi s

block-votailprof
block-votailprof - Ominide - 0 Punti
Rispondi Cita Salva
<%@page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*"%>

<%@ include file="Connections/Alkest.jsp" %>

<%

String search__MMColParam = "1";

if (session.getValue("Cognome";) !=null) {search__MMColParam = (String)session.getValue("Cognome";);}

%>

<%

Driver Driversearch = (Driver)Class.forName(MM_Alkest_DRIVER).newInstance();

Connection Connsearch = DriverManager.getConnection(MM_Alkest_STRING,MM_Alkest_USERNAME,MM_Alkest_PASSWORD);

PreparedStatement Statementsearch = Connsearch.prepareStatement("SELECT * FROM AnagraficaCliente WHERE Cognome = ´" + search__MMColParam + "´ ORDER BY Nome ASC";);

ResultSet search = Statementsearch.executeQuery();

boolean search_isEmpty = !search.next();

boolean search_hasData = !search_isEmpty;

Object search_data;

int search_numRows = 0;

%>

<html>

<head>

<title>search</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="
<table width="650" border="1" align="center">

<tr>

<td>

<div align="center"></div>

</td>

<td>

<div align="center"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab
<param name=movie value="Movie1.swf">

<param name=quality value=high>

<embed src="Movie1.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="633" height="150">

</embed>

</object></div>

</td>

<td>

<div align="center"></div>

</td>

</tr>

<tr>

<td>

<div align="center"></div>

</td>

<td bgcolor="
<div align="center">

<form name="form1" method="post" action="search.jsp">

<input type="text" name="cognome">

<input type="submit" name="Submit" value="Submit">

</form>

</div>

<div align="center">



</p>

<form name="form2" method="post" action="search.jsp">



<%=(((search_data = search.getObject("Titolo";))==null || search.wasNull())?"":search_data)%><%=(((search_data = search.getObject("IDElencoIndirizzi";))==null || search.wasNull())?"":search_data)%> <%=(((search_data = search.getObject("Nome";))==null || search.wasNull())?"":search_data)%> <%=(((search_data = search.getObject("Cognome";))==null || search.wasNull())?"":search_data)%> <%=(((search_data = search.getObject("Indirizzo";))==null || search.wasNull())?"":search_data)%> </p>



<%=(((search_data = search.getObject("TelefonoUfficio";))==null || search.wasNull())?"":search_data)%> <%=(((search_data = search.getObject("TelefonoCellulare";))==null || search.wasNull())?"":search_data)%><%=(((search_data = search.getObject("TelefonoAbitazione";))==null || search.wasNull())?"":search_data)%></p>



<%=(((search_data = search.getObject("IndirizzoPostaElettronica";))==null || search.wasNull())?"":search_data)%> <%=(((search_data = search.getObject("Data di nascita";))==null || search.wasNull())?"":search_data)%> <%=(((search_data = search.getObject("DataUltimaVisita";))==null || search.wasNull())?"":search_data)%> </p>



<%=(((search_data = search.getObject("DataPrimaVisita";))==null || search.wasNull())?"":search_data)%> <%=(((search_data = search.getObject("ImportoContributo";))==null || search.wasNull())?"":search_data)%> <%=(((search_data = search.getObject("DataPagamentoContributo";))==null || search.wasNull())?"":search_data)%> </p>



<%=(((search_data = search.getObject("DatiMedici";))==null || search.wasNull())?"":search_data)%> <%=(((search_data = search.getObject("DatiMedici";))==null || search.wasNull())?"":search_data)%> <%=(((search_data = search.getObject("Fotografia";))==null || search.wasNull())?"":search_data)%><%=(((search_data = search.getObject("Note";))==null || search.wasNull())?"":search_data)%></p>

</form>



</p>

</div>

</td>

<td>

<div align="center"></div>

</td>

</tr>

</table>

</body>

</html>

<%

search.close();

Connsearch.close();

%>

non capisco dove è l´errore
Come guadagno Punti nel Forum? Leggi la guida completa
In evidenza
Classifica Mensile
Vincitori di novembre
Vincitori di novembre

Come partecipare? | Classifica Community

Community Live

Partecipa alla Community e scala la classifica

Vai al Forum | Invia appunti | Vai alla classifica

mc2

mc2 Genius 281 Punti

Comm. Leader
eleo

eleo Moderatore 18296 Punti

VIP
Registrati via email