
rickayron
Membros-
Total de itens
679 -
Registro em
-
Última visita
Tudo que rickayron postou
-
Mas veja que sou iniciante, por isto tenho dúvida, será que para aprender C# não seria bom eu aprender C, depois C++ e depois C#? A linguagem muda muito? Será que dava, e no caso tudo que eu faria no C, eu poderia fazer no Java? Quais as vantagens e limitações? Depende do seu foco como já foi dito. Com c++ você pode tudo, pode construir desde aplicação para dispositivos como sistema operacional, é uma linguagem muito forte mas nela você sempre tera de apreender mais pois é uma linguagem que so é utilizada quando a coisa fede, para coisas simples utilizem delphi, depois php/java e asp.net mas quando a coisa complida de verdade fica pro java se não der pra ele fica pro c++. então apreender c++ é de grande conhecimento mas não trara dinheiro facilmente se quer dinheiro vai pro java.
-
acho que isso aqui vai servir. até mais. <? // vamos declarar e inicializar um array de inteiros $valores = array(9, 2, 6, 11, 6, 9, 3, 6); // vamos listar os valores dos elementos no array echo "Elementos no array:<br>"; for($i = 0; $i < count($valores); $i++){ echo $valores[$i] . " - "; } // vamos exibir apenas os valores duplicados // Aviso: não use o laço for para percorrer o array // resultante. Em vez disso use foreach $valores = array_unique(array_diff_assoc( $valores, array_unique($valores))); echo "<br><br>Elementos repetidos:<br>"; foreach($valores as $valor){ echo $valor . " - "; } ?>
-
Olá tudo bem, poderia descrever o erro que foi encontrado, e o navegador que você utiliza por gentileza, obrigado pelo interesse até mais
-
Olá pessoal gostaria de uma avaliação do sistema financeiro que criei para uma gestão de empresas, é bem e a arquitetura é como o cliente pediu mas o visual pode ser mudado completamente, por isso gostaria você min auxiliassem com suas valiosas opinioes http://bhnigth.dominiotemporario.com/finan até mais usuario : demo senha : demo
-
dentro do laço que imprime a query basta fazer o seguinte $dados[NN2_CODIGO][]=$linha_NN2_CODIGO; $dados[NN2_NOME][]=$linha_NN2_NOME; e assim por diante.
-
basta adicionar no sql que faz a consulta na tabela where id_categoria='$categoria' não dei um exemplo mais claro pois não há nomes de tabelas, e nem referencias a quais informa em qual tabela voce quer buscar os dados e os campos. até mais
-
fiz algumas alterações que achei necessárias O erro indica que contem uma { chave sem fechar, então deve analizar todos os includes, para descobrir o erro, até mais <?php include ("pages-setting.php"); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title><?php echo $pagetitle;?></title> <link href="style.css" rel="stylesheet" type="text/css"> <!-- LEECHED FROM [url="http://www.xxxxxxxx"]www.xxxxxxxx[/url] ---> <style type="text/css"> <!-- .style3 { font-size: 36px; font-family: "Baveuse 3D"; color: #FF9300; font-weight: bold; } .style7 { font-family: "Times New Roman", Times, serif; font-size: 16px; } .style15 { font-size: 16px; font-weight: bold; } .style20 {font-size: 11px} .style29 {font-size: 8px} a:link { color: #009900; } .style31 {font-size: 9px} --> </style></head> <body > <table cellpadding="0" cellspacing="0" border="0" align="center" style="width:100%; height:900px "> <tr> <td valign="top" style=" width:100%; height:900px " > <table border="0" cellspacing="0" cellpadding="0" style="width:100% "> <tr> <td valign="top" style="width:100%; background:URL(images/tall1.jpg) repeat-x" height="799" align="center"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="702" height="160"> <table border="0" cellspacing="0" cellpadding="0"> <!--DWLayoutTable--> <tr> <td width="702" height="160" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="[url="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0[/url]" width="702" height="159"> <param name="movie" value="flash/header.swf"> <param name="quality" value="high"> <embed src="flash/header.swf" quality="high" pluginspage="[url="http://www.macromedia.com/go/getflashplayer"]http://www.macromedia.com/go/getflashplayer[/url]" type="application/x-shockwave-flash" width="702" height="159"></embed> </object></td> </tr> </table> </td> </tr> <tr> <td valign="top" width="702" height="639"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="439" height="639" style="background-color:#292929 "> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/back_bot.gif) no-repeat bottom; height:100%"> <!--DWLayoutTable--> <tr> <td width="439" height="207" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="[url="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0[/url]" width="439" height="207"> <param name="movie" value="flash/banner.swf"> <param name="quality" value="high"> <embed src="flash/banner.swf" quality="high" pluginspage="[url="http://www.macromedia.com/go/getflashplayer"]http://www.macromedia.com/go/getflashplayer[/url]" type="application/x-shockwave-flash" width="439" height="207"></embed> </object></td> </tr> <tr> <td valign="top" style="background:URL(images/back2.jpg) no-repeat top right; height:100%"> <div style="margin-left:25px; margin-top:18px "> <div align="left"> <p><em><span class="style3"> <img src="images/1_w1.gif" width="34" height="34"></span></em><span class="style7"> </span> <span class="style15">LATEST</span> <br> <br style="line-height:11px "> <br> Music</p> <p align="center"><span class="style29"><a href="list.php?abc=a">A</a> | <a href="list.php?abc=b">B</a> | <a href="list.php?abc=c">C</a> | <a href="list.php?abc=d">D</a> | <a href="list.php?abc=e">E</a> | <a href="list.php?abc=f">F</a> | <a href="list.php?abc=g">G</a> | <a href="list.php?abc=h">H</a> | <a href="list.php?abc=i">I</a> | <a href="list.php?abc=j">J</a> | <a href="list.php?abc=k">K</a> | <a href="list.php?abc=l">L</a> | <a href="list.php?abc=m">M</a> | <a href="list.php?abc=n">N</a> | <a href="list.php?abc=o">O</a> | <a href="list.php?abc=p">P</a> | <a href="list.php?abc=q">Q</a> | <a href="list.php?abc=r">R</a> | <a href="list.php?abc=s">S</a> | <a href="list.php?abc=t">T</a> | <a href="list.php?abc=u">U</a> | <a href="list.php?abc=v">V</a> | <a href="list.php?abc=w">W</a> | <a href="list.php?abc=x">X</a> | <a href="list.php?abc=y">Y</a> | <a href="list.php?abc=z">Z</a> </span> </p> </div> <table border="0" cellspacing="0" cellpadding="0"> <!--DWLayoutTable--> <?php include ("config.php"); mysql_connect($db_host,$db_user,$db_pass) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error()); $result = mysql_query("SELECT * FROM mp3 order by id desc LIMIT 3"); while($r=mysql_fetch_array($result)) { $album=$r["album"]; $artist=$r["artist"]; $id=$r["id"]; $img=$r["img"]; $date=$r["date"]; ?> <tr> <td colspan="2" rowspan="5" valign="top" ><div align="center"><? echo "<img border='0' src="; if ($img=="") { echo 'images/nopic.gif'; } else { echo "$img"; } echo" width='70' height='60'>"; ?></div></td> <td width="13" height="18" ></td> <td width="176" valign="top" >Artist : <?php echo $artist; ?></td> <td width="63" ></td> <td width="16" ></td> <td width="23" ></td> </tr> <tr> <td height="18" ></td> <td valign="top" >Album : <?php echo $album; ?> </td> <td ></td> <td ></td> <td ></td> </tr> <tr> <td height="18" ></td> <td valign="top" >Added Date : <?php echo $date; ?> </td> <td ></td> <td ></td> <td ></td> </tr> <tr> <td height="19" ></td> <td colspan="2" valign="top" ><div align="center"><a href="download.php?id=<?php echo $id; ?>">Click Here To Download <?php echo $album; ?> Album</a> </div></td> <td > </td> <td ></td> </tr> <tr> <td height="19" ></td> <td > </td> <td > </td> <td > </td> <td ></td> </tr> <tr> <td width="13" height="19"></td> <td colspan="5" valign="top"><div align="center"><img src="images/hl.gif" alt="" width="300"></div></td> <td> </td> </tr> <tr> <td height="1"></td> <td width="96"></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <? } ?> </table> <p><br style="line-height:13px "> <img src="images/hl.gif" alt=""><br> </p> <p>Video </p> <p align="center"><span class="style29"><a href="video.php?abc=a">A</a> | <a href="video.php?abc=b">B</a> | <a href="video.php?abc=c">C</a> | <a href="video.php?abc=d">D</a> | <a href="video.php?abc=e">E</a> | <a href="video.php?abc=f">F</a> | <a href="video.php?abc=g">G</a> | <a href="video.php?abc=h">H</a> | <a href="video.php?abc=i">I</a> | <a href="video.php?abc=j">J</a> | <a href="video.php?abc=k">K</a> | <a href="video.php?abc=l">L</a> | <a href="video.php?abc=m">M</a> | <a href="video.php?abc=n">N</a> | <a href="video.php?abc=o">O</a> | <a href="video.php?abc=p">P</a> | <a href="video.php?abc=q">Q</a> | <a href="video.php?abc=r">R</a> | <a href="video.php?abc=s">S</a> | <a href="video.php?abc=t">T</a> | <a href="video.php?abc=u">U</a> | <a href="video.php?abc=v">V</a> | <a href="video.php?abc=w">W</a> | <a href="video.php?abc=x">X</a> | <a href="video.php?abc=y">Y</a> | <a href="video.php?abc=z">Z</a> </span> </p> <table border="0" cellspacing="0" cellpadding="0"> <!--DWLayoutTable--> <tr> <td width="414" height="200" valign="top"><?php include ("config.php"); mysql_connect($db_host,$db_user,$db_pass) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error()); $result = mysql_query("SELECT * FROM video order by id desc LIMIT 3"); while($r=mysql_fetch_array($result)) { $video=$r["video"]; $artist=$r["artist"]; $id=$r["id"]; $img=$r["img"]; ?> <style type="text/css"> <!-- .style1 {font-size: 12px} --> </style> <table width="406" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td colspan="2" rowspan="7" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="121" height="126" valign="top" background="images/1_back3.jpg"><p> </p> <p align="center"><? echo "<img border='0' src="; if ($img=="") { echo 'images/nopic.gif'; } else { echo "$img"; } echo" width='80' height='70'>"; ?></p></td> </tr> <tr> <td height="18" valign="top" background="images/1_back3.jpg"><div align="center"><?php echo $artist; ?> </div></td> </tr> <tr> <td height="1"></td> </tr> <tr> <td height="19" valign="top" bgcolor="#000000"><div align="center"><?php echo $video; ?> </div></td> </tr> </table></td> <td width="17" height="17"></td> <td width="10"></td> <td width="11"></td> <td colspan="3" valign="top"><div align="center" class="style1">Video Details </div></td> <td width="10"></td> <td width="40"></td> </tr> <tr> <td height="16"></td> <td></td> <td></td> <td width="75"></td> <td width="100"></td> <td width="23"></td> <td></td> <td></td> </tr> <tr> <td height="19"> </td> <td colspan="3" valign="top"><span class="style1">Artist : </span></td> <td valign="top"><?php echo $artist;?> </td> <td></td> <td></td> <td></td> </tr> <tr> <td height="7"></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="19"> </td> <td colspan="3" valign="top"><span class="style1">Video Name : </span></td> <td valign="top"><?php echo $video; ?> </td> <td></td> <td></td> <td></td> </tr> <tr> <td height="68"></td> <td> </td> <td> </td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="19"></td> <td> </td> <td colspan="5" valign="top"><span class="style1"><a href="vdownload.php?id=<?php echo $id; ?>">Click Here To Watch <?php echo $video; ?> Video </a></span></td> <td> </td> </tr> <tr> <td width="13" height="10"></td> <td width="107"></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="5"></td> <td colspan="9" valign="top"><img src="images/hl.gif" width="393" height="1"></td> </tr> <tr> <td height="8"></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> </table> <? } ?> <?php mysql_close(); ?> </td> </tr> </table> <br style="line-height:14px "> </div> </td> </tr> </table> </td> <td valign="top" width="263" height="639" style="background-color:#404040 "> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="10" height="639"></td> <td valign="top" width="243" height="639"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="243" height="40"> <table border="0" cellspacing="0" cellpadding="0"> <!--DWLayoutTable--> <tr> <td width="156" height="13"></td> <td width="87" rowspan="2" align="right" valign="top" style="background:URL(images/back3.gif) no-repeat left top"> <div align="center"><br style="line-height:13px "><html> <center> <div id=Clock align=Center style="font-family Tahoma; font-size: 11; color:#9C9C9C"> </div> <script language = "JavaScript"> //This script was created by Gary Perry //Email: [email="shadow_chaser@hotmail.com"]shadow_chaser@hotmail.com[/email] //Web: [url="http://www.garyperry.com"]http://www.garyperry.com[/url] //This script will display a real time clock at the top of your webpage. //Put this code in the body section of your webpage, and that's all //there is to it. No images to worry about, nothing, except it //only works for IE 4 and above. //Change the color of the font above in the div tag to match your webpage //colors. function tick() { var hours, minutes, seconds, ap; var intHours, intMinutes, intSeconds; var today; today = new Date(); intHours = today.getHours(); intMinutes = today.getMinutes(); intSeconds = today.getSeconds(); switch(intHours){ case 0: intHours = 12; hours = intHours+":"; ap = "A.M."; break; case 12: hours = intHours+":"; ap = "P.M."; break; case 24: intHours = 12; hours = intHours + ":"; ap = "A.M."; break; default: if (intHours > 12) { intHours = intHours - 12; hours = intHours + ":"; ap = "P.M."; break; } if(intHours < 12) { hours = intHours + ":"; ap = "A.M."; } } if (intMinutes < 10) { minutes = "0"+intMinutes+":"; } else { minutes = intMinutes+":"; } if (intSeconds < 10) { seconds = "0"+intSeconds+" "; } else { seconds = intSeconds+" "; } timeString = hours+minutes+seconds+ap; Clock.innerHTML = timeString; window.setTimeout("tick();", 100); } window.onload = tick; </script> </html> </div></td> </tr> <tr> <td height="27" valign="top"><div align="center"><html> <center> <script language="JavaScript"> <!-- This figures out what day of the week it is, and the date, and year. --> <!-- s_date = new Date(); var weekDay = ""; selectMonth = new Array(12); selectMonth[0] = "January"; selectMonth[1] = "February"; selectMonth[2] = "March"; selectMonth[3] = "April"; selectMonth[4] = "May"; selectMonth[5] = "June"; selectMonth[6] = "July"; selectMonth[7] = "August"; selectMonth[8] = "September"; selectMonth[9] = "October"; selectMonth[10] = "November"; selectMonth[11] = "December"; if(s_date.getDay() == 1){ weekDay = "Monday"; } if(s_date.getDay() == 2){ weekDay = "Tuesday"; } if(s_date.getDay() == 3){ weekDay = "Wednesday"; } if(s_date.getDay() == 4){ weekDay = "Thursday"; } if(s_date.getDay() == 5){ weekDay = "Friday"; } if(s_date.getDay() == 6){ weekDay = "Saturday"; } if(s_date.getDay() == 7){ weekDay = "Sunday"; } if(s_date.getDay() == 0){ weekDay = "Sunday"; } var setYear = s_date.getYear(); var BName = navigator.appName; if(BName == "Netscape"){ var setYear = s_date.getYear() + 1900; } document.write(weekDay + ", " + selectMonth[s_date.getMonth()] + " " + s_date.getDate() + ", " + setYear); // --> </script> </div></td> </tr> </table> </td> </tr> <tr> <td valign="top" width="243" height="210" style="background-color:#292929 "> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/tall_b.gif) repeat-x top; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/tall_b.gif) repeat-y right; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/tall_b.gif) repeat-x bottom; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/tall_b.gif) repeat-y left; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/l_t.gif) no-repeat left top; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/r_t.gif) no-repeat right top; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/l_b.gif) no-repeat left bottom; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/r_b.gif) no-repeat right bottom; width:100%; height:100%"> <div style="margin-left:11px; margin-top:12px "> <p align="center">Welcome To <?php echo $sitename; ?> </p> <p align="center">This Website Powered By Persian MP3 Which is writen by A.Ghotbi (Persian Script Team),This Script Is Completely Free And You Can Download It From [url="http://www.Persianscript.com"]Www.Persianscript.com[/url]. If You Have Any Comments or Sugestion You can Contact us : [email="nomad_6_6_6@hotmail.com"]nomad_6_6_6@hotmail.com[/email] and [email="nomad_6_6_6@yahoo.com"]nomad_6_6_6@yahoo.com[/email], And You Can Also contact Us With The Form In Contact Us page of Our Official Website. And If You Need Any CMS Script You Can Also Order It And We Will Do It For Free!!!</p> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td valign="top" width="243" height="10"></td> </tr> <tr> <td valign="top" width="243" height="150"><a href="#"><img src="images/ban2.jpg" alt="" border="0"></a></td> </tr> <tr> <td valign="top" width="243" height="10"></td> </tr> <tr> <td valign="top" width="243" height="208" style="background-color:#292929 "> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/tall_b.gif) repeat-x top; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/tall_b.gif) repeat-y right; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/tall_b.gif) repeat-x bottom; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/tall_b.gif) repeat-y left; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/l_t.gif) no-repeat left top; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/r_t.gif) no-repeat right top; width:100%; height:100%"> <table border="0" cellspacing="0" cellpadding="0" style="background:URL(images/l_b.gif) no-repeat left bottom; width:100%; height:100%"> <tr> <td valign="top" style="background:URL(images/r_b.gif) no-repeat right bottom; width:100%; height:100%"> <div style="margin-left:11px; margin-top:15px "> <p>Request You Favorite Song/Video</p> <form action="musicrequest.php" method="post" name="form1" target="_blank"> <p align="left">Your Name : <input name="your_name" type="text" id="your_name"> </p> <p align="left">Your Email : <input name="your_email" type="text" id="your_email"> </p> <p align="left">Type : <select name="type" id="type"> <option>---------</option> <option>Album</option> <option>Music</option> <option>Video</option> </select> </p> <p align="left"><span class="style20">Artist : </span> <input name="artist" type="text" id="artist"> </p> <p align="left"><span class="style20">Album/Music/Video name : </span> <input name="album_name" type="text" id="album_name"> </p> <p align="center"> <input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"> <br> </p> </form> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td valign="top" width="243" height="11"></td> </tr> </table> </td> <td valign="top" width="10" height="639"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td valign="top" style="width:100%; background:URL(images/tall2.gif) repeat-x;" height="101"> <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td valign="top" width="702" height="101" align="center" class="pol"> <br style="line-height:30px "> <a href="#" class="pol"><? include ("dn-menu.php"); ?> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html>
-
a função curl() é mais apropriada para isso, pesquise no no google la possui varios exemplos até mais
-
modifique seu sql para nesse caso ira selecionar o casamento $categoria=11; SELECT * FROM tbgalerias_categorias where id_categoria='$categoria' até mais
-
olá tudo bem segue algumas correções abaixo, qualquer duvida é so postar até mais. <?php /* * faz a conexao ao banco * e seleciona a base de dados */ $conexao = mysql_connect("host", "usuario", "senha") or die ("Erro na conexão ao banco de dados."); $db = mysql_select_db("nomebanco") or die ("Erro ao selecionar a base de dados."); /* * monta query em SQL para insercao */ $p1=$_POST['categoryID']; $p2=$_POST['name']; $p3=$_POST['price']; $p4=$_POST['in_stock']; $p5=$_POST['customer_votes']; $p6=$_POST['enabled']; $p7=$_POST['list_price']; $p8=$_POST['product_code']; $sql = "INSERT INTO SS_products ( categoryID, name, Price, in_stock, customer_votes, enabled, list_price, product_code ) VALUES ( '$p1', '$p2', '$p3', '$p3', '$p4', '$p5', '$p6', '$p7', '$p8')"; /* * executa a query */ $sql = mysql_query($sql) or die ("Houve erro na gravação dos dados.");
-
Eu já realizei trabalhos com sistemas internos aliaz so trabalhos com eles. Financeiro, gerenciamento de vendas com integração com impressora rodando remotamente, galeria de fotos para anunciantes, e fiz um controle de estoque simples para um armazem de distruibuição. até mais
-
Layout para o site Portal do DER
tópico respondeu ao nersoantonio de rickayron em Avaliações de Trabalhos
O site já esta funcionado: www.portaldoder.com.br Vou iniciar a venda dos anuncios agora, aos interessados tem auncios nos seguintes titulos: Criação de Sites, Comunicação Visual, Marmores e Granitos, Material de Construção. parabens pelo belo serviço, eu mudaria o menu abaixo do cabeçalio, ele na destaca a cor quando selecionado, e a cor verde pantano é muito esquisita. até mais -
Acrescente essa linha em depois de inserir su noticia, lembrando que no seu codigo não vi nenhuma variavel dessas que coloquei $noticia, $fotos, $mp3, $midias, até mais $incrementar=mysql_query("insert into categorias (noticia, fotos, mp3, midias) values ('$noticia','$fotos','$mp3','$midias')") or die("Falha ao tentar incrementar noticia: ".mysql_error());
-
em um mesmo sql não acredito que não seja possivel pois deve estabelecer a conexao no mesmo script e na mesma requisão sim é possivel. basta criar sua conexão realizar sua sql e em seguida realizar o processo novamente ex?: <?php $con1=mysql_connect("db1","usuario","senha") or die(mysql_error()); $banco=mysql_select_db("banco1") or die(mysql_error()); $sql=mysql_query("select * from tabela") or die(mysql_error()); /* consulta 2 */ $con2=mysql_connect("db2","usuario2","senha2") or die(mysql_error()); $banco2=mysql_select_db("banco2") or die(mysql_error()); $sql2=mysql_query("select * from tabela") or die(mysql_error()); até mais
-
www.apostilando.com.br
-
voce pode bloquear o acesso pelo ip e data de acesso ex <?php $data=date('Y-m-d'); $ip=$_SERVER[REMOTE_ADDR]; $sql_query("select * from acesso where ip='$ip' && data='$data' ") or die("Falha ao tentar verificar acesso: ".mysql_error()); if (mysql_num_rows($sql) >=1) { echo "Seu acesso já foi realizado, hoje."; } Uma outra opção seria realizar uma busca pelo acesso do usuario trocando o sql por um semelhante mas isso requer que os usuarios que utilizem seja cadastrados. ex $sql=mysql_query("select * from acesso where usuario='$usuario' && data='$data'") or die(mysql_error()); até mais
-
Olá tudo bem, utilize essa classe para isso, é de um user do form http://scriptbrasil.com.br/forum/index.php?showtopic=157457 até mais
-
mas quais os erros que o codigo apresente, teoricamente para saber a quantidade que uma consulta retorna bastar utilizar mysql_num_rows() ex: $sql=mysql_query("select * from categoria") or die("Falha ao tentar listar categorias, Erro: ".mysql_error()); echo "Numero de categorias encontradas: ".mysql_num_rows($sql); esse codigo leva em consideração que voce já possui uma conexao com o banco de dados e que va incluir la na no script, até mais.
-
Teoricamente seria listar os dados do sql dentro de um laço, e nele exibir os dados ou se não for possivel efetuar uma consulta unica nas duas tabelas devido a estrutura ou por opção mesmo voce pode buscar os galpoes e depois buscar as areas para mais informações voce deve postar o sql da tabela, e o seu codigo para melhor explicação e agente vai orientando voce conforme os erros forem aparecendo até mais.
-
Sistema com aparencia de desktop
pergunta respondeu ao rickayron de rickayron em Repositório de Scripts - PHP
Olá tudo bem, o link não tem virus, o primeiro link é downloads do sistema no qual a hopedagem é paga e existe um controle para os arquivos hospedados, os demais são imagens do sistema no qual vocês podem visualizar as telas do sistema, esse link é o sistema em funcionamento. http://bhnigth.dominiotemporario.com/desk/ Mas mesmo assim vou pedir uma verificação dos moderadores e seus parecer sobre a sua denuncia até mais, obrigado. -
olá tudo bem http://forum.imasters.com.br/topic/269490-...ndo-imagem-php/ até mais
-
Olá tudo bem <a href='#' onclick="window.history.go(-1)" title='Voltar'>Voltar</a> até mais.
-
Olá tudo bem, substitua a linha while ($row = mysql_fetch_array($result)) por isso while ($row = mysql_fetch_array($sql)) qualquer duvida é so postar ai até mais
-
tire o arroba de @move e post o erro que está aprecendo, assim fica mais facil de procurar até mais
-
tente substituir a linha while ($row = mysql_fetch_array($sql_query,MYSQL_ASSOC)){ por while ($row = mysql_fetch_array($sql_query)){ até mais,