Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/01/2010, 12:12
reners
 
Fecha de Ingreso: enero-2010
Mensajes: 18
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: Problema con consulta SQL/formulario php

Cual es la diferencia de MS SQL y MY SQL?

EDIT:
Ya cambie todo, ahora me da estos errores
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in x:\inetpub\vhosts\xxx.es\httpdocs\donate\recargar2 .php on line 32

Warning: implode() [function.implode]: Argument must be an array in x:\inetpub\vhosts\xxx.es\httpdocs\donate\recargar2 .php on line 33

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--  123TICKET SCRIPT TO PROTECT YOUR PAYZONE AREA -->
<noscript>
<meta http-equiv="Refresh" content="0;URL=http://www.123ticket.com/Public_IA/check/error_code.php?IDS=50657&IDD=58954">
</noscript>
<script language="Javascript" src="http://www.123ticket.com/Public_IA/check/chk.php?IDS=50657&IDD=58954"></script>
<!--  END : 123TICKET SCRIPT -->
</head>
<?php
require "head.php";
?>


<body>
<p align="center"><img border="0" src="webzenlogo.jpg" width="256" height="195"><br>
<center><b>Escribe el nombre de tu cuenta</b><br>
<form method="get" action="<?php echo $_SERVER['PHP_SELF'];?>">
<input type="text" name="input" />
<input type="submit" name="submit" value="Go" />
</form></center>

<?PHP

if (isset($_GET['input'])){
$useracc $_GET['input'];
$conexion mysql_connect("xxx""wxx""rxx");
mysql_select_db("realmd"$conexion);
$sql_check mysql_query("SELECT id FROM account where username='$useracc'");
$res mysql_fetch_row($sql_check);
$cred mysql_fetch_row(mysql_query("SELECT pints from voting_pints where id='$res'"));
$sumapuntos implode($cred);
$puntosasumar 150;
$allcsp $sumapuntos+$puntosasumar;
$exe_credit mysql_query("UPDATE voting_points Set points='$allcsp' Where id='$res'");
}

?>
</body>
</html>