39,402 Topics
![]() | |
`while ($row = mysql_fetch_array($result))` Is nice command which iterates through every line, if `$result` is a MySQL query. It iterates every single line, one by one. See, I've got situation like: <tr> <td>Source 1</td> </tr> <tr> <td>Source 2</td> </tr> And it is kind of part of design, I can't really … | |
Hi i take a project of my client said that you have to develope this project by using Code Igniter and Yii.. I don't Know what are these .. please tell me some thing about these but in simple .. | |
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 … | |
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 … | |
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.... | |
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 … | |
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" … | |
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 … | |
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. … | |
Hello, I am New about **API Connection** in PHP So i need help for the How to connect and get **Facebook Friends**. Thank You. | |
![]() | |
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 ![]() | |
## 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. | |
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 … | |
<?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> | |
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) | |
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 … | |
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 … ![]() | |
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 … ![]() | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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" … | |
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 = … | |
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"); … | |
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 … | |
*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 … ![]() | |
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 ![]() | |
hello i want to convert my all videos in .flv format while uploading is there any other way except ffmpeg to convert all format videos in flv format??? can anyone help me its urgent | |
i've 3 files 1) search-installment.php 2) pay-installment.php 3) update_installment.php first step enter card no into search-installment.php posting value search_cardno to pay-installment.php then updating particular installment row clicking pay button in that row which opens form in modal window after pressing submit button it's updating data in table, but while refreshing … ![]() | |
Hello, I am having website error that I still do not know what causes it. In several of my users browsers (firefox), some words in the website content that I build turn into a blue link and also there is a Java ads in it. Another one, index.html turns into … | |
Hi, am interfacing gps tracker TK106 with our online platform. The data we get from gps device is in this format (06667778889-9BP05000066677788899140815A0533.8206N00009.7045W000.0165936157.6200000000-L0000F51C) Instractions form [this site](http://sourceforge.net/p/opengts/patches/1/) explains the variours data sets in the string above, for example the first 11 digits 06667778889 is the device's programmable ID ,used in placed … | |
/*Ok so I have this code and it works fine but the problem is that it gives an out put like this one: 2014 June 2014 August Supposedly I would like to have august just below June...I tried putting the Group by Year(Postdate)..and it almost gave me the solution but … | |
Hello, I am creating a newspaper website and I want to add e-paper option there too..something like this : http://epaper.bhaskar.com/jalandhar/56/04122012/cph/1/ actually I just want to know..how the area is selected automatically when we hover on some part of newspaper and when we click that part..it opens a new pop-up modal … | |
Hello, I am trying to set email from my web server which we hosted ourself. I already set my php.ini to smtp.indonusa.net.id and from email: davy@indonusa.net.id to: davy_yg@yahoo.com The program seems to works fine. Yet, I do not receive any email yet as I suppose to. Someone mentions to me … | |
i've stored a line into string `$output='01/07/201521/08/201691754.0';` i want split the line as three different words & store into variables var1 var2 and var3. eg: var1=01/07/2015 var2=21/08/2016 var3=91754.0 hope someone will fix this issue. | |
I wonder how CMS(Wordpress) know the default template and plugins to run. Should I store the default value for template in MySQL database or just using file_put_content to store the default value for template/plugins ? Or, is there any better way ? | |
<!--php index code Start--> <?php include("includes/db.php"); ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My Shop</title> <link rel="stylesheet" href="styles/style.css" media="all" /> </head> <body> <!--Main Contanier Start--> <div class="main_wrapper"> <!--Header Starts--> <div class="header_wrapper"> <img src="images/Karis Shop Logo Neu 700x100 entwurf 3.jpg" style="float:left;"> <img src="images/cropped-banner41.jpg" style="float:right;"> </div> <!--Header Ends--> <!--Navaganation … ![]() | |
Using i5_query i selected data from our database and stored the results in $query. I then used the following to create an array variable: $row = array(i5_fetch_assoc($query,I5_READ_FIRST)); I then printed the array results using print_r($row), below is the results of print_r. Array ( [0] => Array ( [CUSTOMER] => 128500 … | |
Hello, How to store html tag in email message: $message = "Dear ".$data['stu_fname'].",".'<br><br>'. "Please click the link below to continue the registration progress: ". "http://www.website.com/registration3.php?student_id=".$data['student_id']; This is what I receive on email: Name: Guest Phone: 88888888 Email: guest@mail.com Dear Guest,<br><br>Please click the link below to continue the registration progress: http://www.website.com/registration3.php?student_id=53 … | |
I am creating a table of my services or products where each product have their id next to it. I want to grab that product id into the URL of buy now button when customer click on that button, and when customer have done their shopping , that custom id … | |
hello all I need to set free shiping for some products (not for all products) in joomla via admin panel ,how we can set it? | |
I am facing a problem in opencart site.I am receiving some emails with dummy emails and phone numbers to mail.This is happening without interference of human. I have searched a lot in google. But everywhere I found asking that messages sent by users are delivering into spam folder. But my … | |
Hi, The following code selects and displays a record from the "emailtbl" table as desired except for the the date and it doesn't update the "lastused" (date) field to the "numbers" table via "lastused.php" include. No error messages. I need help. <html><head> </head> <BODY> <?php include ("lastused.php"); include ("counter.php"); $id="''"; … | |
Hey guys, so I'm having some issues putting my script together.. Basically, I'm trying to loop through my database and send each entry username to a url, and once through all entries, send 'done'. Using PHPStorm and getting an "Expecting statement' error. Here's what I have so far: <?php define('DB_NAME', … | |
Hi all , I am trying to display order details when I clicked on in an order row view. On clicking view with respect to order id in order info respective order details will be displayed in a 'tr'in same page using ajax. Can any body post any link or … ![]() |
The End.