39,393 Topics
![]() | |
php code to block login of a user for 15 minutes after 3 failed attempts... please | |
<select> <option value="1">one</option> </select> now i want to get 1 and "one" both using php..so plz reply me | |
Hi I made a page which check the login information if it is true or not but the code didn't work there is no errors just empty page ! <?php session_start(); ?> <html> <head> <meta http-equiv="content" content="text/html" charset="UTF-8" /> <title>Login checking</title> </head> <body> <?php require_once('inc/config.php'); $username = $_POST['username']; $password = … | |
Hi there, I'm not a developer. I'm a graphics designer. I would like to learn about web development. For that I'm doing research in different languages. Most of them suggested PHP and Python. I know little about PHP. But Python I don't rightly know. Tell which one I can go … | |
$result123=mysql_query("select *from semdropdown"); <td><label for="textfield8">Semester </label></td> <td colspan="3"><select name="semester" value="<?php echo $semesterid; ?>"> <option value="">Select Semester</option> <?php while($row123 = mysql_fetch_array($result123)) { if($semesterid == $row123[semesterid]) { $selvar = "selected"; } echo "<option value='$row123[semesterid]' ". $selvar . ">$row123[semesterkey]</option>"; $selvar =""; } ?> </select> </p> <p></p></td> </tr> $result123=mysql_query("select *from semdropdown"); <tr> <td><label for="textfield8">Semester … | |
Hi I woluld lik to add date in my script. The date should not display just write it in my ip.txt like lis ip-Date <?php $ip=$_SERVER['REMOTE_ADDR']; $date= new DateTime("Y-m-d H:i:s"); $file = fopen('ip.txt','a+') or die("can't open file"); fwrite($file,$ip."\n"); echo "Your IP Address Saved: $ip\n"; echo $date->format('Y-m-d H:i:s'); ?> | |
Hi I'm working on a registration system and I've faced a problem with checking if the email is already inthedatabase this is my checking code $sql = "SELECT * FROM users WHERE email='".$email."'"; $result = mysql_query($sql); $row1 = mysql_fetch_assoc($result); $row1['email']; if($email = $row1['email']) the problem is that when I put … | |
Hello, guys.. I am actually working on a project. I can't figure out how to limit the displayed content on a table of a particular data. I have a table (tblservices) that have fields (service_id, service_name, service_content, date_created).. *the service_name* is the title of the service, *service_content* is the whole … | |
how to insert date in table by using datepicker jquery? my jquery code is as: <script language="JavaScript" type="text/javascript"> $(function() { $( "#date" ).datepicker(); }); </script> in html <tr colspan="2"> <td valign="top" align="left"> Date<font color="red">*</font></td> <td valign="top" align="left"> <input type="text" id="date" name="date" value="" readonly="readonly" autocomplete="off" size="20"> </td></tr> | |
Hi, i'm trying to select two values from my database. $nc ='North Carolina'; $t ='Hello'; $q = 'SELECT COUNT(state, title) AS c FROM all WHERE state = "' . mysql_real_escape_string($nc) . '" AND title = "' . mysql_real_escape_string($t) . '"'; $rq = mysql_query($q); $fetch = mysql_fetch_assoc($rq); $count = $fetch['c']; echo … | |
hello Dany web friends how to use cookies session in php, how to insert cookie in database table to rember user, i would like to rember what page a user viewed on my website... and i think i can use cookie for SESSION but i don't know how to use. | |
![]() | I made a new MySQL table in Phpmyadmin in Wordpress in the same database from Wordpress but a new table. I want to make a new page and add a script in the body that allows: 1. when i insert the page title to the new page, the script should … ![]() |
Hi I have a problem with uploading files in php, and I don't know what is wrong :( this is my code : <?php //require_once('inc/config.php'); ?> <html dir="rtl"> <head> <title>تسجيل شركة جديدة</title> <meta http-equiv="content" content="type/text" charset="UTF-8" /> </head> <center> <form action="register.php" method="POST" enctype="mulipart/form-data"> <input type="text" name="username" placeholder="اسم المستخدم" /><br /> … | |
Below are 2 functions that will handle the Query and rending of the menu from MySQL Database. This function Loops through the array. Takes in 2 arguments. function loop_section($array, $parent_id = 0){ echo '<ul>'; foreach($array as $section){ echo '<li>'; echo $section->section_name; echo '</li>'; } echo '</ul>'; } This function handles … | |
Create a username that's at least 6 characters.It may include uppercase and lowercase letters. Usernames are case-sensitive. It also must include either:at least one number; or one of these symbols:_@/- | |
regular expression that accept only letters OR numbers. | |
hello can i have featured content slider dynamilcally??? if yes thn how??? | |
Hello i will ask directly with out explaining, how can i close this echo ??? <?php echo "<div class='date'> date("Y/m/d"); </div>"; ?> It gives me some error like `Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/a5834708/public_html/index.html on line 149` Thanks :) | |
Hello, I'm having a problem with my code. It seem to only echo out the picture name from my database and not the picture. This is my code search.php $result = mysql_query("SELECT * FROM all WHERE (`title` LIKE '%".$query."%') OR (`add_type` LIKE '%".$query."%')") or die(mysql_error()); if(mysql_num_rows($result) > 0) { while($results … | |
Hello. I am beginning to re-develop a small database using PHP/MyQL; I have already sucessfully done this a year ago but no longer have access to the machine, code or credentials. It worked great! But now, I'm rebuilding it. The test site (PHP) seems to be fine. I see no … | |
Hello there, I'm searching for a office intranet script which includes: **My Blog** : Blog Post By Internal Writer Or External Sources **My Docs** : Important Docs (product Notes, Company Profile, Faq) **My Task** : Task & Projects Assigned & Progress **My Hr** : Who Is Who With Email Address, … | |
hi i am currently working with php which requires registration once the user registers with his/or her details then an email is sent to the user for activation once the link is clicked the account is activated this works perfectly but the question is how do i expire the link … ![]() | |
I have <?php $args = array( 'posts_per_page' => 5, 'offset' => 0, 'category' => '', 'orderby' => 'post_date', 'order' => 'DESC', 'include' => '', 'exclude' => '', 'meta_key' => '', 'meta_value' => '', 'post_type' => 'ait-dir-item', 'post_mime_type' => '', 'post_parent' => '', 'post_status' => 'publish', 'suppress_filters' => true ); $myposts … ![]() | |
Somebody can help me. I'm new in php and highcharts. I tried to populate my chart using mysql and php, but when I tried to run it, the chart didn't appear, only a blank web page. And there's no error appeared. Her's my codes (sorry for messy code): <!DOCTYPE HTML> … | |
can anyone tell me the code for custom search of own website..i want to put code in my site for searching the comtent within the site... thanks n advance... | |
Hi Frendz, I need to integrate collabrative editor in my application as code editor with socket programming. Kindly suggest me your thoughts. | |
Hi Guys , I couldnt dispay sum of a column of sqlite database in php . I tried the sql statement in database its working fine but not sure how to dispay the result in PHP . I belive i need to fetch it and then dispay any help will … | |
Hello Every one i have samll Problem Here iam using codegniter and i have template that i use in all my views in some page i afound that i can use grocery crud as it will make it easer to show and it will give better look , as iam … | |
Hi, I need online quiz script written in php with full source code for my course project. Please help me. Thanks | |
anybudy tell me how to send forget password mail to users mail id saved in database ![]() |
The End.