Jump to content

$php_mysql$

Members
  • Posts

    391
  • Joined

  • Last visited

    Never

Everything posted by $php_mysql$

  1. friends my url is like this Category=Love&ID=1 now in url if i do something like this Category4637=Hate19203&ID=1 the details are still showing, how can i fix this? if someone type Capegory instead of Category and a wrong category name which do not exist with that id in db send them to index.php?
  2. hi friends currently my doc type is valid according to w3 but when i add like buttons of facebook, twitter and google i get these errors, how can i fix these issue? Line 97, Column 17: there is no attribute "size" <g:plusone size="medium"></g:plusone> ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Line 97, Column 25: element "g:plusone" undefined <g:plusone size="medium"></g:plusone> ✉ You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by: incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element), by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead). by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case). Line 107, Column 113: required attribute "type" not specified ….js#appId=345324532452345&xfbml=1"></script><fb:like href="http://www.face… ✉ The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>. Line 107, Column 137: there is no attribute "href" …8&xfbml=1"></script><fb:like href="http://www.facebook.com/pages/Northeast… ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Line 107, Column 214: there is no attribute "send" …tadscom/239470209425617?sk=wall" send="false" layout="button_count" width="50"… ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Line 107, Column 229: there is no attribute "layout" …09425617?sk=wall" send="false" layout="button_count" width="50" show_faces="fa… ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Line 107, Column 250: there is no attribute "width" …d="false" layout="button_count" width="50" show_faces="false" action="like" fo… ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Line 107, Column 266: there is no attribute "show_faces" …="button_count" width="50" show_faces="false" action="like" font="tahoma"></fb… ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Line 107, Column 281: there is no attribute "action" …ton_count" width="50" show_faces="false" action="like" font="tahoma"></fb:like> ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Line 107, Column 293: there is no attribute "font" …ton_count" width="50" show_faces="false" action="like" font="tahoma"></fb:like> ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Line 107, Column 301: element "fb:like" undefined …ton_count" width="50" show_faces="false" action="like" font="tahoma"></fb:like> ✉ You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by: incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element), by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead). by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case). Line 110, Column 76: there is no attribute "data-count" …ass="twitter-share-button" data-count="horizontal">Tweet</a><script type="text… ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
  3. see? u too getting something like via n1nlhg037.shr.prod.ams1.secureserver.net why is that happening?
  4. oh i did not try yahoo. im checking gmail and it says via avalanche.websitewelcome.com do not understand why is that showing
  5. maybe this? if ($sta == "A") { echo "<P><font size='+2' color='yellow'>Approved Charities</font></P>"; } elseif ($sta == "C") { echo "<P><font size='+2' color='yellow'>Contacted Charities</font></P>"; } elseif ($sta == "D") { echo "<P><font size='+2' color='yellow'>Declined Charities</font></P>"; } elseif ($sta == "S") { echo "<P><font size='+2' color='yellow'>Submitted Charities</font></P>"; } elseif ($sta == "CB") { echo "<P><font size='+2' color='yellow'>Call Back Charities</font></P>"; } elseif ($sta == "AP") { echo "<P><font size='+2' color='yellow'>Appointments with Charities</font></P>"; }else{ echo "<P><font size='+2' color='yellow'>All Charities</font></P>"; } or maybe you can try not equal to (!$sta == "AP")
  6. whats wrong with my coding that when sent mail and received in gmail it says via avalanche.websitewelcome.com? $to = getEmailById($_SESSION['ID']); $from = $contactData['youremail']; $name = $contactData['yourname']; $message = $contactData['yourmessage']; $headers = "From: no-reply@nwebsite.com\r\n"; $headers .= "Reply-To: $from\r\n"; $headers .= "Return-Path: $from\r\n"; 'X-Mailer: PHP/' . phpversion(); $message = "$message "; $subject = "(Notification) - $name !"; mail($to, $subject, $message, $headers);
  7. thanks bro found a substitute :-) function mywordwrap1($text,$nr=35) { $mytext=explode(" ",trim($text)); $newtext=array(); foreach($mytext as $k=>$txt) { if (strlen($txt)>$nr) { $txt=wordwrap($txt, $nr, "-", 1); } $newtext[]=$txt; } return implode(" ",$newtext); } tho it puts a - it would have been nice if it didn but it does the work :-) thanks soo much.
  8. nl2br will not work for it would make my table go out of the main content. the function above works like i need but bcoz or the <wbr> i get validation error i got a row for title 70 characters max and the with is 50% without wraping the text my table gets messed up :-D
  9. got this function in php.net i guess function mywordwrap($string) { $length = strlen($string); for ($i=0; $i<=$length; $i=$i+1) { $char = substr($string, $i, 1); if ($char == "<") $skip=1; elseif ($char == ">") $skip=0; elseif ($char == " ") $wrap=0; if ($skip==0) $wrap=$wrap+1; $returnvar = $returnvar . $char; if ($wrap> // alter this number to set the maximum word length { $returnvar = $returnvar . "<wbr>"; $wrap=0; } } return $returnvar; } after using this when i try to validate my page in http://validator.w3.org i get this error Line 124, Column 38: end tag for "wbr" omitted, but OMITTAG NO was specified <td width="15%">sdfasdfsdfadfddfdfsafasd<wbr>a</td> ✉ You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". what is the fix for this?
  10. ah nevermind thanks soo much bro i got it if $pageName == 'categories' && $title == 'Birds & Bees' :-D really appreciate u giving ur time trying to help me out.
  11. lol no mate not that :-D i want if(name in $title == 'Birds & Bees'){ echo '<meta name="description" content= "Some description for birds and bees." />'; }else if (name in $title == 'Money & Honey'){ echo '<meta name="description" content= "Some description for Money & Honey." />'; }else{ echo '<meta name="description" content= "Default description." />'; } the issue is getting matching names Money & Honey or Birds & Bees from $title
  12. well in categories.php i set a name as $pageName = 'categories'; the the links to categories goes like index.php?category=birds_bees or index.php?category=honey_money and i set it in a variable like $title = $_REQUEST['category']; so with every different link the category name changes now i want to match those words which are preset like honey and money or birds and bees and the change page description, what option do i got?
  13. but both the titles 1. Birds & Bees and 2. Money & Honey comes from $pageName == 'categories' so how else can i find these two matching strings in titles ?
  14. sorry i do not get you. its not with the pagename the issue is with matchin titles and change the <meta description accordingly.
  15. so i set names for every pages, like $pageName = 'home'; //index page if($pageName == 'categories'){ $find = "Birds & Bees"; $result = strpos($title,$find); echo '1'; }else if($pageName == 'categories'){ $find1 = "Money & Honey"; $result = strpos($title,$find1); echo '2'; } now the issue is with categories.php page, which is just one page but displays different title and according to matching title i wish to change the description but its not happening, everywhere only 1 prints, why?
  16. did that but in my form gape nothing is displaying stored in variable but if i put message like echo "submitted"; that does show the message in the form page but in head section
  17. i know it would be something like $message = ""; $message = "submitted successfully"; but how am i to fetch it?
  18. the executeSql is for database connection, how can i store the message in variable and display it in other page?
  19. i can get it done by redirecting but i want to get the message within the same page without success page, is it possible?
  20. how can i disply this message withing the form echo "data submitted successfully!"; currently after validation check when data is entered the message show on top of my page not within the form function insertDATA($postData) { if(!ifEmailExists($postData['email'])){ $sql = " INSERT INTO tbl SET email = '".$postData['email']."', name = '".$postData['name']."', phone = '".$postData['phone']."' "; echo "data submitted successfully!";//this line withing the form executeSql($sql); }
  21. lol this time solved :-D issue was the else i should not have used that :-)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.