Jump to content

sonita

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by sonita

  1. i send for you a PM ,please read and answare me.thanks
  2. i can't put attch file and image`s my contact page in my web, beacase I have enough space to put the pictures uploaded here, I do not.See you and you understand why i turn off all reporting .please give me the your`s email address ,and i send for you,and see you,then see you, you answare me. & help me? can you give me your`s email please? i wait....
  3. Now what do I do to run the code without error؟how i do?Should I remove it? If I delete what I write instead?please help me
  4. i download code for php contact form with captcha , ii exe but with this errorerror is :SCREAM:Error suppression innored for -Notic: use of undefined constant E_NONE -assumed 'E_NONE' in .... line11 what`s meaning above error? how do i? why showing this error?this code is my contact form code: <html><head><meta charset="utf8"/><title></title><link rel="stylesheet" type="text/css" href="style.css"/></head><body><?phpsession_start();ob_start();ini_set('error_reporting', E_NONE);$php_self = $_SERVER['PHP_SELF'];// on submitif( isset($_POST[name]) && isset($_POST[email]) && isset($_POST[message]) && isset($_POST[captcha]) ){ $name = $_POST[name]; $email = $_POST[email]; $message = $_POST[message]; $captcha = $_POST[captcha]; $error = 0; // name if( $name == "" ){ $error ++; $error_name = "class='error'"; } // email if( $email == "" ){ $error ++; $error_email = "class='error'"; } // message if( $message == "" ){ $error ++; $error_message = "class='error'"; } // captcha if( $captcha == "" || $captcha != $_SESSION[captcha]){ $error ++; $error_captcha = "class='error'"; } // no error, send email if( $error == 0){ // your email address $address = "your-email-address@domain.com"; // email subject $subject = "New message"; // email content $content = "<strong>Name:</strong><br/>$name<br/><strong>Email address:</strong><br/><strong>Message:</strong><br/>$email<br/>$message"; // html email $email_content = "<!doctype html><head><meta charset='utf-8'><title>".$subject."</title>"; $email_content .= "</head><body>"; $email_content .= $content; $email_content .= "</body></html>"; // headers for html email $headers = 'MIME-Version: 1.0' . "/r/n"; $headers .= 'Content-type: text/html; charset=utf-8' . "/r/n"; $headers .= "From: 1stWebMagazine.com <web@1stwebmagazine.com>" . "/r/n"; // send email mail($address, $subject, $email_content, $headers); // reset variables $name = ""; $email = ""; $message = ""; $mail_sent = 1; }}// captcha$num = rand(1, 20);$num2 = rand(1, 9); $verif = $num . "+" . $num2;$_SESSION[captcha] = $num + $num2; if( $mail_sent == 1 ){ echo "<h1>Thank you for your message! We'll be in touch soon.</h1>";} else { echo " <form action='".$php_self."' method='post'> <p><strong>Name:</strong> <span class='required'>*</span></p> <input type='text' ".$error_name." name='name' value='".$name."'> <p><strong>Email address:</strong> <span class='required'>*</span></p> <input type='email' ".$error_email." name='email' value='".$email."'> <p><strong>Message:</strong> <span class='required'>*</span></p> <textarea ".$error_message." name='message'>".$message."</textarea> <p><strong>How much is ".$verif."?</strong> <span class='required'>*</span></p> <input type='text' ".$error_captcha." name='captcha' value=''><br/> <button>Send</button> </form>";}ob_end_flush();?></body></html> please help me. thanks
  5. thanks alot ,it exe without error.it`s corectthanks terryds ,
  6. helloi change above code as follows:this is code: <?php require_once 'config.php'; ?><?phpfunction DisplayPath($cat_id) { error_reporting(E_ALL); mysql_connect('localhost', 'root', '') or die('Connection error'); mysql_select_db('keivandb') or die('Database error'); mysql_query('SET NAMES\'utf8\''); mysql_set_charset("utf8"); $cat_id = mysql_real_escape_string($cat_id); $category = mysql_query("SELECT * FROM categories WHERE id={$cat_id} LIMIT 1"); $nav = '';$name="";$id="";$parent="";while($x = mysql_fetch_array($category)) { $name= $x['name']; $id=$x['id']; $parent=$x['parent']; }$cat="categories"; if($category && mysql_num_rows($category) > 0) { $category = mysql_fetch_assoc($category); do { //$nav = '<a href=\" ' . ADDR . '/categories/' . $category['id'] . '/' . $category['name'] . ' \">' . $category['name'] . '</a> -> ' . $nav; $nav = "<a href=\"http://localhost/test1/{$cat}/{$id}/{$name}\" >{$name}<a>"; echo $nav; $parent = mysql_real_escape_string($category['parent']); $category = mysql_query("SELECT * FROM categories WHERE id={$parent} LIMIT 1"); if($category && mysql_num_rows($category) > 0) { $category = mysql_fetch_assoc($category); } else { echo mysql_error(); } } while (is_array($category)); $nav = mb_substr($nav, 0, mb_strlen($nav, 'utf-8') - 7, 'utf-8'); } else { echo mysql_error(); } echo '<b>دسته بندی:</b>' . $nav; //echo '<b>دسته بندی:</b>' . $nav . PHP_EOL();}?> when exe it show this error (error: you have an error in your SQL syntax; check the manual that corresponds to your MYSQL server version for the right syntax to use near 'LIMIT1' at line 1) what`s meaning error? What can I do to avoid error and run this code?please help me.
  7. I put a space in the SET NAMES & again run but don`t show.i write this query because :I am iranian & my language is presion ,So it should accept my language & utf8`s language . and show they.but i don`t why change this query? how?What do I have to run this code? What changes can I add to it? Until I see the results on my website.please help me & explain with example for me.
  8. I add that code(you say) to the top of the function but show nothing error or message .how do i now? :(I put a code sample that I might test runs,please
  9. nothing error, only my page without this iswhy?how do i? please help me ,very very important.
  10. hello Is there something like this in your website.w3schools Fourm -->Server Scripting -->PHP I wish I had something like this on my website. and I have written the code as follows: <?php function DisplayPath($cat_id){ mysql_connect('localhost','keyvandb','') or die('connection error'); mysql_select_db('keyvandb') or die('Database error'); mysql_query('SET NAMES\'utf8\''); mysql_set_charset('utf8'); $cat_id=mysql_real_escape_string($cat_id); $category=query("SELECT * FROM 'categories' WHERE('id'='{cat_id}') LIMIT 1"); $nav=''; if($category && mysql_num_rows($category)>0){ $category=mysql_fetch_assoc($category); do { $nav= '<a herf=" '.ADDR.'/categories/'.$category['id'].'/'.$category['name'].' ">'.$category['name'] .'</a> -> '.$nav; $parent=mysql_real_escape_string($category['parent']); $category =query("SELECT * FROM 'categories' WHERE('id'='{$parent}') LIMIT 1"); if($category && mysql_num_rows($category)>0){ $category=mysql_fetch_assoc($category); } } while (is_array($category)); //remove the last -> $nav=mb_substr($nav,0,mb_strlen($nav,'utf-8')-7,'utf-8'); } echo '<b>دسته بندی:</b>'.$nav.PHP_EOL(); } ?> but don`t exe? why? and i save myinformation in DataBase . please help me?
  11. helloI have a web site that referred you've downloaded from the context menu that I have used.But I was in the middle of the page.(please look at the attch file.) I want to be right., How?and this is css code for menu: #menu a,#menu a:visited {position:relative;text-decoration:none;text-align:center;color:#fff;display:block;background-color:#9ab;width:10em;border:2px solid #fff;border-color:#def #678 #345 #cde;padding:0.25em;margin:0.5em auto;}#menu a:hover{top:2px;left:2px;color:#fff;border-color:#345 #cde #def #678;}As well as vertically placed. how?I'd like to change the code but don`t know ? please help me.
  12. hello I want the vertical menu with horzintal sub menu for my website with css&html. I've search But I did not .I'm using the menu on the right side of my website pages. but don`t know? please look at this image (attach file)this image is a my header for my website I've been selected to take part in the vertical menu in my webpage. don`t know? How do I create my menu with HTML &CSSAnd where I've chosen, I will?please help me
  13. hello I download a javascript photo gallery(lightbox) and use my web but it`ve problem.this problem is: No pictures and buttons below the picture box is not displayed.Like the picture belowwhy?how do i? What I do is right. please help me.
  14. helloIf you like this gallery, I want to make a website, how should I write the code?http://sandbeschichtung.de how should i do?
  15. I want the gallery to an electronics store.Show thumbnails of images on a page, then click on the image to enlarge it with relevant content to be displayed. For example, the price of the product, material, and other items related to the product ....What do I do to make photo gallery for my website?I would like the following website:http://www.lzjindun.com/en/index.aspx
  16. nothing ,only white pageI have written a web form with wrapper,
  17. hello myweb need a image gallery for introduction myproduct to the customer. I like the pictures on my web pages to be:Pictures as a thumbnail in my home and when I click on it, the image another page with content relevant to veto a larger picture displayed beThis is my code but it does not run the picture does not show <?php $flag = true; $vars = array('height', 'width', 'items'); foreach($vars as $var){ if(!isset($_GET[$var]) || $_GET[$var] == '' or !is_numeric($_GET[$var])){ $flag = false; } } if(!$flag) { header('location: main.php'); exit(); } $thumbs = scandir('thumbs'); foreach($thumbs as $thumb) { $ext = pathinfo('thumbs/' . $thumb, PATHINFO_EXTENSION); if(strtolower($ext) == 'jpg') { unlink('thumbs/' . $thumb); } }$images = scandir('images'); foreach($images as $image) { $ext = pathinfo('images/' . $image, PATHINFO_EXTENSION); if(strtolower($ext) == 'jpg') { $src = imagecreatefromjpeg('images/' . $image); $dst = imagecreatetruecolor($_GET['width'], $_GET['height']); imagecopyresized($dst, $src, 0, 0, 0, 0, $_GET['width'], $_GET['height'], imagesx($src), imagesy($src)); imagejpeg($dst, 'thumbs/' . $image, 100); imagedestroy($src); imagedestroy($dst); } } echo '<table border="0px" width="75%">' . PHP_EOL; $thumbs = scandir('thumbs'); $count = 0; foreach($thumbs as $thumb) { $ext = pathinfo('thumbs/' . $thumb, PATHINFO_EXTENSION); if(strtolower($ext) == 'jpg') { if($count == 0) { echo '<tr align="center" valign="middle">' . PHP_EOL; }echo '<td>'; echo '<a href="' . ADDR . '/images/' . $thumb . '">'; echo '<img src="' . ADDR . '/thumbs/' . $thumb . '"/>'; echo '</a>'; echo '</td>'; $count++; if($count == $_GET['items']) { echo '</tr>' . PHP_EOL; } } } if($count !=0 ){ while($count < $_GET['items']) { echo '<td> </td>'; $count++; } echo '</tr>' . PHP_EOL; } echo '</table>' . PHP_EOL;?> why?What can I do to show my pictures as I said above.My website is an e-store, and the gallery is so that I can use on this web site. but i don`t know?
  18. hello?My website is in an electronics store, and I need a shopping cart and very very important. How to write the code. And I use it.
  19. HiI'm a monotony in the product order form that I want her but I do not know how to add a shopping cart e? I mean, I want to see the same page when customer product Vantkhabsh same page in order to add the product to the shopping cart to calculate Vqymtsh anymore.And as the first step would be to add product to cart -> calculate the price -> Complete Customer Profile Form -> approve the final recording -> to a client code (Kdrhgyry) to track product specifications by filling in the form. the customer for printing.But I do not know how and in what way.Please hlep me and teachs meThank you
  20. hello Wrapper template I've made with my website.I want to open all the pages of my website home page but do not know how to adjust all the Web pages on my site home page(index.php or index.html) opens.What should I do. And what code to use.Please advise me and I will answer.
  21. Does not anyone answer my question?Why..? :( I'm waiting for an answer.Please also give me the answer. pleasssssssssssssssssssssssse
  22. hello I've used this menu in all pages of my website. (ZIP file), but the actions of my website is cluttered text.I want to display menus, pictures and text on the right side should be Vnmy know how I set it.I've attached a zip file to your actions as you can to help me get comfortable. I've just started to read Vnmy css code I'm using that setting.Please send your lead., I need your help is very important.What do I need to be right. Kindly let me explain with an example of css?You're welcome. tanks
  23. hello this image(attach file) is header for my website. I have a header on all pages of monotony.But I do not know how to set it on top of the pages are.Please help me and if possible give me a css code for it. tanks I'm waiting.
  24. Please explain further and give an example? I do not understand.
×
×
  • Create New...