Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~17.0K People Reached
Favorite Tags

74 Posted Topics

Member Avatar for PF2G

Hi, I have a list of news that i'm getting from the DataBase: do{ $content.='<div id="square_news">'; $content.='<div id="news_banner">'; $content.='<img src="'.$SelectAllNews['ImagemNoticia'].'" />'; $content.='</div>'; $content.='<div id="square_news_title">'; $content.='<div class="news_title_h2"> '; $content.='<h2>'; $content.='<a href="news.php?news='.$SelectAllNews['IdNoticia'].'">'.$SelectAllNews['TituloNoticia'].'</a>'; $content.='</h2>'; $content.='</div>'; /************SHARE FACEBOOK************/ $title=urlencode($news['TituloNoticia']); $url=urlencode('http://mywebsite.com/news.php?news='.$news['IdNoticia']); $summary=urlencode(strip_tags($news['TextoNoticia'])); $image=urlencode('http://mywebsite.com/'.$news['ImagemSmallNoticia']); ?> <a href="http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=<?php echo $title ?>&p%5Bsummary%5D=<?php echo $summary ?>.&p%5Burl%5D=<?php echo $url ?>&p%5Bimages%5D%5B0%5D=<?php …

Member Avatar for diafol
0
621
Member Avatar for PF2G

Hi, i made this pagination system in the news list, but it's repeating the first data in every pages. So when i say i want 2 nes per page it's giving me 3 instead, because of it... if(isset($_GET['page'])){ require('config.php'); $page = $_GET["page"]; //Getting Page number $pages_query = mysql_query("SELECT COUNT(IdNoticia) FROM …

Member Avatar for GliderPilot
0
155
Member Avatar for PF2G

Hi, I'm doing a page where the user is logged with facebook and when he buys something. when the process is completed it shares a default text in my facebook timeline. I can't find that API code, can someone help me? Here's what i have: <?php include('header.php'); ?> <body> <div …

Member Avatar for AARTI SHRIVAS
0
162
Member Avatar for PF2G

Hi, i want to login with facebook and go back 1 page - window.history.back() - but only when error=1 (login.php?erro=1): This is the process_facebook.php: if($UserCount[0]){ //User is now connected, log him in login_user(true,$me['first_name'].' '.$me['last_name']); echo $_GET['erro']; /*if(isset($_GET['erro'])){ echo "<script>window.history.back();</script>"; }*/ } else{ // Insert user into Database. @mysql_query("INSERT INTO users …

Member Avatar for LastMitch
0
187
Member Avatar for PF2G

Hi, I have this date picker and what i want to do is, how many days, months and years are left from the today's date until the date i chose. <?php $secondDate = '2012-08-02'; // date i picked $currentDate = date('Y-m-d'); //current date $datechose=explode ('-',$secondDate); $todaysday=explode ('-',$currentDate); $daysleft=$datechose[2]-$todaysday[2]; ?> Thank …

Member Avatar for pritaeas
0
435
Member Avatar for PF2G

Hi, how can i know (with an alert) the value i selected, from the #layout_select: <script> $(document).ready(function() { var optarray = $("#layout_select").children('option').map(function() { return { "value": this.value, "option": "<option value='" + this.value + "'>" + this.text + "</option>" } }) $("#column_select").change(function() { $("#layout_select").children('option').remove(); var addoptarr = []; for (i = …

Member Avatar for PF2G
0
431
Member Avatar for PF2G

Hi, I'm trying to substract the hours of the time with the hours of the begining of an event, and print how many time is left. Can someone help me? //Preço Viagens $partida=$viagens['HoraPartida']; $horapartida = explode(":", $partida); echo $horapartida[0]; $horasistema = date("G"); //hora sistema $difhoras=$horasistema - $horapartida;

Member Avatar for flashhtml5
0
114
Member Avatar for PF2G

Hi, i want to crop an image that i upload, then the image appears behind a div where i drag and choose what i want and crop it. Here's what i want after the upload: the black background is the background-color of the body, the image inside the red border …

Member Avatar for PF2G
0
1K
Member Avatar for PF2G

Hi, i'm doing a website where the user can add his favourite bands in his profile. But not every band is in the DB, so if the band isn't in the DB it adds the name in the column. this is what i have: if(mysql_query("INSERT INTO bandas_fav(band_fav_id_user, band_fav_id_banda) VALUES('".$_GET['iduser']."', '".$bands_name['banda_id']."')")) …

Member Avatar for minitauros
0
155
Member Avatar for PF2G

Hi, i'm using facebook like box on my website but it seems it doesn't work with localhost. I hit the like button and when i refresh the page the Like was not "accepted". Is there a problem being localhost? Thank you.

Member Avatar for Szabi Zsoldos
0
50
Member Avatar for PF2G

Hi, I'm creating a mentionInput, a textarea where i can identify people writing "@NAME" (like facebook) I have a this js file where i tell the info of the names i can identify: $(function () { $('textarea.mention').mentionsInput({ onDataRequest:function (mode, query, callback) { var data = [ { id:1, name:'Kenneth Auchenberg', …

Member Avatar for LastMitch
0
386
Member Avatar for PF2G

Hello, I did this search engine just for one table: <?php $button = $_GET ['submit']; $search = $_GET ['search']; if(strlen($search)<=1) echo "Search term too short"; else{ echo "You searched for <b>$search</b> <hr size='1'></br>"; mysql_connect("localhost","root",""); mysql_select_db("rmworshipers"); $search_exploded = explode (" ", $search); $x=1; foreach($search_exploded as $search_each) { $x++; } $constructs ="SELECT …

Member Avatar for diafol
0
146
Member Avatar for PF2G

Hi, i have this bas_facebook.php to login with facebook on my website, but it gives me error with the exception: if (!function_exists('curl_init')) { throw new Exception('Facebook needs the CURL PHP extension.'); } if (!function_exists('json_decode')) { throw new Exception('Facebook needs the JSON PHP extension.'); } /** * Thrown when an API …

Member Avatar for pritaeas
0
251
Member Avatar for PF2G

Hi, I have this popup with a Login Form (and a register form comment): div id="login" style="float:right; width:15%; padding-top:3px;"> <a href="#" class="topopup">LOGIN | REGISTAR</a> <div id="toPopup"> <div class="close"></div> <div id="popup_content"> <!--your content start--> <h2>Login</h2> <form id="login"> <table cellpadding="3" cellspacing="2"> <tr> <td> Username: </td> <td> <input type="text" name="username" id="username" /> </td> …

Member Avatar for JorgeM
0
172
Member Avatar for PF2G

Hello, i have this table events: id_evento, evento_texto, evento_banner, evento_image, evento_cartaz, evento_idioma Now i can upload the image to evento_banner and evento_image, because they're the same only changes the size (the code is "inside" the <form>): <?php if(isset($_POST['Submit'])){ //Declara um Array para armazenar a mensagem de erro $error = array(); …

Member Avatar for ndeniche
0
1K
Member Avatar for PF2G

Hi, i'm trying to do clean url's using .htaccess but i'm having problems. Here i have my .htaccess: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^([a-z]+)\/([0-9]+)\/?$ parameter_letter_and_number.php?param=$1&param2=$2 [NC] RewriteRule ^([a-z]+)\/?$ $1.php [NC] RewriteRule ^([0-9]+)\/?$ parameter_number.php?param=$1 [NC] RewriteRule ^([0-9_]+)\/?$ parameter_number_and_underscore.php?param=$1 [NC] </IfModule> Here is my parameters page so i can test: <!DOCTYPE HTML> …

Member Avatar for NardCake
0
450
Member Avatar for PF2G

Hi, i'm trying to make a textarea (WYSIWYG Text Editor) where i write a text and i can mention people from the Database. so i found this website and it is excellent for what i want to do but how do i add a link to the person i mention? …

Member Avatar for LastMitch
0
97
Member Avatar for PF2G

Hi, i'm working on a website where i have to edit products. but first i have to select a Simulator and inside that simulator i have a several products. What i want to do is, select a Simulator on a combobox and then in other combobox appears me all products …

Member Avatar for LastMitch
0
291
Member Avatar for PF2G

Hi, i'm working on a website where i in the backoffice i can choose what table the frontoffice will see. The objective is create a checkbox in the backoffice and if checked (prod_img="yes") the frontoffice sees the table with big_images (prod_img) if the checkbox is not checked (prod_img="no") the front …

Member Avatar for LastMitch
0
161
Member Avatar for PF2G

Hi, i'm creating a image gallery, using .htaccess. And this is my first time i work with .htaccess So i have this code, and it's allright but there's just one thing...the images don't appear. What i want is if: if $clean_url[2]=='all' //ALL IMAGES if $clean_url[2]!='all' //IMAGES w/ title='$clear_url[2]' I have …

Member Avatar for Squidge
0
441
Member Avatar for PF2G

Hi, I'm developing an APP for android which requires a database, i'm using mySQL, but haven't had any luck with it's connection, this is my code: connection class: public class MySQLConnect extends Activity{ public void onCreate(Bundle savedInstanceState) { } public static void connection(String[] args ) throws Exception{ Class.forName("com.mysql.jdbc.Driver"); Connection con=(Connection) …

Member Avatar for peter_budo
0
461
Member Avatar for PF2G

Hi, I'm developing a mobile app for the first time, but i'm having trouble with the export of the app so i can test it in a iPhone. I already have the certificate and the provision file, but my certificate has the extionsion .cer and i need to have it …

0
57
Member Avatar for PF2G

Hi, I have this code that selects the value of a combobox and it inserts into a input: <?php echo '<input id="matr_input" style="margin-left:15px;margin-top:10px;" name="id_cat"></input>'; $select_images="SELECT * FROM categories WHERE id_category='"./*combobox value*/."'"; $query_images=mysql_query($select_images) or die(mysql_error()); $image=mysql_fetch_assoc($query_images); ?> <?php $nome_arquivo = $image['img_category']; $arquivo = explode('images/', $nome_arquivo); if($image['img_category']!=''){ echo '<div style="margin-left:15px;">'.$arquivo[1].'<a href="delete_category.php?id='.$image['id_category'].'"><img width="10" …

Member Avatar for diafol
0
98
Member Avatar for PF2G

Hi, I'm trying to do a list of news, but i only want today's news and news from the past what i don't want is future news(tomorrow,...). So i'm doing if the date <=$curdate, but future news appear anyway, can you help me, plz? <?php $curdate = date("d/m/Y"); $row_noticias = …

Member Avatar for diafol
0
100
Member Avatar for PF2G

Hi, i'm trying to do a table with border:1px solid #000000 But i want border between rows and columns. Can someone help me, please? Here's my table if it helps or something: <table> <thead rowspan=1> <tr> <td>Nome da Banda</td> <td>Estilo</td> <td>Atividade</td> <td>Line Up Atual</td> <td>Line Up Tour</td> <td>Ex-Membros</td> <td>Linguagem</td> </tr> …

Member Avatar for JorgeM
0
707
Member Avatar for PF2G

hi all i'm wroking on a music website. and now i'm doing a sort of contact form, where people can send the name of a band, the description of the band and the image wich can be from the user's computer or from the internet (inserting th image url). Can …

Member Avatar for PF2G
0
84
Member Avatar for PF2G

Hi, i'm using a javascript so i can do a messagebox confirmation, and then it goes to a .php where is the delete sql. But is not working: <!----------------------------------------------> <script language="JavaScript"> function confirmBox(id) { if (confirm("Tem a certeza que pretende eliminar este utilizador? ")) { location.href="remover_user.php"; } else { return …

Member Avatar for jmichae3
0
177
Member Avatar for PF2G

Hi, i'm working on a website where i select some text from DB according to the language selected: Here's where i define the language (where default = 'pt'): <?php //array $lang = array('pt', 'en'); //iniciar sessao -> array session_start(); //verificar var lang no url -> pagina.php?lang=pt if(isset($_GET['lang']) && in_array($_GET['lang'], $lang)) …

Member Avatar for diafol
0
143
Member Avatar for PF2G

Hi, i'm editing results, but i want that all info of the result i select appears in the respective textbox's, waht happens to me is that everything is blank even the first combo box: admin.php <td width="5%"> <a href="edit.php?id=<?php echo $row_cont_lang['id']; ?>">Editar</a> </td> edit.php <?PHP include 'db_connect.php'; session_start(); if (isset($_GET['id'])) …

Member Avatar for diafol
0
98
Member Avatar for PF2G

Hi, i'm trying to tell my sql no to delete if the results are 1 and that it has to be at least one user. but i can't: <!------------------------------------------> <script language="JavaScript"> function confirmBox(id) { if (confirm("Tem a certeza que pretende eliminar este registo?")) { location.href="remover_user.php?id="+id; } else { return false; …

Member Avatar for pritaeas
0
160
Member Avatar for PF2G

Hi, i trying to do a registration form (easiest thing ever) but i'm having trouble doing the validation :S <?php include 'db_connect.php'; ?> <html> <head> <title>Adminstração</title> </head> <body style="color=#FFFFFF" bgcolor="#666666"> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <form method="post" action=""> <td align="center" valign="middle"> <table width="300px" cellpadding="0" cellspacing="3" bgcolor="#FFFFFF" style=" …

Member Avatar for xShirowx
0
97
Member Avatar for PF2G

Hi, I'm working on a website where i have to translate the pages and the way i have to do is a little confused. Here it goes: I have to create 2 files lang_pt.php and lang_en.php where i have common arrays where i do the translation. lang_pt.php: <?PHP $lang['Family Office']="Family …

Member Avatar for diafol
0
426
Member Avatar for PF2G

Hi, I'm using a javascript messagebox, but i'm having trouble with the delete: <html> <head> <title>Adminstração</title> <!----------------------------------------------> <script type="text/JavaScript"> function confirmDelete() { var agree=confirm("Tem a certeza que quer remover?"); if (agree) { return true; <?PHP $del="DELETE FROM content_lang WHERE id_content = '".$row_lang['id_content']."'"; $q_del=mysql_query ($del, $connect); ?> } else { return …

0
83
Member Avatar for PF2G

Hi, i'm doing a search system where you search the reference of a product and it shows a list of all results, but i have one prolem. Is that i can't do the seperation of the products by its material: $ref=$_GET['q2']; $query_prod="SELECT * FROM produtos WHERE referencia LIKE '%".$ref."%' ORDER …

Member Avatar for PF2G
0
165
Member Avatar for PF2G

Hi, I'm working on a website where i have the list of all products and its info: image, description, reference and a button to see more images of the product. I want to create a checkbox that when is checked all the info is hidden except the image. I'm using …

Member Avatar for stbuchok
0
269
Member Avatar for PF2G

Hi, i'm doing a table that show products that you search for...Now i have a proble with the image and the category of the product they don't appear in the page: <?php require_once('Connections/futura.php'); ?> <?PHP $prod=$_GET['q2']; $query_prod="SELECT * FROM produtos WHERE nome LIKE '%".$prod."%'"; $produt=mysql_query($query_prod, $futura); $count=mysql_num_rows($produt); $prod_img="SELECT * FROM …

Member Avatar for Szabi Zsoldos
0
172
Member Avatar for PF2G

Hi, i'm working on a website where i have the list of all products with image, category, name of the product and its reference. What I'm trying to do is creating a checkbox and when it is checked it erases all that info (category, name of the product and reference) …

Member Avatar for ayesha789
0
218
Member Avatar for PF2G

Hi, Daniweb I'm working on a website where i did a search system and then i listed the results founded. And now i want to move them with JQuery Sortable. But i'm having dificults can someone help me please? Here's the code: <?php require_once('Connections/futura.php'); ?> <?PHP $prod=$_GET['q2']; $query_prod="SELECT * FROM …

Member Avatar for pritaeas
0
304
Member Avatar for PF2G

Hi, Daniweb I have this code that works like this: i search for a product and it gives me the name, reference and the image of the product found. My problem is that the image doesn't appear. <?php require_once('Connections/futura.php'); ?> <?PHP $prod=$_GET['q2']; $sql_prod = "SELECT * FROM produtos WHERE nome …

Member Avatar for joehms22
0
131
Member Avatar for PF2G

Hi, DaniWeb I'm creating a website based in this one: [Link Anchor Text](http://www.spirit-of-metal.com) As you see the News and the Reviews have an awesome box in the back :P I'm trying to do something similar. But i'm having some trouble, mostly the stripe on the title. Can someone help me, …

Member Avatar for bhartman21
0
76
Member Avatar for PF2G

Hi, i have this code which is a table with login form, history of website and the news. ths news are here: [CODE] <td> <h2>DESTAQUES</h2> <table> <tr> <td> <?PHP include "db_connect.php"; $sql_destaque = "SELECT data_destaque, descricao_destaque FROM destaques ORDER BY cod_destaque DESC LIMIT 4"; $executa=mysql_query($sql_destaque,$connect); $dados = array(); while ($linha …

Member Avatar for broj1
0
105
Member Avatar for PF2G

Hi, I'm trying to do a school schedule with a Table Panel Layout, and i'm having some difficults. This is the code i have so far: [CODE]TableLayoutPanel1.ColumnCount = 7 TableLayoutPanel1.RowCount = 2 TableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single Dim label_seg As New Label() label_seg.Location = New Point(10, 10) label_seg.Text = "Monday" label_seg.Size = …

Member Avatar for codeorder
0
104
Member Avatar for PF2G

Hi, i'm doing a school schedule and i have this: [URL="http://desmond.imageshack.us/Himg13/scaled.php?server=13&filename=22875721.jpg&res=medium"]http://desmond.imageshack.us/Himg13/scaled.php?server=13&filename=22875721.jpg&res=medium[/URL] as you can see i have the times on the first column and that is from table "tempos_letivos". now i have a "schedule" table where is the hours of class of the courses, but in this table the cod_prof …

Member Avatar for PF2G
0
86
Member Avatar for PF2G

Hi, i'm doing a page where user can register and give up of a course: [CODE]<td width="5%"> </td> <td> PROGRAMAÇÃO: <br/> <?PHP $cc=$_GET['cod']; $sql_prog = "SELECT prog_curso FROM cursos WHERE cod_curso=".$cc; $query_prog = mysql_query($sql_prog, $connect); while ($row = mysql_fetch_array($query_prog)) { echo $row['prog_curso']; } ?> <br/> </td> <?PHP if(is_logged()) { ?> …

Member Avatar for pritaeas
0
152
Member Avatar for PF2G

Hi, I'm having some problem with this code: [CODE]<?PHP include 'topo.php'; include 'db_connect.php'; ?> <table> <tr> <td id="navigation-block"> <img src="background.jpg" id="hide" /> <ul id="sliding-navigation"> <?PHP $sql = "SELECT * FROM cursos"; $query = mysql_query($sql,$connect); while ($row = mysql_fetch_array($query)) { ?> <li class="sliding-element"><a href="prog_curso.php?cod= <?PHP echo $row['cod_curso']; ?> "> <?PHP echo …

Member Avatar for broj1
0
125
Member Avatar for PF2G

Hi, I'm doing a page with the info of the user. For exemple i log in if i want to change my information i click on this page. But something is wrong: [CODE]<?PHP include 'topo.php'; include ('db_connect.php'); $sql="SELECT username, password, nome_aluno, data_nascimento, morada_aluno, cp_aluno, telemovel_aluno,email_aluno,nome_ee,morada_ee,cp_ee,telemovel_ee,email_ee FROM alunos WHERE username='". $_SESSION['username'] …

Member Avatar for PF2G
0
315
Member Avatar for PF2G

Hi, I'm trying to do a table that shows all the news: [CODE]<?PHP include "db_connect.php"; $sql_destaque = "SELECT data_destaque, imagem_destaque, descricao_destaque FROM destaques ORDER BY cod_destaque ASC"; $executa=mysql_query($sql_destaque,$connect); $dados = array(); while ($linha = mysql_fetch_array($executa)) $dados[] = $linha; mysql_free_result($executa); function add_imglink($linha) { echo '<td align="center">'; echo $linha['data_destaque']."<br/>".$linha['descricao_destaque']; echo '<img src="', …

Member Avatar for diafol
0
266
Member Avatar for PF2G

Hi, I'm doing a table that list courses that are in BD, but i'm having some problem, can someone help me? [CODE]<?PHP include 'topo.php'; include 'db_connect.php'; $sql = "SELECT * FROM cursos"; $query = mysql_query($sql,$connect); ?> <table> <?PHP while ($row = mysql_fetch_array($query)) { ?> <tr> <td> <div id="navigation-block"> <ul id="sliding-navigation"> …

Member Avatar for pzuurveen
0
119
Member Avatar for PF2G

Can someone tell me what's wrong here: [CODE] Dim sql As String = "SELECT * FROM courses" Dim con As New MySqlConnection Dim dt As New DataTable(sql) Dim cmd As New MySqlCommand(sql, con) con.Open() ComboBox1.Items.Add(dt)[/CODE] It doesn't show the courses.

Member Avatar for jbutardo
0
116
Member Avatar for PF2G

Hi, I'm doing a website, but it's correct when i run it with mozilla if i run it with IE the content goes all to the left. Can someone help me? Thank you, PF2G

Member Avatar for lps
0
73

The End.