39,393 Topics

Member Avatar for
Member Avatar for UK-1991

Hello, I am trying to update or delete item from cart but it;s not oking session_start(); include("includes/layout/header.php"); include_once("includes/connection.php"); function get_product_name($pid){ global $connection; $result=mysqli_query($connection, "select product_name from products where prod_id=$pid"); $row=mysqli_fetch_array($result); return $row['product_name']; } function get_price($pid){ global $connection; $result=mysqli_query($connection, "select product_price from products where prod_id=$pid"); $row=mysqli_fetch_array($result); return $row['product_price']; } function get_order_total(){ …

Member Avatar for minitauros
0
173
Member Avatar for James_43

Hi guys, I can't get passed this error: Call to a member function bind_param() on a non-object. I have spent hours looking for insights, and can see that my $statement returns FALSE, but have no idea why? My understanding of PHP is limited, so it might help if I actually …

Member Avatar for James_43
0
276
Member Avatar for jkon

Hello, I am writing this to warn you and because I haven't selected yet witch solution to choose , so your opinion is more than welcomed. The problem: in some version of iPhone / iPad software the cookies aren't separated by “;” but by comma and doubled. The first fatal …

Member Avatar for jkon
1
1K
Member Avatar for lewashby

I'm working with MariaDB through PHPMyAdmin and I have a question about how I need to set up my database. For eash person in the table I am currently building I'll also need an array of date values. I don't think there is a way for me to setup a …

Member Avatar for diafol
0
284
Member Avatar for LibraryCode

Hi all i generated table,but it looks like the code is a bit messy,long,how can i do the same with the arrays or loops? <html> <head> <meta charset="UTF-8"> <title></title> <style> table{border-collapse: collapse;} tr th, tr td{border: 1px solid black;} #resize { width :100%; position: relative; } </style> </head> <body> <?php …

Member Avatar for LibraryCode
0
935
Member Avatar for Djipson Steven

Hello, I have a database with MAMP and I have created a music table which contains musicId and musicUrl columns. Now in my websiteI created an HTML player that gets its sources from "src" syntax. The player is fixed at the bottom just like soundcloud player. I want to display …

Member Avatar for phoenix254
0
140
Member Avatar for ramsiva

I am using so much jquery code in my php page and add text boxes using var newTextBoxDiv = $(document.createElement('div')) .attr("id", 'abc' + nextcount); newTextBoxDiv.after().html( ); echo "<script>window.location='abc.php?a=data&b=data1&c=data2'</script>"; finaly all text boxes with jquery code coming on browser after submitting. please any body help to solve this problem .(after submitting …

Member Avatar for cereal
0
158
Member Avatar for muralibobby2015

Hello, I am using phpwhois lookup to fetch details of an ip and i am very much successful in it. But i need to detect whether the ip belong to an individual or any organization. For example if i browse my tracking website from home it is my individual ip …

Member Avatar for muralibobby2015
0
772
Member Avatar for Jiby_1
Member Avatar for scotv

Looking forward to php support and discussions on various CMS wordpress magento and what not?

Member Avatar for scotv
0
122
Member Avatar for anmol.raghuvanshi1

I have user form which has hide/show toggle form it's the will of user to fill that part. when i click on button Tent gear which hides and shows form there is save button if user filled the form and click on" save" without refreshing page i want data to …

0
105
Member Avatar for LibraryCode

Hi,could anyone tell me please what is the most common and good way to create HTML table from php array.And how to fill it with randomly generated numbers.? Regarding the table so many posts online,but which is the best approach?Thanks.

Member Avatar for diafol
0
7K
Member Avatar for amitpatel1849

Hello There, I would like to move my working website from php 5.2 to 5.5? Is any one kow that what should i take care for same. Thanks in Advance. Amit

Member Avatar for diafol
0
43
Member Avatar for Pramod_7
Member Avatar for ramsiva
Member Avatar for kathymac

Hi I have an html file with a complex table structure. I read in the html file in and then render the contents using WriteHTML.php It turns out quite differently. ex: width, font size, nested tables (don't seem to be working). I am stuck and don't know how to fix …

Member Avatar for Aeonix
0
791
Member Avatar for Liang_1

Dear all, I have created a website where I would like my users to register and upload profile images to my server and then store it under folder in my server known as "images" and then save the dataurl of the images into MySQL database. Then, I would display their …

Member Avatar for almostbob
0
380
Member Avatar for Rizi004

Hi There! I have a e-commerce website that is live and now i want to upload that live store in sub-directory for the purpose of development. Live sote is like www.abc.com now i want to copy this store to www.abc.com/dev/v2/ I copy all the files in this new directory and …

Member Avatar for scotv
0
313
Member Avatar for gtel

We're currently having a management system project, and i'm at a dilemma whether to use PHP or Java. My concerns are these: 1) What if the admin of the management system will do something foolish from his home (if the system is through php/web), since he can just access it. …

Member Avatar for gtel
0
132
Member Avatar for LibraryCode

How do i compute frequency of the numbers in the range,let's say 10-19,using rand number generator array with 50 int? I have this code so far: $arr = array_fill(0, 50, NULL); for ($i = 0; $i < 50; $i ++) { $arr[$i] = rand(10, 19); } but not sure if …

Member Avatar for diafol
0
172
Member Avatar for LibraryCode

Hi all,i tried to do some research regarding associated arrays in php,even manual on the php documentations,but can not find the answer,how do i print the smallest value and the associated key from the array?

Member Avatar for diafol
0
224
Member Avatar for Liang_1

Dear All, I have a form use for uploading photos to my website. But I would like users to fully filled in the selection only then the "Submit" or "Upload" button will be activated. How can I do this? Below is my code: <form name=Image enctype=multipart/form-data method=POST> <table cellspacing=2 cellpadding=2 …

Member Avatar for hericles
0
314
Member Avatar for w33n

Hi all, I am wondering if I need to make multiple copies of the same include xxx.php (navigation) file in order to highlight which page the user is on. Using an include seems almost unnecessary if I do. Can you please let me know. Thank you. B

Member Avatar for almostbob
0
270
Member Avatar for kathymac

Hi I am using html2pdf to convert php output to a pdf. When I run this code without injecting any other php code it works fine. However, prior to creating a pdf, I need to find the the current user and display variables based on that id. I wrote code …

Member Avatar for Taywin
0
145
Member Avatar for anmol.raghuvanshi1

This is opinion based question. I am working in Codeigniter framework I have multi-step user registration form What i am doing is collecting all data in session array validating it and inserting in database.Till now all things are working fine but now i have added image upload form along with …

Member Avatar for diafol
0
4K
Member Avatar for anmol.raghuvanshi1

I need some guidance in this I have registration form in which there will be button clicking on which open a new form without refreshing a page and again clicking on same button hides form it's user will to fill that form.Here is snapshot what i actually want.I want to …

Member Avatar for diafol
0
4K
Member Avatar for ehpratah

Hi Everyone! Can anybody point me to the right direction or check what am i doing wrong. Im trying to export data from php to excel using phpexcel( which is working fine if im am only getting 1 specific record). but when i tried adding a loop to create a …

Member Avatar for ehpratah
0
3K
Member Avatar for kathymac

Hi I am using fpdf.php to create a pdf from my php code. However, my output needs to be in a table format and when I add this: $sMsg = " <div align=center> <table style='width: 900px; color: black; border: 1px solid DimGray;'> <tr> <td style='font-family: Arial; font-size: 22px; color: black; …

Member Avatar for Aeonix
0
354
Member Avatar for Sophia_1

Hi everyone, i wanted to upload an excel file in a form and then display/edit the file from the form. Currently, the file can be uploaded at localhost but when i try to upload in server it was not successful. I would also want to view/edit the file and save …

Member Avatar for Taywin
0
558
Member Avatar for UK-1991

Hello, I created a method to show the products by category but the condition I placed is not working if condition is working properly but else if condition not working properly if(isset($_GET["catid"])) { $statement = "posts WHERE cat_name='$cat' ORDER BY pid ASC"; $results = mysqli_query($connection,"SELECT * FROM {$statement} LIMIT {$startpoint} …

Member Avatar for Taywin
0
261

The End.