Ejemplo n.º 1
0
call_user_method_array();
define_syslog_variables();
dl();
ereg();
ereg_replace();
eregi();
eregi_replace();
import_request_variables();
mcrypt_generic_end();
mysql_db_query();
mysql_escape_string();
mysql_list_dbs();
mysqli_bind_param();
mysqli_bind_result();
mysqli_client_encoding();
mysqli_fetch();
mysqli_param_count();
mysqli_get_metadata();
mysqli_send_long_data();
magic_quotes_runtime();
session_register();
session_unregister();
session_is_registered();
set_magic_quotes_runtime();
set_socket_blocking();
split();
spliti();
sql_regcase();
php_logo_guid();
php_egg_logo_guid();
php_real_logo_guid();
Ejemplo n.º 2
0
		<!-- Latest compiled and minified JavaScript -->
		<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
		
		<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script>
		<script type="text/javascript" src="https://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
			
	</head>


<body>
<?php 
if (isset($_POST['submit'])) {
    if (isset($_GET['go'])) {
        if (preg_match("^/[A-Za-z]+/^", $_POST['name'])) {
            $name = $_POST['name'];
            include 'connection.php';
            $sql = "SELECT opportunityID, opportunityName, opportunityCity, opportunityDescription,opportunityStartDate,opportunityEndDate, agencyName  FROM opportunity, agency WHERE  opportunityName LIKE '%" . $name . "%'  OR agencyName LIKE '%" . $name . "%'";
            $result = mysqli_query($mysqlConnection, $sql);
            while ($row = mysqli_fetch($result)) {
                $id = $row["opportunityID"];
                echo "\n     \t<li class='list-group-item' >\n     \t\t<a href = \" search.php?id= {$id} \">\n      \t\t<h3 class='list-group-item-heading'><strong>" . $row["opportunityName"] . "</strong></h3>\n      \t\t<h4 class='list-group-item-heading'>" . $row["agencyName"] . "</h4>\n      \t\t<h6 class='list-group-item-heading'>" . $row["opportunityCity"] . "</h6>\n      \t\t<h6 class= 'list-group-item-heading'> Start Date: " . $row["opportunityStartDate"] . "     End Date: " . $row["opportunityEndDate"] . "  </h6>\n      \t\t<p class='list-group-item-text'>" . $row["opportunityDescription"] . "</p>\n    \t</li>";
            }
        }
    } else {
        echo "<p>enter stuff please</p>";
    }
}
?>
</body>

</html>