39,388 Topics

Member Avatar for
Member Avatar for hwoarang69

i am trying to store image in a folder and getting a error. it say undfine variable my clearly the variable is difined in html code(input type = file) Notice: Undefined index: image_file in C:\xampp\htdocs\E_COMMERCE\additem.php on line 82 line 82: move_uploaded_file($_FILES['image_file']['tmp_name'], "IMAGE/ITEMS/$image_name"); <input type ="file" name="image_file" id="image_file" class='file'/> //place image …

Member Avatar for Bob Hensley
0
210
Member Avatar for KRUX17

Hi, I really have no idea why my if statement is showing **no products** when the quantity of my products is not 0, if it is then it will show **no products**, but the quantity of the products is more than 0. Also, there are jsut two items stored in …

Member Avatar for LastMitch
0
253
Member Avatar for iamconfused2012

I downloaded easy php to run php file but it is still not working. I am confused.

Member Avatar for diafol
0
62
Member Avatar for hwoarang69

<?php if(isset($_POST['additem_button'])) $sub_category_p = isset($_POST['sub_category']); if($main_category_p == "Choose..."){ $main_category_p = ""; } echo "$main_category_p"; ?> <select name = 'main_category'> <option value="Choose one">Choose...</option> <option value="Apparel">Apparel</option> <option value="Home Decor">Home Deco</option> <option value="Beauty">Beauty</option> </select> it doesnt echo out any thing. no matter which option i chlice in select.

Member Avatar for Bob Hensley
0
190
Member Avatar for hwoarang69

if(!$email_p) { $forgot_error .= "Error - Enter your email address"; } else if(preg_match( "/[a-zA-Z0-9-.+]+@[a-zA-Z0-9]+.[a-zA-Z]+/", $email_p) < 0) { $forgot_error .= "Invalid e-mail address"; } i want to make sure email that user enter is right format. but for some reason it never goes in else if statment. can some one …

Member Avatar for Bob Hensley
0
128
Member Avatar for pranay1995

hi all i have this project to do b ut i have having a bit of a problem with checkbox, only selected checkbox goes to the database. it works but only the first value which is chips is inserted even if chapati is selected. below is the html code: <?php …

Member Avatar for Zagga
0
151
Member Avatar for mpc123

Hi I have been struggling with this for a while and cant find the answer, the code below shows my else if statement everything goes fine until using the else if statement and ' . $img . ' ends up being blank. It should be if field 4 is 0.00 …

Member Avatar for mpc123
0
109
Member Avatar for xbat

How would I change the folder path in this? or what would be the best way? `(file_exists ($this->jam.'.txt'))`

Member Avatar for xbat
0
167
Member Avatar for mpc123

Hi I am trying to join tables and fields and one of the tables had fields like field.field . So when I try to do a join it does not know the table field name as you end up with something like Table1.field.Name How do I get round this please …

Member Avatar for mpc123
0
112
Member Avatar for bops

Hi, I have quite a large CSV file (Around 20,000 rows with about 20 columns) that I am trying to manipulate. Initially I am looking for a way to get out the first 10 or so records after they have been sorted in ascending order on one of the numeric …

Member Avatar for bops
0
1K
Member Avatar for OsaMasw

Hello buddies , I have no Idea what is subquery, every time I tried to link two tables in one sql query I failed here is the scenario I want: in this pic I have posts with "**user_id**" only I need to show the username which stored on another tables …

Member Avatar for simplypixie
0
942
Member Avatar for PierreJ

Hello Everybody, I just join today, and this is my first post. I know how pass and receive variables thru URL like [url]www.mysite.com/index.php?var1=ABC&var2=QWERTY[/url] This is OK but what i'd like to know if we can use something like this: [url]www.mysite.com?username[/url] or [url]www.mysite.com/username[/url] but username will change for every user. And …

Member Avatar for dw_user
0
3K
Member Avatar for xbat

Ok So I have seen a few things.. But is there anything that goes into depth more but sort of squared away... From what it looks like if you develop something in mysqli - it will be faster mysql pdo - works with a bunch of other databases.. I found …

Member Avatar for veedeoo
0
221
Member Avatar for hwoarang69

here is what iam trying to do. there is a textfield. which has a watermark in it(js code). so it will say "Enter Username". so user will enter username in it but if somethig go wrong than it should save the value in textfield(php code). <input type="text" name="username" id="login_username" class="field" …

Member Avatar for jstfsklh211
0
121
Member Avatar for Monster Killer

Hello. I have a python script to post news a website but i want to know how i can pass variables from php to the python script and run the script from php. Python script: (I didn't create this, was done by a friend) [CODE] import urllib2, urllib USER = …

Member Avatar for Padiamon
0
9K
Member Avatar for Djmann1013

I have this code I made: <?php $to = "example@random.co.uk"; $$subject = "Email"; $message = " Hi, Dave! "; mail($to, $subject, $message); ?> It works fine in Chrome, but in Opera, it is obsolete. Can anyone tell me why? I thought PHP processes on the server, not the client.

Member Avatar for blocblue
0
117
Member Avatar for tcampbell011

Hi, this is a super basic question but my classes are not working the way I expect them to. I am a CS student in my second year so go easy on me! The only other language I know is Java. Here is my class, called class.Team.php (represents a team). …

Member Avatar for Squidge
0
223
Member Avatar for NardCake

Hello! Me and my friend are developing a website, it's being hosted on [1freehosting](http://1freehosting.com) until we finish it (as we dont want to be paying so much money for an unfinished product). since monday the server has been down or something and I can't access the webpage, we have had …

Member Avatar for NardCake
0
119
Member Avatar for rajesh.goblet

I made a wesite which have a webforum something like this site. Where a user can send message to each other. i am using php-mysql. i want to know how to store info about if user had read his message or its still unread. my site is [www.thar.co][1]. mysql table-column …

Member Avatar for rajesh.goblet
0
267
Member Avatar for klemme

I was asked to help a friend to rewrite urls for a site he has a client. The link structure looks like this: <a href="http://sitename.dk/index.php?page=wisetrap">WiseTrap</a> // URL: sitename.dk/index.php?page=wisetrap Is it possible to keep the link structure like that, but after the link is clicked make it appear in the url …

Member Avatar for diafol
0
223
Member Avatar for jayson.ako_1

help, i would like to put a conditional statement if the quantity that customer will buy exceeds the remaining quantity in the inventory,and it will prompt a message that the transaction is invalid, heres my code.in buying portal.advance thanks for the help :) <?php require_once('auth.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for jayson.ako_1
0
216
Member Avatar for tiekwebstar

I got a great response from this site. now my final thing is show gif loading image while getting data in Ajax.. my code is : function vote(id) { var result = new Array(); document.getElementById('sub-cat').innerHTML = ajax_image; result = $.ajax({ type: "POST", url: "ajax.php", data: "id="+id, async: false }).responseText.split("^"); document.getElementById('sub-cat').innerHTML …

Member Avatar for scrager
0
2K
Member Avatar for bsewell

Hello, I have done some filtering in an array using unset. The problem is that if I do a var_dump on the array after the filtering, then some of the keys are missing. Eg, key 2 isn't showing. So what I would like to do is to remap the keys …

Member Avatar for bsewell
0
93
Member Avatar for kishoresai438

Hi Team, This is Kishore, I have good experiance in Core PHP with Mysql. I am looking for learn new tools like frame work or CMS. I have 3.9 years exp in PHP Environment. Now I am looking for job change, So i want to improve my skills. Please suggest …

Member Avatar for anthonydiaz680
0
162
Member Avatar for Avicii

<div id="rightContent"> <div id="contentBox" class="right"> <div id="contentPadding" style="padding: 10px 10px 5px 10px;"> <div id="slickTitle" class="hotelStat"> <?php $userReg = mysql_num_rows(mysql_query("SELECT * FROM users")); ?> <?php echo $userReg; ?> Registered Users </div> <div id="slickTitle" class="hotelStat"> <?php $totalFurni = mysql_num_rows(mysql_query("SELECT * FROM furniture")); ?> <?php echo $totalFurni; ?> Total Furniture </div> <div id="slickTitle" …

Member Avatar for Avicii
0
147
Member Avatar for doha786

today 1st time i'm trying ot learn recursion funtion thru online tutorails but stuck at begining stage. i found below code but anything i give value its provide me output: 1 so, i need better explanation of that: function factorial($n){ if($n==0){ return 1; } return fact($n, 1); } function fact($i, …

Member Avatar for blocblue
0
89
Member Avatar for romanromeo89

Hello, I'm trying to send a new user info (username & password) to a php file (register_check_0.php) using ajax with jquery so i can check if user already exists. I use the post request below: $.post("register_check_0.php", { username: $("#username").val(), password: $("#password").val() }, function(data,status){ var result=data; if(result=="success"){ counter+=1; $("#registration").load("register_1.php"); } } …

Member Avatar for romanromeo89
0
1K
Member Avatar for bettybarnes

I have a textbox which pulls the maximum value from DB. But it gives wrong value. Can you help figure out what went wrong here? **basicfunction:** private function basicInformation() { // initialize variables $host = "localhost"; $db_name = "test"; $tbl_name = "ballpark_details"; $username = "root"; $password = ""; // connect …

Member Avatar for adam.adamski.96155
0
163
Member Avatar for moadah

i going to do college website which is best Zend or Cakephp framework to do it if there is another framework best tell me

Member Avatar for kevinp2012
0
124
Member Avatar for dancks

I'm on the school server. So before I start I need to say I don't have a choice. I'm tired of reading post with nothing more than "Tell your administator to upgrade". I know. Stop. If I see it its getting flagged as spam. I don't really understand what about …

Member Avatar for diafol
0
154

The End.