38,020 Topics

Member Avatar for
Member Avatar for Lord_2

Actually the form below is a registration form, and i only have ' username, email, password and confirm password field' so i want to add another field name job, but keeps getting error. see the code below; if (!preg_match("/^[a-zA-Z ]+$/",$name)) { $error = true; $name_error = "Name must contain only …

Member Avatar for diafol
0
330
Member Avatar for UI

New Friends! :) The following is my member registration code as of latest. ISSUE 1: I get this error: Parse error: syntax error, unexpected '_' (T_STRING), expecting ',' or ')' in C:\xampp\htdocs\e_id\register_edited.php on line 10 What is wrong ? I copied the "'images/'_$FILES['avatar']['name']);" from a youtube tutorial on how to …

Member Avatar for UI
0
335
Member Avatar for Teri_1

I passed two parameters in the URL. Now I need to retrieve the parameters log_id and dogID onto the next page to process a form. But I can retrieve the first parameter but i cannot retrieve the second parameter. Im using $log_id= $_SESSION["userid"]; $dogID = $_SESSION["dogID"]; Is there another way …

Member Avatar for abubaker_2
0
21K
Member Avatar for CB

Hello everyone, Does URL shortening effects the POST data in php? whenever we used it for using services like Bitly, Google URL Shortner etc.

Member Avatar for rproffitt
0
243
Member Avatar for shashigowda

Hi, i am beginer to codeignitor,i know how to write basic active queries in CI. i want to know how to write a query(having multiple conditions,double parentheses) in which supports CI. query is: $query="SELECT * FROM `apply_special_leave` WHERE ((`from_date` <= '$dt1' AND '$dt1' <= `to_date`) OR (`from_date` between '$dt1' AND …

Member Avatar for diafol
0
352
Member Avatar for Teri_1

Im going through a tutorial online that would allow users to post status to their wall and to their friends but im getting the error : Warning: mysqli_query(): Couldn't fetch mysqli in /storage/h7/475/1137475/public_html/template_status.php on line 15 It is storing to the db but its not displaying on the user profile. …

Member Avatar for diafol
0
1K
Member Avatar for Prince_9

I would to know how I could do a barcode detecting using a phone IMEI to know its phone type and specifications in php Many Thanks

Member Avatar for diafol
0
209
Member Avatar for hani_1

Hello everybody I'm looking for someone to help me about my problem, im trying to display user details after login with allow user to edit some fields . the user can edit these fields password repassword description address telephone email and these two fields not allow to edit only display …

Member Avatar for rproffitt
0
1K
Member Avatar for UI

Guys & My Ladies, This LOGIN.php was working lastnight and so I don't know why not now. The ELSE at 53 gets triggered even though I have typed the right password! What do you think of line 16 ? ... if($numrows >1) I tried the following but no luck: if($numrows) if($numrows …

Member Avatar for diafol
0
350
Member Avatar for phphp

Sir I have these codes <html> <head> <style type="text/css"> table { font-size: 12px; font-weight: bold; font-family: Verdana, Geneva, sans-serif; } #mytable td { border: 1px solid #CCC; font-size: 14px; } #mytable thead { border: 1px solid #6C3; background-color: #CCC; color: black; line-height: 30px; height: 30px; font-size: 14px; } #mytable input[type="text"] …

Member Avatar for rproffitt
0
7K
Member Avatar for gahhon

<customers> <customer> <ID>C1</ID> <FirstName>Jack</FirstName> <SurName>Wong</SurName> <Email>jack@hotmail.com</Email> <Password>081292</Password> </customer> <customer> <ID>C2</ID> <FirstName>Ashley</FirstName> <SurName>Rachael</SurName> <Email>ashley@hotmail.com</Email> <Password>081292</Password> </customer> <customer> <ID>C3</ID> <FirstName>Vongola</FirstName> <SurName>Steve</SurName> <Email>vongola@hotmail.com</Email> <Password>081292</Password> </customer> </customers> I have a existing xml showing like that. I did some research through net, but they all were talking about one element. For example `<Email>xxx@hotmail.com</Email>` But what …

Member Avatar for cereal
0
408
Member Avatar for UI

I'm trying to build a script that adds multi entries into same single cell or mysql row. The script tries monitoring what you are browsing via the: <pre><input type="text" name="browse_url" size="120"></pre> and then record your viewed urls into the same row (position: 0), column: browsings like so: 1.com,2.com and so …

Member Avatar for UI
0
355
Member Avatar for UI

Buds! How to code so php forces mysql to show only the final row of the column ? The followings are how I coded (2 copied youtube tuts) to show all rows to allow user to delete multiple rows: SAMPLE 1 [php] <?php session_start(); require "conn.php"; require "site_details.php"; ?> <!DOCTYPE …

Member Avatar for diafol
0
442
Member Avatar for UI

Programmer Experts, I'm embarking on an interesting project to gain work experience in php. Just stuck on one thing and wondering if you can help. You probably used Team Viewer. This is where I create a Team Viewer session and get a unique number and if I give you it …

Member Avatar for diafol
0
375
Member Avatar for ahmad.albab.87

hi, i have searching and tested lots of scripts to get the real IP behind the proxy but still not get the right result. Could anyone with this experienced helps me out. Thanx..

Member Avatar for ahmad.albab.87
0
160
Member Avatar for janicemurby

ive just done a simple register form where i can check username exists and before i put the username exists in the register works but when i have the username check in it doesnt work can someone check this over for me the script and error log are as follows: …

Member Avatar for janicemurby
0
721
Member Avatar for infoitmanoj

I was write code for excel vba xml database values write into text file. when i using without any special characters xml values parsed into their text file without any issues but when i using special characters xml cannot parse special characters (&,- etc) error getting on my macro page. …

Member Avatar for rproffitt
0
592
Member Avatar for janicemurby

Hi im ageeting the following error in my script can anyone find a fix or solution hus jan x Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/letsswin/public_html/template_pageTop.php on line 7 Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /home/letsswin/public_html/template_pageTop.php on line 8 //check …

Member Avatar for Teri_1
0
342
Member Avatar for alex-i

Hi Everyone I have 2 variables $price = 60; $dec = 1%; I want to create a function which give me result for next 10 years example: 2017 = 59.4 2018 = 58.8 2019 = 28.2 . . . 2027 = Code can be PHP or Script Regards

Member Avatar for rproffitt
0
284
Member Avatar for steph_2

Within a php environment we have one checkbox linked to one hidden field with the SAME NAME ($name). How could we send only the values of the selected checkboxes? php <input type"checkbox" name="<?echo $filename;?>_<?echo $variable;?>" id="filename_<?echo $variable;?>" value="1"> <input type="hidden" name="item_<?echo $filename;?>" value="<?echo $quantity;?>"> In the generated html this checkbox …

Member Avatar for vsmash
0
438
Member Avatar for SARDEN

Hi i am trying to insert pdo multiple checkbox value in one column into database and display it to the user, but i am getting this error Error: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined.I cant see the error and dont know how to fix it. :( That is …

Member Avatar for diafol
0
3K
Member Avatar for Mul_1

Hi guys, can you help me to solve my problem. i have create coding table for my database. i mean i have a form and when user fill in their information into the form, the data will store in this table(coding). but unfortunately, in this coding, my delete button are …

Member Avatar for cereal
0
246
Member Avatar for Catchamouse

I have a code in two files and I want to convert it from mysql to mysqli. func.php: <?php $con = mysql_connect('*','*','*'); mysql_select_db("*",$con); function search_results($keywords){ $returned_results = array(); $where = ""; $keywords = preg_split('/[\s]+/',$keywords); $total_keywords = count($keywords); foreach ($keywords as $key => $keyword) { $keyword = strtolower($keyword); $where .= "LOWER(`keywords`) …

Member Avatar for rproffitt
0
828
Member Avatar for ceeandcee30

I must be missing something obvious. Looking to have an if statement where it will only echo the image if BOTH conditions are met. Currently, it is echoing when only one is met if ($row['PROT_A']="Y" and $row['CFHL_A']="$G2") { echo "<img src='/fantasy/images/current.png' width='12' height='12'>"; }

Member Avatar for diafol
0
219
Member Avatar for gahhon

customer.xml <?xml version="1.0"?> <customers> <customer> <ID>C1</ID> <FirstName>Kah Hon</FirstName> <SurName>Wong</SurName> <Email>gahhon@hotmail.com</Email> <Password>081292</Password> </customer> </customers> login.js var xHRObject = false; if (window.XMLHttpRequest) xHRObject = new XMLHttpRequest(); else if (window.ActiveXObject) xHRObject = new ActiveXObject("Microsoft.XMLHTTP"); function reset() { document.getElementsByName('txtEmail').value = ""; document.getElementsByName('txtPassword').value = ""; } function login() { var email = document.getElementsByName('txtEmail').value; var pass …

Member Avatar for gahhon
0
445
Member Avatar for Hassan_22

Hello Dears, I need to show all list of website authors on /author page like my website http://quotemessages.com/author here I want to show All authors can someone guide me please when I access it normally in WordPress it shows me 404 error :( I want to show alphabetical list of …

Member Avatar for diafol
0
58
Member Avatar for shivya_1

Hello to all, I am facing a problem with my localhost(xampp), I have installed localhost and it was working fine. After Few days, I have started my Xampp control panel and run "localhost/phpmyadmin", this page is blank now. Nothing appears on screen.

Member Avatar for rproffitt
0
82
Member Avatar for Nhật Sơn

Hi guys, i'm a college student in the networking major, and i'm learning php this semester. i have the basic knowledge in HTML and CSS already and i want to move up to PHP, but i'm struggling to figure out how to edit the content of a php website, i …

Member Avatar for diafol
0
258
Member Avatar for abhi10kumar

I have an array having two fields, total minutes and cost of teacher (I have teacher id) and clients. I am showing my data in tabular form. If there are more than 1 records of same teacher then I have to add new array element of sum of total minutes …

Member Avatar for diafol
0
243
Member Avatar for Vijaysurya

Hai every body, i need help in how to import this xml file into database using php i tried this way only one record only inserted, any body plz help me. $comment = $this->filepath."\\".$file ; $content = file_get_contents($plan); // Break it into an array.... ! $content_x = explode("<comment>", $content); reset($content_x); …

Member Avatar for Varadharaj_1
0
975

The End.