39,319 Topics

Member Avatar for
Member Avatar for mcdczzz

how can i count or merge same data from the database? here is my code but this wont work..help please.. <?php $result = mysql_query("SELECT category FROM inventory"); while($row = mysql_fetch_array($result)){ $cat_array = array($row['category']); foreach ($cat_array as $value){ if ($value<=1){ echo $value . "</br>"; }else{} } } ?> and my output …

Member Avatar for mcdczzz
0
150
Member Avatar for radostin.angelov.370

So I looked into other threads but didnt find a solution that worked for me. Here is my problem: the first page is supposed to get information from a form, look for it in a database, store it in a variable $_SESSION['$dataArray'] and send it to the second page. http://codepad.org/VhblM76K …

Member Avatar for mattster
0
317
Member Avatar for bolfescu

Hy how can insert in this echo function, return confirm ? echo "<input type='submit' name='submit' id='submit' class='btn btn-primary' value=Cancella onclick=window.location='delete_article.php?id=".$row['id']."'; /></p>"; i've already have onclick....

Member Avatar for mattster
0
799
Member Avatar for mastermind2

Hi, I have a table `id - Product_Name - Price - image` Some value like : `1 - My Product A - 50 - mpa.jpg` `2 - My Product B - 10 - mpb.jpg` `3 - My Product A - 40 - mpc.jpg` `4 - My Product C - 20 …

Member Avatar for mastermind2
0
200
Member Avatar for Sophia_1

Hi,am new in php and appreciate your help in this matter....tried to save the record below into mysql database but couldn't.The field are blank and the Targetid field is always 0.Below is the coding...Please advise...Tqvm <html> <body> <form action="progress1.php" method="post"> <p> Quantitative Progress: <input type="text" name="Quanprogress1"></p> <p>Qualitative Progress: <input type="text" …

Member Avatar for veedeoo
0
518
Member Avatar for davy_yg

Hello, I am trying to create a login page and after I enter the username and password this error appears. I still wonder why? Notice: Undefined index: username in C:\xampp\htdocs\SquprimeRevise\loginproses.php on line 95 Notice: Undefined index: password in C:\xampp\htdocs\SquprimeRevise\loginproses.php on line 96 line 95: $username=$_POST['username']; line 96: $password=$_POST['password']; The login …

Member Avatar for hex20dec
0
262
Member Avatar for deshazer.jad

Server information: Ubuntu 14.04 Apache2 I installed PHP5 on my webserver and tried to run a script that contained a call to the function curl_init(). The server responded with an error indicating that the function curl_init() was undefined. I installed PHP-CURL and restarted my webserver and encountered the same error. …

Member Avatar for deshazer.jad
0
1K
Member Avatar for ravi142

Hello, I am New about **API Connection** in PHP So i need help for the How to connect and get **Facebook Friends**. Thank You.

Member Avatar for pritaeas
0
253
Member Avatar for vishal sata
Member Avatar for diafol
-1
259
Member Avatar for ravi142

Hello, **Custom post** -> "Children" **Add New**-> If children name already then change with title with his birthday By default Wordpress used **Same_Title** and **Same_Title-2** in slug. Can you suggestion me how.? RND not given proper solution. Thank you

Member Avatar for diafol
0
134
Member Avatar for Sikander Nasar

## I want to get little bit idea ## I am using 2checkout.i have use the redirect url for success message but how can i get the error message and what are the error message that can be occur after completion of all the requirements. Thanks.

Member Avatar for pritaeas
0
107
Member Avatar for lewashby

I just re-installed my Mint system and now I can't get php to work. I've tested apache and it seems to be working just fine, entering localhost into the URL brings up that default page in /var/www/ but when I created a small php file called testphp.php with nothing but …

Member Avatar for lewashby
0
193
Member Avatar for chaitu11

<?php $query=mysqli_query($con,"select * from reg where user_id = '".$_GET['id']."' "); $row=mysqli_fetch_array($query); ?> <select name="sex" id="opt2"> <option value="">select</option> <option value="Male" selected="selected">Male</option> <option value="Female" selected="selected">Female</option> </select>

Member Avatar for chaitu11
0
5K
Member Avatar for rohan19

I want to Learn about this "android and php web services". please give me some good resources for learn about this subject.(Video tutorials links)

Member Avatar for superirale
0
322
Member Avatar for Amit_21

Hi, I am larning php and have got a simple task to be completed. But my brain is not working in coding the below requirement. This is the requirement. Create a form that contains: 1. Name, textbox 2. Submit button If the user inputs the Name textbox and clicks the …

Member Avatar for niranga
0
110
Member Avatar for SimonIoa

Hello althouh i delete records from the database when i call them on a query they appear. Not the other records of the data just the id i have already deleted. I dont use WHERE because i want to return all records from table. Any guess why the id is …

Member Avatar for diafol
0
170
Member Avatar for Webville312

Dear all, I have been working on this code and I included dynamically created rows. The rows are being created very well. However, when it gets to the submission part, the code is only suubmitting the first row ONLY. Can someone point me in the right direction please. Below is …

Member Avatar for diafol
0
251
Member Avatar for priy12345

Can anyone help me how to read the value from the checkbox to display it in a pdf.I am having a form with name,age,prefernce etc. I have a checkbox for preference. When user clicks on submit the entered or selected value as to display in a pdf.I have only problem …

Member Avatar for kaleemullah360
0
2K
Member Avatar for erabxes

Hello! Please I would want to be able allow users select options from a list of selections as many times as possible using php, how do i achieve that? Below is a form for better description of what i desire to do <html><body> <form action="" method="post"> <p>You can enter your …

Member Avatar for erabxes
0
118
Member Avatar for SimonIoa

I want make an email script for users to be able to send me messages and i getting Mail delivery failed: returning message to sender this is the script <ul> <li><form name="mail" method="POST" action="send_mail.php"></li> <li>To:</li> <li><input type="text" name="to" /></li> <li>Message:</li> <li><input type="text" name="Message" /></li> <li>From:</li> <li><input type="text" name="from" /></li> <li>CC:</li> …

Member Avatar for SimonIoa
0
185
Member Avatar for davy_yg

Hello, I am trying to record $remaining package to the database but it doesn't work. I wonder why? groupinfo_edit.php <?php // Check if session is not registered, redirect back to main page. // Put this code in first line of web page. session_start(); if(!isset($_SESSION['username'])) { header("location:index.php"); exit; } ?> <!DOCTYPE …

Member Avatar for noelthefish
0
141
Member Avatar for zaheerprince

i am making a database and i want to store data from dynamic fields. below i m submittig my form data to datapost.php page to proceed inserting there values but i have no any clear idea how it will success. i want to save this form in my database so …

Member Avatar for zaheerprince
0
742
Member Avatar for Eppy Azmi

Can Someone help me to solved my problem. How to count total of value base on dropdown? for example <label for="gender">Gender</label> <select name="gender" id="dr" > <option value="" selected="selected">Select Your Gender</option> <option value="M">Male</option> <option value="F">Female</option> </select> Than i want to know how many record in the database contains Male/Female. This Record …

Member Avatar for pritaeas
0
333
Member Avatar for mokshi

I have table as follows C Common Code 337080.00 15 Jan 2014 14 Jun 2017 Ananth Krishnan ee C Common Code 337080.00 15 Jan 2014 14 Jun 2017 Balaji Srinivasan ee C Common Code 337080.00 15 Jan 2014 14 Jun 2017 Deepa Venkitesh ee C Common Code 337080.00 15 Jan …

Member Avatar for pritaeas
0
138
Member Avatar for rjusman90

this is my login code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <?php session_start(); $year = time() + 31536000; if(isset($_POST['remember'])) { setcookie('remember_me', $_POST['email'], $year); setcookie('remember_me2', $_POST['pass'], $year); } elseif(!isset($_POST['remember'])) { if(isset($_COOKIE['remember_me'])) { $past = time() - 100; setcookie(remember_me, gone, $past); } } ?> <head> <link rel="stylesheet" href="css/validationEngine.jquery.css" …

Member Avatar for pritaeas
0
157
Member Avatar for blueguy777

unable to insert values into mysql table, only showing blank page. but after commenting mysql query code it's displaying echo $success part and not throwing any error message. code: if(!empty($_POST)) { // keep track validation errors $first_nameError = null; $last_nameError = null; $mobile_number1Error = null; $addressError = null; $magent_cityError = …

Member Avatar for blueguy777
0
309
Member Avatar for engrjd91

I have the following code to login in my php page. Whenever I enter my username & Password & hit login, I get the following error. Warning: mysql_fetch_array() expects parameter 1 to be resource, integer given in C:\xampp\htdocs\fyp\qmc-login\login.php on line 59 here is my code: <?php session_start(); ?> <?php include_once("../includes/connection.php"); …

Member Avatar for pritaeas
0
183
Member Avatar for durgesh1

i add category in custom post type from wp admin and add post in that category every thing is fine here but when i click on category name on front no post is displaying please help me <?php /* Plugin Name: Institutions Plugin URI: http://adninfosystem.com/ Description: This can be used …

0
87
Member Avatar for Keyra Lee

*hi guys..i have a problem with my php code..i have use onchange event..but it's not working! i don't know why! :'( *let me explain first.. - i want if i select a state then next the branch will appears auto if related..but only the related branch will appear..not all branch …

Member Avatar for diafol
0
252
Member Avatar for cacacattzz

can you help me to have a code for log in attempts in 3 times?? thankyou so much .. please ive tried so many codes but it didnt work in my system can you help me

Member Avatar for diafol
0
28

The End.