39,326 Topics
| |
Hi All, Im trying to learn how to use pdo, and am curious to know how i best can deal with allkind off errors. Lets say there is a typo, or im selecting an non existing row etc etc. In my connection, do I have do set anyting different here: … | |
hi guys, i have 2 tables - tblproduct and tblretprod. i insert my product details to tbl product with prod_id being auto increment other fields are prod_name, prod_brand, prod_desc, prod_photo, cat, subcat i hv another table tblretprod with fields id, user_id, prod_id, prod_price i can add my products successfully i … | |
I have not visited PHP/MYSQLI for some time now, and, need some guidance on the following problem: I'm trying to retrive all the data from the given week and just in that week. My table looks like the following: id int(11) type varchar(255) week datetime And as a test data … | |
Hello, I am developing a site with Codeigniter 2.1.3. I am creating a pdf file with mpdf and I save the file in a folder outside the root folder. So my folders look like this: c:/mysite/uploads/mypdffile.pdf c:/mysite/public_html I looked at all kind of tutorials and forum posts about the php … | |
I want to pass data from one function to another function in same controller.And then show that data on a view.This is my code parts.But it gives errors in view.Please can you help me? Model function getEmail($logindata) { $emailentered=$logindata['emailpost']; return $emailentered; } Controller public function Login() { $this->load->view('header'); $this->load->view('userLogIn'); if($_POST) … | |
I have a question about carrying an entire html table from one page to another in a PHP variable. I would have thought that I could do it, but it doesn't seem to want to work It is a shopping cart displayed in a table, and when they accept the … | |
Hello, I have a mysql query $query = "SELECT * FROM comments WHERE commenter_username IN (" . join(',', $list) . ") Or Number IN (" . join(',', $list) . ") ORDER BY comment_id DESC"; I want the query to select one row, the row with the highest id. Then store … | |
Hello, I have a PHP webpage and I want to pass my session to my XBAP app. I created a cookie. $opts = array('http' => array('header'=> 'Cookie: ' . $_SESSION['FILENAME']."\r\n")); $context = stream_context_create($opts); $contents = file_get_contents("http://localhost/WpfBrowserApplicationUltimate.xbap", false, $context); echo $contents; private void btnAbout_Click(object sender, RoutedEventArgs e) { //MessageBox.Show("RichTextPad. © 2014 … | |
I installed WampServer on my Windows 7 Ultilate computer the other day and WordPress yesterday. I attempted to test WP registration in my web site but I never received the registration confirmation email. Is this not possible on localhost? If it is how do I go about getting email to … | |
<?php if(isset($_POST['submit'])) { require_once 'connect.php'; $query=mysql_query("SELECT 'admin_name.admin_name','admin_name.admin_lastname','admin_name.admin_creattime', 'admin_detail.admin_pass','admin_detail.admin_phone','admin_detail.admin_email','admin_detail.admin_gender' FROM admin_name,admin_detail "); if(!$query) { die('nt good fail to select'.mysql_error()); } else{ while($row=mysql_fetch_row($query)): $name = $row['admin_name']; $last = $row['admin_lastname']; $acctime = $row['admin_creattime']; $pass = $row['admin_pass']; $phone = $row['admin_phone']; $mail = $row['admin_email']; $gen = $row['admin_gender']; echo $name." ".$last." ".$acctime." ".$pass." ".$phone." ".$mail." ".$gen; … | |
I have a Simple Pie file! It is not supporting Swedish langague I am trying to fix this but i cant fix it! Can some one help on it?? Input i tried with För första gången kommer vi inte att liverapportera kvällens WWDC-keynote. Vi kommer inte ens att sammanställa en … | |
What does a "private" area of a website involve?Webhooks, tokens, APIs? I am developing a website which will allow registered users to register, make a payment, and then get transferred to an area where they write an online essay in a textarea. I DON'T WANT NON-PAYERS TO GO HERE. The … | |
What's the difference and which are you supposed to use? I typically stick to `else if` unless I am using short tags. Is this correct?? | |
I have some experience of PHP but limited knowledge of handling arrays. My db table has 5000+ rows and 13000 populated fields. I want to create an alphabtical, visible index of the contents of each field, possibly for inclusion in an html page. If this possible, can it be initiated … | |
Take note this was just done for the sake of experimentation to headstart my journey in CodeIgniter. :D Hello Stackoverflow. Why is it that my page only echoes the username of the given inputs? Could you please tell me on what part did I screw up?? <?php $data = array( … | |
hello, am new here and new to php/mysql coding. i have 2 tables - tbl_prodstd and tbl_products tbl_prodstd - std_id, prod_name, prod_desc, prod_photo, prod_brand tbl_product - prod_id, std_id, prod_name, prod_brand, prod_desc, prod_price, cat, subcat, prod_photo i created 3 pages - add_prod.php, addprod.php, func.php the func.php displays prod_name and prod_brand as … | |
Hello, I am trying to send an email notification to a specific email address. I have a MySQL database in which I hold a product table. Product ID, ProductDescription and ProductQuantity. When the Quantity reaches "0" I want to send an automatic email saying that ProductID is out of stock. … | |
Good Afternoon, I'm looking to connect to a MSSQL database on an external windows server, I'm creating a PHP script (on a linux server) which will pull data from the database so I can enter into my new MYSQL database. I would also be looking to specify the port number … | |
Hi guys, I want to create a crawler to extract some infomation from a page. The problem is that it is written with the Java Wicket Framework and I don't know how to scrape informations from it because I don't know how to submit some post parameters. Is this possible … | |
I have an array of checkbox that is populated with data from mysql database through a query. I can submit the value of the checked checkbox into a table from a database. But I want it to be saved according to the sequence the checkbox was checked by the user. … | |
I'm going back to an old project to apply things I've learned. As a beginner, I was able to figure out how to change the query, based on what was chosen, but it seems like a backwards way to do it, and I'm not sure of a better way. I'm … | |
Hi I am very new to xml and need some help!! I need to extract a certain value from nodes in an xml file, and then store that value in a variable in php. Have struggled through many internet solutions but are still unsuccessful. Any help would be appreciated. Here … | |
I have a form as follows, and I have set the session on clicking next. Each type of house is with a different set of rooms. Say, if I click Independent, I get a list of rooms below. If I choose Villa/Duplex, a different set will pop out. In the … | |
I know this has been asked on almost every forum but I've been at this for two evenings now and I'm stumped. PHP 5.4.6-1ubuntu1.2 Server version: 5.5.31-0ubuntu0.12.10.1 (Ubuntu) Initially I had no access to mysql functions either but that hurdle has been overcome. I've placed the extension modules (.so files) … | |
I need help with the following: I have a taxonomy named location. I have a list of countries using that taxonomy. I need to display the latest posts in a list with the flag and the post title. I created a folder inside theme folder with all country flags. For … | |
Hi, i'm doing a website where the user can add his favourite bands in his profile. But not every band is in the DB, so if the band isn't in the DB it adds the name in the column. this is what i have: if(mysql_query("INSERT INTO bandas_fav(band_fav_id_user, band_fav_id_banda) VALUES('".$_GET['iduser']."', '".$bands_name['banda_id']."')")) … | |
What's the best way to overwrite the show_error() function in Common.php? | |
I am trying to get the meta data information from the below url, but its not working, all I'm getting on the screen is an empty screen. Any kind of help is highly appreciated. $tags = get_meta_tags('http://watch32.com/movies-online/return-to-the-blue-lagoon-2766'); echo $tags['author']; echo $tags['keywords']; echo $tags['description']; echo $tags['geo_position']; | |
My customer wants to integrate his software with a website and whenever he updates offline store it shall reflect on website software.Is it possible if yes please reply. Thanks in Advance |
The End.