39,393 Topics

Member Avatar for
Member Avatar for davnlou

Hi there, I am struggling with a bit of code and need a bit of help please.. I have information in a database that I want to display in a table, then allow users to choose a number of items and click 'add to cart'. It works fine if I …

Member Avatar for DJBirdi
0
343
Member Avatar for jaspertan
Member Avatar for jaspertan
0
587
Member Avatar for david.roun.7

Ok, so this is cool. On my site, I learned how to create a simplified "wall" like facebook has... sort of. It's great for me to have done that because I am self taught with all of this. There is a problem, however. My <option> is not displaying the names …

Member Avatar for david.roun.7
0
125
Member Avatar for prash21m

I have a table with two columns "storename" and "discription". id---- Storename ---- Description 1 ---- Myntra ---- 20% of on all product 2 ---- Flipkart ---- 40% of on all product for search i am using 'like' query like this : select * from table_name where description like %search_terms%; …

Member Avatar for Borzoi
0
168
Member Avatar for jaspertan
Member Avatar for nufftalon

The uploaded file exceeds the upload_max_filesize directive in php.ini. I get that error. I have a hosting account with cpanel access, how can I avoid this problem from happening?

Member Avatar for nufftalon
0
117
Member Avatar for m1m6jbr

hello i have an attribute in 'users' table called RegNo which refer ro region number ... so i have to select users and display them according to their region number . here is my code <body> <ul id="nav"> <li class="heb"> <a href="parentUrl" >hebron</a> <li class="bet"> <a href="parentUrl" >ramallah</a> <?php include …

Member Avatar for m1m6jbr
0
284
Member Avatar for samalahyd
Member Avatar for mesh457
0
285
Member Avatar for bolfescu

HY I HAVE THIS SQL CODE select id,category,sum(q1) Total from articles group by category order by id AND I WHANT TO INTEGRATE IN MY PHP SCRIPT TO SHOW IT LIKE A TABLE INCLUDING THE TOTAL, HOW CAN I DO THIS ?

Member Avatar for veedeoo
0
68
Member Avatar for samy.youssef.12

i have dove every thing, uncommented the extension for mysqli in php.ini but no way i can't connect to mysql or mysqli throught php 5.0.11 i appreciate any suggestions thnx;

Member Avatar for veedeoo
0
69
Member Avatar for bvowens

Hi I've been working on a joomla site on my local windoes vista computer using WAMPSERVER vrs2 and with apache. Something went wrong with apache and windows warned me and turned it off. Since then I can't use [url]http://localhost[/url] (or the shortcut on the wampserver menu 'localhost' to connect. However …

Member Avatar for samy.youssef.12
0
878
Member Avatar for mangel.murti

Hi All PHP , Below is funtion which store product in session. $resource is database link and product just getting product from database for a given $_GET['product_id'].when i am clicking on a single product and adding that in cart it is working. if i add another product so session array …

Member Avatar for mangel.murti
0
142
Member Avatar for showman13

Good Evening, I'm trying to modify a function that I wrote a few months ago to work on a 2 dimensional array instead of the single dimension I have been using. My question is, before I start rewriting it only to find out that I can't do it... Can you …

Member Avatar for cereal
0
281
Member Avatar for adishardis

Hi, I would like to loop the data-attribute to contain all column names and values from a mysql table. This is what it looks like today: while ($row = $result->fetch()) { echo "<div id='{$row['namn']}' data-column1='{$row['column1']}' data-column2='{$row['column2']}'... So some kind of magic :) loop inside there so I don't have to …

Member Avatar for adishardis
0
257
Member Avatar for DJBirdi

Out of curiousity, if any of you have ever done image watermarking with PHP, I'd love to hear some ideas. PHP's official documentation on watermarking with alpha channels isn't bad but I'm curious about the existence of other libraries that some of you might have used.

Member Avatar for DJBirdi
0
219
Member Avatar for computer1

i am working on a small gallery website(project) and i want to give users provision to upload multiple photos and it should appear on the same page...Thanks in advance.

Member Avatar for rpv_sen
0
54
Member Avatar for david.roun.7

So, when I run this code on xampp, it works and I can see the variables, without the header. <html> <head> </head> <body> <?php $user=""; $server=""; $db=""; $pass=""; $con=mysqli_connect($server,$user,$pass,$db); $id=$_POST['loginid']; $password=md5($_POST['password']); $result=mysqli_query($con,"SELECT * FROM passwords WHERE userid='$id' AND password='$password'"); session_start(); if($row=mysqli_fetch_array($result)){ require('../connect/registerdb.php'); $rresult=mysqli_query($rcon,"SELECT * FROM registration WHERE userid='$id'"); while($rrow=mysqli_fetch_array($rresult)){ $_SESSION['name']=$rrow['name']; …

Member Avatar for DJBirdi
0
322
Member Avatar for mangopearapples
Member Avatar for Namibnat

I am still trying to get a grasp on the php/mysql interaction. Why does something like this not work and without all the error catching, can one do something like this? [CODE] $result = mysql_query("SELECT * FROM stadium WHERE gametime = `$_z`;"); $row = mysql_fetch_row($result); $bababa[name] = $row[0]; $bababa[town] = …

Member Avatar for guruparthi
0
724
Member Avatar for rjusman90

<td>Upload your pic</td> <td><input type="file" name="1234" value=""></td> <?php $img =$_POST['1234']; $sql="UPDATE users SET FirstName='$FirstName' , LastName='$LastName', UserName='$UserName' $sql_pass,Email='$Email' , Gender='$Gender',PicUrl='$img' WHERE UserId='$User_ID'"; ?> want to save in image folder also

Member Avatar for david.roun.7
0
170
Member Avatar for jaspertan

here is my code. it only retrieve last inputted data. How can i populate all data in a htnl table. <html> <?php $id =new Register(); $test=Register::selecthey(); foreach($test as $t=>$sid){ } ?> <table> <thead> <tr> <th>Document ID</th> <th>Personnel ID</th> <th>Docs Name</th> <th>Docs Num</th> <th>Docs Date</th> <th>FileName</th> <th>Data</th> </tr> </thead> <tbody> <tr> …

Member Avatar for jaspertan
0
131
Member Avatar for iamthwee

Hi guys, I just came across an interesting article regarding codeigniter cookie sessions. http://www.dionach.com/blog/codeigniter-session-decoding-vulnerability It seems it is fixed in 3.0 but I know that version isn't stable. I wonder what Dani thinks about this?

Member Avatar for Dani
0
526
Member Avatar for Komil

Good days guys, in my main.php page I select data from mysql db and then if selected on any rows send data to ajax script, so everything is ok but when I click in any rows I receive one data. <table cellpadding="0" cellspacing="0" border="0" class="display mobile_dt1 dt2"> <thead> <tr> <th …

0
89
Member Avatar for rjusman90

<?php include"header.php"; if(empty($_SESSION['UserName'])){ header("Location: http://localhost:1234/city"); exit;} $result = mysql_query("SELECT * FROM menu"); echo "<td><a href='http://localhost:1234/city/menu_update_insert.php'> <img src='images/create.png'>Add New Record</a> </td>"; echo "<table border='0'> <tr class='tableheader'> <th>PageName</th> <th>MenuName</th> <th>ParentMenuId</th> <th>LinkWidth</th> <th>OtherUrl</th> <th>Status</th> <th>CreatedDate</th> <th>OnMainMenu</th> <th>FooterMenu</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr class='tablerow'>"; $rpId=$row['PageID']; $result1=mysql_query("SELECT * FROM page WHERE ID=$rpId "); …

Member Avatar for rpv_sen
0
265
Member Avatar for davy_yg

Hello, Does anyone has experienced storing chinesse character in php xampp. I have an elearning project for mandarine course and I unable to store chinesse character in php xampp. I have found an opensource test maker and looks like I have modify it a little bit so that it could …

Member Avatar for diafol
0
106
Member Avatar for Athirah Yusri

If I try to run the following PHP code, I get a "Call to a member function query() on a non-object". Do you know why? I use the same code on another site (http://daveismyname.com/creating-a-blog-from-scratch-with-php-bp#.U6fdxPmSxmx), where it works just fine. config.php <?php ob_start(); session_start(); //database credentials $username = "demo"; $password = …

Member Avatar for cereal
0
3K
Member Avatar for Poonam Jadav

hello i m a student & new to php i want to pass id from one page to another page using get & post method but the id can not be passed it shoes the variable in URL instead of value please can any one help me Here is the …

Member Avatar for pzuurveen
2
43K
Member Avatar for SimonIoa

I want to count rows from table1 and rows from table2 and retrieve a sum from both tables. i use this... $query=mysql_query("SELECT COUNT(*) AS total FROM (SELECT COUNT(*) FROM message_believe WHERE message_believe.uid_fk ='$uid' UNION ALL SELECT COUNT(*) FROM review_believes WHERE review_believes.uid_fk ='$uid' )"); $data=mysql_fetch_array($query); echo $data['total']; what do i do …

Member Avatar for urtrivedi
0
148
Member Avatar for GingerDontCare

I keep getting Fatal error: Call to undefined function newMyOperatorClass() in C:\wamp\www\KanJ_PHP_Website\KanJ_PHP_Ex2.php on line 17.....here is my code... <html> <head> <title>Justin Kangley Ex2</title> </head> <body> <?php class MyOperatorClass { private $rValue; //declare private property at the class level so all the functions use it //default constructor method (same name as …

Member Avatar for GingerDontCare
0
284
Member Avatar for SimonIoa

I want to make two short by options for the users to be able to check out the most recent uploads and the ones with the most views. The query works fine but i dont know how to make the link (<a href="") work. I made this change on the …

Member Avatar for iamthwee
0
116

The End.