hello
please help me
first question :
how can send email for users if him register in my website"i saved email in database" ,, send one Time a day Automatic ..

second question :
how can search in database then display for user

thanks alot

  1. Setup a cronjob which runs a script that uses mail()
  2. Use mysql_query()

can you write simple php code please

Try yourself first. If you have issues, post your code and your problems, errors or questions.

my code

<html dir="ltr">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="95%">
 <!-- MSTableType="layout" -->
 <tr>
 <td height="95%" width="100%">
 <!-- MSCellType="ContentBody" -->
 <div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="679" height="105">
 <!-- MSTableType="layout" -->
 <tr>
 <td valign="top" align="center" height="105" width="679">
 <!-- MSCellType="ContentBody" -->
 <style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-bottom" style="background-color:#FFFFFF;color:#000000">
 <div class="cse-branding-form">
 <form action="result_search.php" id="cse-search-box">
 <div>
 <input type="hidden" name="cx" value="004678382121131491660:u-hqpouhrja" />
 <input type="hidden" name="cof" value="FORID:10" />
 <input type="hidden" name="ie" value="UTF-8" />
 <input type="text" name="q" size="98" />
 <p align="center">
 <input type="submit" name="sa" value="Search" />
 </p>
 </div>
 </form>
 </div>
 </div>
 </div></td>
 </tr>
</table>
</div>
 </td>
 </tr>
 </table>

</body>

</html>

---------
search_result page

<html dir="ltr">
<body>
<table border="0" cellpadding="0" cellspacing="0" width="1121" height="212">
 <!-- MSTableType="layout" -->
 <tr>
 <td height="108">
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-bottom" style="background-color:#FFFFFF;color:#000000">
 <div class="cse-branding-form">
 <form action="search_result.php " cse-search-box">
 <div>
 <input type="hidden" name="cx" value="004678382121131491660:u-hqpouhrja" />
 <input type="hidden" name="cof" value="FORID:10" />
 <input type="hidden" name="ie" value="UTF-8" />
 <input type="text" name="q" size="78" /> <input type="submit" name="sa" value="Search" />
 </div>
 </form>
 </div>
</div>
</td>
 </tr>
 <tr>
 <td valign="top" width="1121" height="104">
 <!-- MSCellType="ContentBody" -->
 <div id="cse-search-results">
 <p></div>
<div id="cse-search-results"></div>
<script type="text/javascript">
 var googleSearchIframeName = "cse-search-results";
 var googleSearchFormName = "cse-search-box";
 var googleSearchFrameWidth = 980;
 var googleSearchDomain = "www.google.com";
 var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>

</td>

 </tr>
 </table>
</body>

</html>

---

Member Avatar for diafol

This is just some HTML and js. What about the php? What bit of your php is causing problems?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.