Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- // variabili di connessione
- // nome server, nome utente,
- // Password, nomedatabase, tabella
- $ServerName = "localhost";
- $UserName = "root";
- $Password = "madara";
- $DbName = "EP";
- $table="studente";
- // la connessione al database e alla tabella
- $conn = mysql_connect($ServerName, $UserName, $Password) or die("CONNECTION NON RIUSCITA");
- mysql_select_db($DbName, $conn);
- /*$nome = $_GET["nome"];
- $cognome = $_GET["cognome"];
- $universita=$_GET['universita'];
- $username = $_GET["username"];
- $password = $_GET["password"];
- $conferma=$_GET['conferma'];
- $email = $_GET["email"];
- $universita = $_GET["universita"]; */
- /* impostiamo la query e cerchiamo solo le amiche donne...*/
- //$sqlquery = "SELECT * FROM '".$table."' WHERE user_name = 'Daniloc87' ";
- $result = mysql_query("SELECT * FROM '".$table."' WHERE user_name = 'Daniloc87' ");
- /*$number = mysql_fetch_array($result);
- $i = 0;
- if ($number < 1) {
- print "<center><p>La ricerca non ha prodotto nessun risultato</p></center>";
- }
- else {*/
- while($row = mysql_fetch_array($result) ) {
- /*$thename = mysql_result($result,,"nome");
- $thecognome = mysql_result($result,$i,"cognome");
- $theuniversita = mysql_result($result,$i,"universita");
- $theemail = mysql_result($result,$i,"email");
- print "<p><b>Nome:</b> $thename<br><b>Cognome:</b> $thecognome<br><b>Università:</b> $theuniversita<br><b>E-Mail:</b> $theemail</p>";
- $i++;*/
- print $row['nome'];
- print $row['cognome'];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement