39,326 Topics

Member Avatar for
Member Avatar for druzzy

hello :) I am new to PHP. I was going through the example on w3schools. i managed to retrive my data and display nicely. my problem is i don't know any code that i can use to paginate the data i am displaying. Please help me . the code from …

Member Avatar for diafol
0
138
Member Avatar for 9tontruck

okay.. what I wanna do is, 1. upload an image into temp folder -- done 2. create a folder -- done 3. create an index.html in the new folder -- done 4. create thumbnail image in the new folder -- page dead without errors 5. copy(rename) the original image into …

Member Avatar for 9tontruck
0
133
Member Avatar for kakalahori

Hi i am having an issue with my website. My friend wrote the codes using codeignitor. I am a beginer just to add up . now the index page is only visible and i cannot access any other page than that. Not the admin pages as well. The live codes …

Member Avatar for kakalahori
0
229
Member Avatar for RonKevinT.Manuela

Okay so a few days ago I finished a tutorial of photo gallery...I'm having problems of putting images other than jpg format...the one who made the tutorial said that you can add formats to be uploaded but he didnt show it..here was his code in his upload.php...I tried experimenting on …

Member Avatar for mattster
0
187
Member Avatar for gampzz

image is uploading in directory and in db also but when i refresh image disappear database.php // i know i should not to use mysql but i have the it into mysqli so no big issue in this <?php //Connection $con=mysql_connect("localhost","root",""); if(!$con) echo "Failed to connect with MySQL.".mysql_error()."<br />"; //Create …

Member Avatar for mattster
0
943
Member Avatar for davy_yg

Hello, I am trying to create a table with a checkbox for each row to delete the row that checked. Then after the user press the delete button the row that is checked must be deleted. This is the code that I have so far, but I do not think …

Member Avatar for mattster
0
283
Member Avatar for rani_4

In a query say i have a image path that have multiple images stored as path=http://localhost/images/xyz.When i run the code: <?php //Retrieves data from MySQL mysql_connect("localhost", "root", "") or die ("Could not save image name Error: " . mysql_error()); mysql_select_db("dawat") or die("Could not select database"); $data = mysql_query("SELECT 'images_path' FROM …

Member Avatar for rani_4
0
561
Member Avatar for RikTelner

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

Member Avatar for RikTelner
0
165
Member Avatar for VShaw12

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

Member Avatar for mattster
-5
235
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
321
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
800
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
201
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
519
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
264
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
255
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
135
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
194
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
323
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
119
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

The End.