Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
17
Posts with Upvotes
14
Upvoting Members
12
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #818

53 Posted Topics

Member Avatar for MarPlo

Hi, Is there any method to know which pages, links from sitemap are not indexed by google. For example, in webmaster tools it says 3200 links submited and 3125 indexed. I'm interesed to know which of sitemap links are not indexed, or which are indexed, if there is such method.

Member Avatar for mayaestat
0
184
Member Avatar for ehpratah

Hi, You can use `strtotime()` to convert string date-time in timesamp, then compare. Something like this: $data = "March 12, 2013, 16:18"; $current_time = "March 12, 2013, 16:22"; if(strtotime($data) < (strtotime($current_time) - 180)) { echo"highlight me im fresh"; } else { echo"oldies"; }

Member Avatar for ehpratah
0
215
Member Avatar for MarPlo

Hi, In the Facebook documentation about Login the user with Facebook APP they say: "*Because it requires you to include your App Secret you should not attempt to make this call client-side as that would expose this secret to all your app users. It is important that your App Secret …

Member Avatar for Dani
0
188
Member Avatar for MarPlo

Hi, I found that Google introduced a new tool for Webmasters, "Disavow Links", that enables you to disavow links to your site. If you've been notified of a manual spam action based on "unnatural links" pointing to your site, this tool can help you address the issue. If you haven't …

Member Avatar for leighlove
1
119
Member Avatar for aiki985

Hi, That function looks for the parameter "name" in the curent page address. The code inside function filters the "name" and returns the result if it is find in the page URL, or empty data.

Member Avatar for aiki985
0
185
Member Avatar for MarPlo

Hi, Does it matter the location of the hosting server? For example, if I have a wensite in english, but the hosting server is in Spain, and I want target users from UK, USA, Canada; is it better in search engines to use a server from these countries? Also, the …

Member Avatar for ankitaray
0
203
Member Avatar for MarPlo

Hi, Does changing the host too frequently affect the ranking of the web site in search engines. For example, if i change the hosting company 3 times in 2 months, does it affect the Page Rank? Because it is changing the server location, and also, each time the website cannot …

Member Avatar for Dani
0
146
Member Avatar for BleepyE

Hi, Try with this code: <?php require_once('config.php'); mysql_select_db(DB_NAME); $result = mysql_query("SELECT * FROM videos ORDER BY id DESC") or die(mysql_error()); $r = 0; while($row = mysql_fetch_assoc($result)) { echo '<div class="videobox" style="foat:left; margin:10px 12px;">'; echo "<div class='videotitle'>" . $row['title'] . "</div>"; echo "<center><img src='" . $row['thumb'] . "' alt='thumb' class='videothumb' /></center>"; …

Member Avatar for MarPlo
0
184
Member Avatar for keval007

Hi You can read easily an XML document in PHP with simpleXML, it takes all the XML elements as a hierarchical tree. Here is a code for your XML (For more details and examples with simpleXML, see this tutorial: http://www.coursesweb.net/php-mysql/php-simplexml ): <?php $xml = '<Countries> <Country> <Page1_col1>Country1</Page1_col1> <Page1_col2>89,921</Page1_col2> <Page1_col2>61</Page1_col2> <Country_sub_details> …

Member Avatar for keval007
0
195
Member Avatar for phoenix_2000

Hi, If you still want to keep the same usage of that application, you can make some video tutorials that show how to use it. Then put those tutorials on your website.

Member Avatar for phoenix_2000
0
120
Member Avatar for Cobrarr2003

Hi, If you have Windows with license, you can ask for assistance to the company from which you bought the Windows/ license.

Member Avatar for Cobrarr2003
0
654
Member Avatar for extjac

Hi Try add `type="texr/javascript"` in `<script>`. And, replace: $(function() { // ... }); With: function fAjax() { // ... } fAjax();

Member Avatar for MarPlo
0
325
Member Avatar for rotten69

Hi `split(separator, limit)` - Separates a string into an array of strings based on a separator sent as a parameter to the method. Limit is optional (an integer that specifies the number of splits). Like `explode()` in PHP. Example: <script type="text/javascript"><!-- var str="How are you?"; var ar_str = str.split(" "); …

Member Avatar for rotten69
0
223
Member Avatar for BAEdwards

Hi, I think these examles explain you way "onclick" not works in your script. This works: element.onclick = function_name; Not works: element.onclick = function_name(argument); Not works: element.onclick = "function_name(argument)"; Works: element.onclick = function() { function_name(argument); };

Member Avatar for BAEdwards
0
291
Member Avatar for FutureDev86

Hi, Try this script: <script type="text/javascript"> var names = prompt("Enter Names:", "Enter names here."); document.write('You entered the following names:<br>'+ names.replace(/[ ]/g, '<br/>')); </script>

Member Avatar for Airshow
0
128
Member Avatar for tarekwiz

Hi, Change in your form with this: Username: <input type="text" name="user"/></br> Password: <input type="text" name="password"/></br> "name" value and $_POST['value'] must be the same value.

Member Avatar for diafol
0
265
Member Avatar for mogaka

Hi, In your code, the "index" remains the same, but it should be incremented. Try this: function name_loop(){ var names_array = []; var index = 0; $('.name_class').each(function(){ names_array[index] = $.trim($(this).val()); index++; }); return names_array; }

Member Avatar for JJenZz
0
109
Member Avatar for tim_ver

Hi If you want to add double quotes inside a string, put the string between simple quotes: $variable = 'some "text" in this string'; Or, escape the quotes: $variable = "some \"text\" in this string";

Member Avatar for tim_ver
0
211
Member Avatar for aaloo

Hi, Maybe you use mysql_real_escape_string() before connecting to mysql database. This function can be used after the connection is opened.

Member Avatar for broj1
0
122
Member Avatar for aaloo

Hi, If you want directly the code, try use other script for contact form, made with Ajax. Look on the net for: "*contact form php ajax script*" .

Member Avatar for diafol
0
1K
Member Avatar for jacob21

Hi, Try with PHP **mbstring** functions. For example, see *mb_convert_encoding()* function: http://php.net/manual/en/function.mb-convert-encoding.php

Member Avatar for MarPlo
0
91
Member Avatar for salii

Hy, It is missing " / " before " * " on first line, that begins the comments. Also, delete " /** " from the end.

Member Avatar for salii
0
1K
Member Avatar for omoayan

Hy, Try with the $year as number in sql query, without quotes: $query = "select distinct MONTH(publicationdate) from agricultural_research_journal where year(publicationdate) = $year order by id asc";

Member Avatar for omoayan
0
141
Member Avatar for mwansari

Hi, Try get the RTF data , and apply eval(). Something like this: $rtfdata = file_get_contents('file.rtf'); eval("\$rtfdata = \"$rtfdata\";"); echo $rtfdata;

Member Avatar for diafol
0
2K
Member Avatar for Sanchixx

Hy, If you want to use an image as button, try this code: <input type="image" src="image.jpg" alt="Gras" onClick="this.form.area.value=this.form.area.value.concat('<b>Ajouter votre texte en gras ici</b>');" />

Member Avatar for memomk
0
145
Member Avatar for Labdabeta

Hi Try to convert the font file in EOT and TTF format, with @font-face Generator from: http://www.fontsquirrel.com/fontface/generator

Member Avatar for Labdabeta
0
319
Member Avatar for riahc3

Hi JavaScript is executed in browser after php otput the code. The for each in php probably adds multiple Script tag with the same JS code, see in the source page.

Member Avatar for McLaren
0
296
Member Avatar for PF2G

Hi, Try change in your script, this code: $sel_user="SELECT * FROM utilizadores"; $user=mysql_query($sel_user, $connect); $row_user=mysql_fetch_assoc($user); if ($username=$row_user['username']) With this one: $sel_user="SELECT * FROM utilizadores WHERE username='$username' LIMIT 1"; $user=mysql_query($sel_user, $connect); $row_user=mysql_fetch_assoc($user); if ($username == $row_user['username'])

Member Avatar for xShirowx
0
99
Member Avatar for aecha

Hi, The variable `$staff_name` (and the others) are not defined before query. After submit you should get in those variables the form data, like this: $staff_name = $_POST['staff_name']; // ... similar with the other variables

Member Avatar for code739
0
74
Member Avatar for dualzNZ

Hy You can try with explode() function. Example: $str = 'yoursite.com/file.zip'; $ext = end(explode('.', $str)); echo 'file type = '. strtoupper($ext); // file type = ZIP

Member Avatar for diafol
0
121
Member Avatar for judyhicks

Hi The single quotes in you code looks strange ‘...’ is different from '...' . Try use single quotes from US keybord.

Member Avatar for judyhicks
0
201
Member Avatar for ping0ping

Hi, Without a code, I can say that to add `return false;` in the functiot with Ajax. The "return false;" makes to not open the link in browser.

Member Avatar for ping0ping
0
171
Member Avatar for furqankhyraj

Hi, Try this string (it waz mising "." and single quote, after $myrow["article_tittle"] ): '<td><a href="$_SERVER['PHP_SELF'] . '?id=' . $myrow["article_tittle"]. '">'.$row["article_tittle"].'</a></td>';

Member Avatar for MarPlo
0
236
Member Avatar for BlueCharge

Hi, Try make 301 redirect, from rootdomain.com/site.com to site.com See on the net about 301 redirect.

Member Avatar for MarPlo
0
84
Member Avatar for MarPlo

Hi, Something that is interesting for webmasters, and SEO. Google announced a new algorithm change to reduce the ranking of 'perceived' spammers. http://insidesearch.blogspot.com/2012/04/another-step-to-reward-high-quality.html This latest update appears to target keyword stuffing (lists of keywords) and article spinning. This will reduce the rank of the website with spam keywords in their …

Member Avatar for NeoJunior
0
237
Member Avatar for kratijain

Hi, Maybe the problem is because there are 2 header() header("Content-type: image/jpeg"); and header('Content-type: image/jpg');

Member Avatar for kratijain
0
380
Member Avatar for Mongz

Hi, If you want to use PHP, you can find useful tutorials if you search on the net for "php tutortial contact form". Or check this page: [PHP Sending E-mails](http://www.coursesweb.net/php-mysql/sending-emails)

Member Avatar for gotboots
0
151
Member Avatar for Sonia11

Hi If you reffer to add comments in mysql query,use: /* Comment */ SQL instructions

Member Avatar for MarPlo
0
80
Member Avatar for dschuett

Hi, The json string without square brakets is correctly because it represents a single object with key:value , not an array with multiple elements. Maybe the problem is in javascript code, but i don't know.

Member Avatar for dschuett
0
286
Member Avatar for phplover

Hi, Try with this query: DELETE FROM users WHERE user_status = 0 AND UNIX_TIMESTAMP(user_registered)<(UNIX_TIMESTAMP(NOW())-172800) Or this: DELETE FROM users WHERE user_status = 0 AND UNIX_TIMESTAMP(user_registered)<(NOW()-172800)

Member Avatar for phplover
0
3K
Member Avatar for ethar

Hi, It can be made with JavaScript. Look on the net for "Countdown Timer Javascript" , you'll find various scripts, than, if you know a little JS, you just have to make the script to hide the elements with questions.

Member Avatar for ethar
0
197
Member Avatar for Kieron Thomas

Hi, The substr() function can be used to extract a portion of a string, with a specified length. Here is an example: $str = 'Here can be a long text, we keep only the first 25 characters'; $str = substr($str, 0, 25); echo $str; // Here can be a long …

Member Avatar for MarPlo
0
6K
Member Avatar for sibbs06

Hi, You can replace the value for time in the JavaScript with the value selected from database, if that script is in ".php" file. For example: var jsvariable = <?php // here select data from database echo $date_time_from_db; ?>; Then, the js script will count down from that value;

Member Avatar for MarPlo
0
91
Member Avatar for rayidi

Hi, If you want to pass a url via GET, which means to add that url in the link address, try with: `file_get_contents('http://domain/page.php?name='. rawurlencode($the_url_to_pass));` , or with cUrl, but adding that url in the address encoding with rawurlencode().

Member Avatar for Biiim
0
217
Member Avatar for YodaMerlin

Hi, You can try with Ajax. If it cannot get the xml directly, you can use an ajax function to access a php file on your server, that gets and returns the xml (using cUrl, or file_get_contents() ).

Member Avatar for emclondon
0
198
Member Avatar for kayeones

Hi The problem can be that your MySQL server has run out of space for storing its own database files. Try look on the net for: *zen cart Errcode 28* .

Member Avatar for MarPlo
0
107
Member Avatar for breakzzzz20

Hi, I found on the net the following syntax to copy rows from table1 to table2: INSERT INTO table2 SELECT col1, col2, col3 FROM table1 WHERE condition Then, you can apply a DELETE command on table1 with the same condition.

Member Avatar for vibhaJ
0
2K
Member Avatar for bjeffries

Hi, To center images vertically, you must add them inside a block that has a certain "height", set vertical-align: middle; , then specify that this parent block is to be formatted as a table cell (with display: table-cell;), because the contents of a table cell can be centered vertically. Example: …

Member Avatar for bjeffries
0
172
Member Avatar for jacksantho
Member Avatar for veedeoo
0
233
Member Avatar for realzahed

Hi, If you add an ID attribte in that Input field, you can use this sintax in JavaScript to get the value of that input: var valinp = document.getElementById('id_field').value;

Member Avatar for MarPlo
0
192

The End.