No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
If is set per_page 2 records I am getting these 2 records in page but if I click next page I am not getting remaining records in next page please anyone help me. <?php @session_start(); include 'connections.php'; $button = $_POST['submit']; $search = $_POST['searchvalue']; $name = $_POST['name']; if(strlen($search)<=1) { echo "Search … |
|
hi I am trying to develop a code for sending friends request and accept or reject, please anyone help me how do I do this? where can I get reference script for this? |
|
I have code like below <?php if(true){ global $search; $search = "hello"; } elseif(true) { echo $search; } ?> I am unable to access $search value from if() block to elseif() block, is my approach is wrong? please anyone tell me any other way to access variables from one block … |
|
html form // This is the dynamic drop down menu <form action="search.php" method="post"> <?php $select_query = "Select distinct category from books"; $select_query_run = mysql_query($select_query); $select_query_array = mysql_fetch_array($select_query_run) ; $cat = $select_query_array['category']; echo "<select name='name'>"; while ($select_query_array= mysql_fetch_array($select_query_run) ) { echo "<option value='".htmlspecialchars($select_query_array["category"])."' >".htmlspecialchars($select_query_array["category"])."</option>"; } echo "</select>"; ?> // search field … |
|
I have a database table named with books. it consists of something like below ex database given below, user is trying to search the value by author or title and based on category ex: if user search for adapt by selecting fiction need display both adapt and adaxx below is … |
|
if query passed in search box by selecting the category as fiction or whatever it may be, it should search in both title and author, if value got in title then no need to search in author, if not need to search in author, $search = $_POST['searchvalue']; //assume search value … |
|
'HTML' form <form action="result.php" method="POST"> <input type="search" name="query" size="10" id="searchfield" title="searchfield" /> <input type="submit" name="Search" value="" alt="Search" id="searchbutton" title="Search" /> </form> result php file <?php @session_start(); include 'connections.php'; if (isset($_POST['query']) && $_POST['query'] != "") $query = $_POST['query']; $min_length = 1; if(strlen($query) >= $min_length) { $query = htmlspecialchars($query); $query = mysql_real_escape_string($query); … |