39,393 Topics
![]() | |
if i insert more than one its taken only one value.database field city_id type is int $city=intval($_GET['city']); $query="SELECT `city_id`, `city` FROM `cities` WHERE `state_id`='$city'"; $result=mysql_query($query); while($row=mysql_fetch_array($result)) { ?> <li> <input type="checkbox" name="place[]" value="<?=$row['city_id']?>" /><span><?=$row['city']?></span> </li> <? } ?> $ids = array(); foreach($_POST['place'] as $val) { $ids[] = (int) $val; } … | |
I am trying to setup virtual wamp localhost. Localhost root folder: c:\wamp\www mysite.local root folder: c:\wamp\site2 Steps of every kind is already taken: removing # from file "httpd.conf" #Include conf/extra/httpd-vhosts.conf addition in httpd-vhosts.conf: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot "c:/wamp/www" ServerName localhost ErrorLog "logs/localhost-error.log" CustomLog "logs/localhost-access.log" common </VirtualHost> <VirtualHost *:80> DocumentRoot … | |
Hello Community, I was wondering if there is a way to make dynamic email address that'll look like this example example_name1@subdomain.example.com or example_name2@subdomain.example.com the subdomains have been created using .htaccess and a wildcard subdomain. So the "example_name" and "subdomain" would be created dynamically. So can this be done using .htaccess? … | |
Hello, I have stored values in database via html and php form. Now I am creating form which will enable users to edit inputs. I am having trouble with input types radio and checkboxes. I have stored checkboxes values in database via implode function. ----- $products_rec=$_POST['products']; $products=implode(", ", $products_rec); ----- … | |
Hi All, I am currently trying to update a check box . Then pass the data back through the same page and if set update DB. The code is long so I shall be as concise as possible. I have pulled the data from the DB and I am using … | |
Hi, so im reading the password_hash() docs and wondering what the 'cost' is for? | |
I have the following code,I have created a form for attemting a scheme of changing the password for the user. i have hashed my password and stored it in the database. Now in the database it looks like, "980a3a0b40df9a1". Whenever i enter the changed password in the form it throws … | |
I had noticed a lot of returned mails with spam content arriving daily. i renewed the old mailing scripts (which was overdue) to include jquery clientside(irrelevant i know) and serverside switched to phpmailer adding a captcha as well as the existing honeytrap that i had before. now although less im … | |
Hello, i am facing a little problem. my website page logo is cut a half mm when i use my 1366 x 768 screen resolution, win7, 64bit laptop and is not cut when i use my 1920 x 1080, win8, 64bit screen resolution laptop. Both using the same php code … | |
how to execute a php file after every half n hour without using schedular (cron jobs). i need to upload pdf files automatically from system to server after every half n hour.but without using cron jobs.Please help | |
I have my php page, in which i have 3 fields old pass, new pass, confirm new pass. I'm trying to chnge the password of my id from which i am logged in. The program first check in the database and change the password of the logged in user. I … | |
I am new in Wordpress. I have installed a plugin "Infinite Scroll". When I scroll down the page to load new articles into the page, a message appear "Loading...". I have tried to translate the message in admin panel, but that was not a translation, just a replacement of the … | |
Hello, I have multidimentional array. like: $skill_array={ Database,test db skill 2,0,1,2014-Mar,ZCZC,1 Framwork,test fm skill,0,1,2014-Mar,axaxax,0 Networking,test db skill 2,0,1,2014-Mar,yt89887i,1 Database,test db skill 2,0,1,2014-Mar,hkjk,0 } while showing this table in UI in javascript, I want to show table in sorted format of 0th index. i.e in above example, it should come as … ![]() | |
I have two table data as: - table Classifieds id | title | body | city | district| - table Locations id | label Relationship City of table Classifieds is Id two Locations Now I want using Fulltext Search when users enter keyword (title, body, label(USA, Canada...)) then it will … ![]() | |
![]() | i dont know why but somehow my files are being upload to the server folder but not stored within db <?php include_once("conninfo2.php"); error_reporting(E_ALL); $usid = 1; if(isset($_FILES['files'])){ $query = "INSERT into files(`filename`,`fsize`,`ftype`,`uploadtimest`, `usid`) VALUES(:filename,:fsize,:ftype,now(), :usid)"; $stmt = $db->prepare($query); $errors= array(); foreach($_FILES['files']['tmp_name'] as $key => $error ){ if ($error != UPLOAD_ERR_OK) … ![]() |
Hi, I am a beginner at programing and I have to do this project where it is asking me to valid ISBN 10 and 13 using MySQL database to store the information. I checked my php code to validate ISBN 10 and 13 and it works, but when I try … | |
Having problems with a malware I had to reinstall Win7 OS with recovery mgr.After I had to reinstall all my web development tools such as Visual Basic Express 2008, Visual Web Developer Express 2010, SQL server express 2008, MySql, Workbench.I cannot reinstall PHP and PhpMyAdmin no matter what I try. … | |
Please help with this...say we have few subdomains domains on same server. blog.robots.com chat.robots.com forum.robots.com forum.robot.com generates the session id of a user. I want to share this session id with other domains....blog,chat... All for the purpose of not letting the user login twice on this domain How can I … | |
![]() | Hi i am reworking on my password security on the register page so far it is okay apart from the fact that im getting this error: Fatal error: Call to a member function create() on a non-object ` $bcrypt = new Bcrypt; try { $email1->create(array( ` 'username' => Input::get('username'),` 'password1' … ![]() |
i have a pagination code but that one is for single page,becaz in that url was changed. so if i add 2 or 3 pagination in single page that url was not changed. someone help me | |
Dear team, I am facing difficulties to validate the below format. I want regular expression needs to be satisfied with the below condtion. $pattern = '/^\w[\w\s\.\%\-\(\)\[\]]*$/u'; $file_name = "(00)filename.jpg"; if(preg_match($pattern,$file_name)){ echo "Pattern matched"; }else { echo "Pattern not matched"; } I have tried several ways. But, the main problem is … | |
hi guys so this page where part of the form elements are made arrays by adding square brackets to the input names. the reason i did that is because that part of the form is handled in jquery [this post(my post about jquery)](http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/478800/show-form-elements-based-on-dropdown-value) if you take a glimpse will understand … ![]() | |
Hi guys, I need your help. I have .xml file in download directory on my server. whoever visit my site page (Myxmlfilename.xml) user should be able to download these files and other files should not. I am trying to achieve above but no luck... does anyone know how I can … | |
how to edit in the post in php? i m using update query but no working? can anyone suggest me any idea and please give me suitable example ![]() | |
I have this form to send an email and the visitor can send an attachment with his email as will everything gos well the email sent but the attachment comes to the email like this if he uploaded any C.V the C.V will be attached to this Email --_1_c4fe3315ccb7d6076c71d64ec5265ecc Content-Type: … | |
Hello I faced this type of Error in codeigniter. Can you suggest me any solution... *ERROR : You must use the "set" method to update an entry.* In Model Code is.. $this->db->where('user_id',$user_current_id); $this->db->update('admin_resume_expertise',$data); Thank YOu | |
Simple JSONReader code not working I am trying to use JSONReader (along with PHP & XPATH) to parse a very large JSON file, then display search results. A stream parser (such as JSONREader) is recommended over JSON_decode when parsing large files. This simple code below is not displaying any results … ![]() | |
hi there ; I want to search for student from my database using select method , like you choose the ID then it shows ID search Textbox and go on ... how can i do it ![]() | |
Hi i want pattern for checking no white space. ![]() | |
i have a registration form which code are below <html> <head> </head> <body> <table width="350" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><form name="form1" method="post" action="user_reg_get.php"> <table width="100%" border="0" cellspacing="4" cellpadding="0"> <tr> <td colspan="3"><strong>Sign up</strong></td> </tr> <tr> <td width="76">Name</td> <td width="3">:</td> <td width="305"><input name="name" type="text" id="name" size="30"></td> </tr> <tr> <td>E-mail</td> <td>:</td> <td><input … |
The End.