pues practicando
lee el curso ke se está dando aki y luego haz ejercicios por tu cuenta
lee el curso ke se está dando aki y luego haz ejercicios por tu cuenta

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menúsudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update && sudo apt-get upgradeCreate database sp;
Use sp;
CREATE TABLE alumnos (idAlumno INT NOT NULL PRIMARY KEY AUTO_INCREMENT, nombre VARCHAR(50), apellido VARCHAR(30));
CREATE TABLE profesores (idProfesor INT NOT NULL PRIMARY KEY AUTO_INCREMENT, nombre VARCHAR(50), apellido VARCHAR(30));
INSERT INTO alumnos VALUES('','pepe','pecas');
INSERT INTO alumnos VALUES('','juan','el toro');
INSERT INTO profesores VALUES('','juan','alejandro');
INSERT INTO profesores VALUES('','carlos','perez');DELIMITER//
CREATE PROCEDURE listar()
BEGIN
SELECT * FROM alumnos;
END//
DELIMITER;CALL listar();DELIMITER//
CREATE PROCEDURE listarNombre(nombreAlumno varchar(20))
BEGIN
SELECT * FROM alumnos where nombre = nombreAlumno;
END//DELIMITER $$
CREATE PROCEDURE salida(id INT,OUT nombreAlumno VARCHAR(20))
BEGIN
SELECT nombre FROM alumnos WHERE idAlumno = id INTO nombreAlumno ;
END$$
DELIMITER ;CALL salida(2,@nombre);SELECT @nombre;DELIMITER $$
CREATE PROCEDURE entradaSalida(INOUT variable VARCHAR(20))
BEGIN
SELECT nombre FROM alumnos WHERE idAlumno = variable INTO variable;
END$$
DELIMITER ;SET @nombre = 2;
CALL salida(@nombre);
SELECT @nombre;DELIMITER $$
CREATE PROCEDURE variable()
BEGIN
DECLARE id INT;
SET id = 1;
SELECT * FROM alumnos WHERE idAlumno = id;
END$$
DELIMITER ;DECLARE id INT DEFAULT 1;CALL variable();<?php
$correo=$_POST[correo];
$asunto=$_POST[asunto];
$nombre=$_POST[nombre];
$mensaje=$_POST[mensaje];
$mensaje2 = stripslashes($mensaje);
$correos = nl2br($_POST['correos']);
$correos2=$_POST['correos'];
?>
<title>Mailer by Devilboy</title>
<body bgcolor="#000000" >
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<p> </p>
<table width="75%" height="250" border="1" align="center" background="http://3.bp.blogspot.com/_YmrRm70asRg/S9SWah8WRoI/AAAAAAAAACk/VF9eTjeS8Ec/s1600/wallpapers3dartvialien.jpg">
<tr>
<td><div align="center">
<table width="95%" height="455" border="0">
<tr>
<td colspan="4"><div align="center">
<p><strong><font color="#FFFFFF">Mailer by Devilboy</font></strong></p>
<p> </p>
</div></td>
</tr>
<tr>
<td height="64"><strong><font color="#FFFFFF">Tu Correo: </font></strong></td>
<td><strong><font color="#FFFFFF">
<input name="correo" type="text" id="correo" size="30" value="<?php echo($correo); ?>">
</font></strong></td>
<td><strong><font color="#FFFFFF">Tu Nombre: </font></strong></td>
<td><strong><font color="#FFFFFF">
<input name="nombre" type="text" id="nombre" size="30" value="<?php echo($nombre); ?>">
</font></strong></td>
</tr>
<tr>
<td><strong><font color="#FFFFFF">Asunto:</font></strong></td>
<td><input name="asunto" type="text" id="asunto" size="30" value="<?php echo($asunto); ?>"></td>
<td colspan="2"> </td>
</tr>
<tr>
<td width="49%" height="32" colspan="2"><div align="center">
<p> </p>
<p><strong><font color="#FFFFFF">Mensaje</font></strong></p>
</div></td>
<td width="51%" colspan="2"><div align="center">
<p> </p>
<p><strong><font color="#FFFFFF">Correos</font></strong></p>
</div></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<textarea name="mensaje" cols="40" rows="15" id="mensaje"><?php echo($mensaje2); ?></textarea>
</div></td>
<td colspan="2"><div align="center">
<textarea name="correos" cols="40" rows="15" id="correos"><?php echo($correos2); ?></textarea>
</div></td>
</tr>
</table>
<strong></strong></div></td>
</tr>
</table>
<p> </p>
<p align="center">
<input type="submit" name="Submit" value=" OwNeAr "/>
</p>
<p> </p>
</form>
<?php
//*****html****************************
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: ".$nombre . " <" . $correo . ">\n";
$headers .= "To: ".$nombre . " <" . $correo . ">\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: Widgets.com Server";
//*************************************
$lineas = explode ( '<br />' , $correos );
foreach ($lineas as $indice => $valor) {
$count=$indice+1;
if($valor!=""){
if(mail($valor,$asunto,$mensaje2,$headers)){
echo('<font color="#FFFFFF">'.$count.') '.$valor."....Spameado</font><br/>");
}else{
echo('<font color="#FFFFFF">No se Enviò desde el correo: '.$valor.'<br/>');
break;
}
}
}
?>You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
hola, quisiera que me ayuden con los siguiente: quiero completar un formulario y enviarlo a un mail de hotmail o gmail y no se que tengo que configurar. no se si tengo que modificar el PHP.ini o algo asi, se que debo usar el mailto. desde ya muchas gracias. estoy siguiendo el curso de PHP y esta muy bien explicado.
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
hola amigos mi pregunta es
si puedo usar esta camara dijital como web cam
es una
olympus t-100 de 12 megapixel gracias espero su respuesta
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;
using System.Windows.Forms;
namespace Insert
{
public class Prueba
{
public void Consulta(string conexion, string consulta)
{
MySqlConnection conn;
MySqlCommand com;
try
{
conn = new MySqlConnection(conexion);
conn.Open();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
return;
}
try
{
com = new MySqlCommand(consulta, conn);
com.ExecuteNonQuery();
MessageBox.Show("Se han Ingresado los datos");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
return;
}
finally
{
conn.Close();
}
}
}
}

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
using Clases;
namespace Insert
{
public partial class Form1 : Form
{
Prueba obj = new Prueba();
string nombre, apellido;
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
Close();
}
private void button1_Click(object sender, EventArgs e)
{
nombre = textBox1.Text;
apellido = textBox2.Text;
string conexion = "server=localhost;uid=root;pwd=oypagos;database=c#";
string query = "insert into Alumnos (nombre,apellido) values('"+nombre+"','"+apellido+"');";
obj.Consulta(conexion, query,toolStripProgressBar1,toolStripStatusLabel1);
}
private void toolStripProgressBar1_Click(object sender, EventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
toolStripStatusLabel1.Text = "Esperando";
}
}
}
<?php
require($path . 'titulo.php');
require('../funciones/mysql_fns.php');
$db = abrir_conexion_bd("bd");
$existe=$_POST['existe'];
if($existe != 1){
?>
<form name="form1" enctype="multipart/form-data" method="post" action="subir.php">
<p align="center"><strong>Carga de Archivo </strong></p>
<table width="100" border="1" align="center">
<tr>
<th background="../imagenes/cuerpo.jpg">Selecciona Archivo(CVS)</th>
<th><input type="file" name="archivo" /></th>
</tr>
<tr>
<th colspan="2">
<input name="existe" type="hidden" value="1">
<input name="valor" type="hidden" value="1">
<input type="submit" name="Submit" value="Enviar">
</th>
</tr>
</table>
<p> </p>
<p> </p>
</form>
<?php
}else{
$archivo = $_FILES["archivo"]["name"];
$valor = $_POST['valor'];
switch($valor){
case 1:
validar($archivo);
validar_tipo($archivo);
subir($archivo);
break;
}//fon switch
}//fin else
//+++++++++++++++++++++funciones++++++++++++
function validar($archivo){
$cadinval = 0;
if(empty($archivo)){
echo("<br><center><b>No haz Seleccionado Un Archivo</b></center>");
$cadinval = 1;
}
if($cadinval){
echo "<hr><center><p><INPUT TYPE='button' VALUE='Regresar' onClick='history.back()'></center>";
exit(1);
}
}
function subir($archivo){
$row = 0;
$fp = fopen ($archivo,"r");
while ($data = fgetcsv ($fp, 1000, ","))
{
$row++;
$insertar="INSERT INTO pres (anio,tipo,programa,importe,fecreg,mes,docto,partida) VALUES ('$data[0]','$data[1]','$data[2]','$data[3]','$data[4]','$data[5]','$data[6]','$data[7]')";
$insertar = mysql_query($insertar);
}
if($insertar){
echo "<br><center>Se Han Cargado: $row Registros<br><br><INPUT TYPE='button' VALUE='Regresar' onClick='history.back()'></center>";
}else{
echo "<br><center><b>Error</b></center>";
}
fclose ($fp);
}
//+++++++++++++++++++++++++++++++++++++++++++
?>
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Leí todas las definiciones, pero lo que quiero saber es con qué programa se realizan esas cosas o cómo puedo realizarlo con algún programa de Window, si me pueden ayudar se los agradeceria, uso XP y como verán soy muy noob en esto, pero para algo están ustedes.