39,323 Topics
| |
| Hi I'm having issue of understand how to **echo** a variable when the `class` is `extended`. I have **2** files. This is my **index.php** file: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>OOP Example</title> <?php include("class.php"); ?> </head> <body> <?php $mitch = new person("Mitch Last"); echo "Mitch's full … |
i am facing another issue. i want to delete row via ajax and fadeout. i have write below code. this is successfully deleted the row but do not fadeout. var parent = $(this).parent().parent(); $.ajax({ type: "POST", url: "delete_order.php", data: "id="+id, success: function(){ row.find("td").fadeOut(1000, function(){ $(this).parent().remove();}); } }); return false; | |
error:Notice: Undefined index: username in C:\xampp\htdocs\E_COMMERCE\INCLUDE\header.php on line 20 login in information: so i have a checkbox called "$remember_p". if check box is on than i want to set cookies but if its not on than i want to set session. if($remember_p == "on") { //cookies doesnt get destory when … | |
i am trying to store image in folder and 2nd part is store image name in database. this works fine but the problem is that no matter how many images u upload, there is only one image in folder name 0.jpg. $sql = mysql_query("SELECT * FROM item WHERE image_user_name = … | |
i'v 1 multidimensional array from where i just want to print where (parent==0) by counting. It suppose to provide me 2 value but when i write return method on line-32 it show me d 1st one & whn write on line-35 , it show me the last one. how can … | |
Hi everyone, I'm having eerors with my php code and here's the errror code that i'm recieving: > Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /home/w0638385/public_html/blog/index.php on line 9 > > Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/w0638385/public_html/blog/index.php on line 22 … | |
hi friends, here is my problem i'm designing a page with no. of checkboxes but not able to insert its value in mysql... here is my php code: **<?php $host="host"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="packtest"; // Database name $tbl_name="test"; // Table name // … | |
I am using this soap call function to get values from wsdl .I got response ,but not any data from the server. here is my code please help. $client = new SoapClient("http://www.alphamax3.com/AM3WebApp/services/PropertySearchServiceSoap?wsdl", array('trace' => 1)); $result = $client->searchInstrument( array('instrumentSearchRequest' =>array('searchInstrument'=>array('number'=>1)) )); //$property = $client->searchMap(); //$property = $client->searchInstrument(); //echo "REQUEST:\n" . … | |
I need to pass parameters to my xml nodes like <NewsService FormalName="Feed" link-url="http://www.tv.com/">http://www.tv.com/img/UTv.jpg</NewsService> here newsservice is my node and FormalName and link-url are my parameters. Below specified is my code .There i have read a rss feed and converted that data to xml besides i have added some information from … | |
![photo](/attachments/large/4/photo.PNG "photo") how can i build a calendar like this? Year View and can choose a day to view the event? i just need a simplest version. any help will be appreciate. thanks in advance. | |
| I am reading data from a mysql database and displaying it on a web page for the user to make changes. One of the values that I am getting from the database is to be displayed in a Select tag: Manufacturer: <select name="Manufacturer" tabindex="1" > <option></option> <option>Aprilia</option> <option>BMW</option> <option>Moto Guzzi</option> … |
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 … | |
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 … | |
I downloaded easy php to run php file but it is still not working. I am confused. | |
<?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. | |
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 … | |
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 … | |
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 … | |
How would I change the folder path in this? or what would be the best way? `(file_exists ($this->jam.'.txt'))` | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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" … | |
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 = … | |
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. | |
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). … | |
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 … | |
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 … |
The End.