- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 17
- Posts with Upvotes
- 14
- Upvoting Members
- 12
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
53 Posted Topics
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. | |
Re: 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"; } | |
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 … | |
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 … | |
Re: 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. | |
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 … | |
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 … | |
Re: 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>"; … | |
Re: 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> … | |
Re: 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. | |
Re: Hi, If you have Windows with license, you can ask for assistance to the company from which you bought the Windows/ license. | |
Re: Hi Try add `type="texr/javascript"` in `<script>`. And, replace: $(function() { // ... }); With: function fAjax() { // ... } fAjax(); | |
Re: 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(" "); … | |
Re: 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); }; | |
Re: 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> | |
Re: 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. ![]() | |
Re: 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; } | |
Re: 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"; | |
Re: Hi, Maybe you use mysql_real_escape_string() before connecting to mysql database. This function can be used after the connection is opened. | |
Re: 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*" . ![]() | |
Re: Hi, Try with PHP **mbstring** functions. For example, see *mb_convert_encoding()* function: http://php.net/manual/en/function.mb-convert-encoding.php | |
Re: Hy, It is missing " / " before " * " on first line, that begins the comments. Also, delete " /** " from the end. | |
Re: 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"; | |
Re: Hi, Try get the RTF data , and apply eval(). Something like this: $rtfdata = file_get_contents('file.rtf'); eval("\$rtfdata = \"$rtfdata\";"); echo $rtfdata; ![]() | |
Re: 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>');" /> | |
Re: Hi Try to convert the font file in EOT and TTF format, with @font-face Generator from: http://www.fontsquirrel.com/fontface/generator | |
Re: 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. | |
Re: 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']) | |
Re: 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 | |
Re: 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 ![]() | |
Re: Hi The single quotes in you code looks strange ‘...’ is different from '...' . Try use single quotes from US keybord. | |
![]() | Re: 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. ![]() |
Re: 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>'; | |
Re: Hi, Try make 301 redirect, from rootdomain.com/site.com to site.com See on the net about 301 redirect. | |
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 … | |
Re: Hi, Maybe the problem is because there are 2 header() header("Content-type: image/jpeg"); and header('Content-type: image/jpg'); | |
Re: 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) | |
Re: Hi If you reffer to add comments in mysql query,use: /* Comment */ SQL instructions | |
Re: 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. | |
Re: 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) | |
Re: 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. | |
Re: 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 … | |
Re: 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; | |
Re: 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(). | |
Re: 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() ). | |
Re: 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* . | |
Re: 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. | |
Re: 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: … | |
Re: Hi, Try look on the net for: *php online video tutorials installing eclipse* . | |
Re: 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; |
The End.