38,019 Topics

Member Avatar for
Member Avatar for malatamil

register.php register form <div class="regform"> <table border='0'> <tr> <td align="right"><label>Are you an :</label></td> <td class="register"> <input type="radio" value="Individual" name="are_you">Individual Or <input type="radio" value="Business" name="are_you">Business ?</td> </tr> <tr> <td align="right"><label for="login_username">Username :</label></td> <td><input type="text" name="username" id="login_username" class="input" placeholder="Please provide your username" /></td> </tr> <tr> <td align="right"><label for="login_password">Email :</label></td> <td><input type="text" name="email" …

Member Avatar for malatamil
-1
437
Member Avatar for malatamil

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; } …

Member Avatar for malatamil
0
19K
Member Avatar for Alpha00005

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 …

Member Avatar for ko ko
0
314
Member Avatar for joshl_1995

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? …

Member Avatar for joshl_1995
0
677
Member Avatar for Dzenad

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); ----- …

Member Avatar for Dzenad
0
402
Member Avatar for davidjennings

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 …

Member Avatar for davidjennings
0
961
Member Avatar for nadiam
Member Avatar for nadiam
0
96
Member Avatar for engrjd91

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 …

Member Avatar for engrjd91
0
245
Member Avatar for edbr

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 …

Member Avatar for edbr
0
124
Member Avatar for missy_mi

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 …

Member Avatar for missy_mi
0
168
Member Avatar for chaitu11

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

Member Avatar for almostbob
0
554
Member Avatar for engrjd91

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 …

Member Avatar for engrjd91
0
652
Member Avatar for eburlea

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 …

Member Avatar for mattster
1
240
Member Avatar for Priti_P

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 …

Member Avatar for diafol
0
299
Member Avatar for daocntt

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 …

Member Avatar for diafol
0
326
Member Avatar for roxanne.martos

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) …

Member Avatar for diafol
0
221
Member Avatar for ray100

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 …

Member Avatar for ryantroop
0
450
Member Avatar for Fiorentino01^

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. …

Member Avatar for Fiorentino01^
0
257
Member Avatar for kindo

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 …

Member Avatar for broj1
0
220
Member Avatar for roxanne.martos

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' …

Member Avatar for roxanne.martos
1
216
Member Avatar for malatamil

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

Member Avatar for ko ko
0
873
Member Avatar for prem2

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 …

Member Avatar for ko ko
0
278
Member Avatar for nadiam

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 …

Member Avatar for diafol
0
275
Member Avatar for mark103

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 …

Member Avatar for cereal
0
190
Member Avatar for kumar89hitesh

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

Member Avatar for diafol
0
240
Member Avatar for Yousef Altaf

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: …

Member Avatar for malatamil
0
149
Member Avatar for ravi142

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

Member Avatar for krishnanair
0
179
Member Avatar for DLO2418

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 …

Member Avatar for diafol
0
424
Member Avatar for gazem

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

Member Avatar for [NOPE]FOREVER
0
102
Member Avatar for Ashok_121284

The End.