39,316 Topics

Member Avatar for
Member Avatar for Martin C++

Hello I need to filter data from database. Use selects the data he need from selectboxes and inputs. Not all inputs must be filled. Those that arent have value of -1. I have put together a SQL statement that should work. Probably would work without the prepare but I need …

Member Avatar for Martin C++
0
246
Member Avatar for wareez

Please help me to correct this, because its relpy: Access denied for user 'flasycom@localho'@'localhost' (using password: YES) and this is my database setup <?php //################################################################# //Only edit the following 4 varibles $SQLhost = /* SQL Host */ 'localhost'; $SQLuser = /* SQL Username */ 'flasycom_admin'; $SQLpass = /* SQL Password …

Member Avatar for Banderson
0
237
Member Avatar for sanbhu2105

<?php session_start(); include_once("db_connect.php"); if(isset($_POST['update'])) { $ret_id=$_POST['ret_id']; $ret_name=$_POST['ret_name']; $ret_street=$_POST['ret_street']; $ret_city=$_POST['ret_city']; $ret_phone=$_POST['ret_phone']; $ret_fax=$_POST['ret_fax']; $ret_user_fname=$_POST['ret_user_fname']; $ret_user_lname=$_POST['ret_user_lname']; $ret_email=$_POST['ret_email']; // checking empty field if(empty($ret_name) || empty($ret_street) || empty($ret_city) || empty($ret_phone) || empty($ret_fax) || empty($ret_user_fname) || empty($ret_user_lname) || empty ($ret_email)) { if(empty($ret_name)) { echo "<font color='red'>Retailer Name field is empty.</font><br/>"; } if(empty($ret_street)) { echo "<font color='red'> …

Member Avatar for Zagga
0
154
Member Avatar for Szabi Zsoldos

Hi guys, I don't even know where to start, the ideea is that I want to develope an API that responds with certain data, but I don't have a clue for what to look. The ideea is that there is a panel like google analytics but with no stats, but …

Member Avatar for diafol
0
288
Member Avatar for cmgdev

Please help. I can not figure out how to add a simple link to an image when the image is called through PHP. I have tried making it work a number of ways but I am only intermediate in HTML and still trying to learn PHP basics. The code is: …

Member Avatar for JorgeM
0
841
Member Avatar for Zababa

Hello there guys! :) It's been quite a while since the last time I've been here. I am currently working on topics different from my usual, and I have found myself baffled by a problem. So, here goes: I am working on a web application which collects user fiscal data. …

Member Avatar for chrishea
0
207
Member Avatar for Eagle.Avik

hi i am new to php and mysql, i am experimenting with a script for saving data to mysql database. and fetch the data on other page, i managed to get both of them without any trouble. But Here is the one problem. I added a additional input function to …

Member Avatar for Eagle.Avik
0
433
Member Avatar for spyros.lois

hello i try this form and script _____________________________________________________ <form action="insert.php" method="REQUEST">backend - insert new record<br> id: <input type="number" name="id"><br> manufacturer: <input type="text" name="manufacturer"><br> transferrate: <input type="text" name="transferrate"><br> cache: <input type="text" name="cache"><br> size: <input type="text" name="size"><br> RPM: <input type="text" name="RPM"><br> use: <input type="text" name="use"><br> price: <input type="text" name="price"><br> seller: <input type="text" …

Member Avatar for diafol
0
272
Member Avatar for KingGold171

Hello fellow PHP trained monkeys :D I am trying to find a way to have a basic CMS management system but to be dynmic on one PHP page only, the most part works for the first time of selecting the username, and then from either add or minus buton. The …

Member Avatar for diafol
0
317
Member Avatar for spyros.lois

hello i try this form and script _____________________________________________________ <form action="insert.php" method="REQUEST">backend - insert new record<br> id: <input type="number" name="id"><br> manufacturer: <input type="text" name="manufacturer"><br> transferrate: <input type="text" name="transferrate"><br> cache: <input type="text" name="cache"><br> size: <input type="text" name="size"><br> RPM: <input type="text" name="RPM"><br> use: <input type="text" name="use"><br> price: <input type="text" name="price"><br> seller: <input type="text" …

Member Avatar for mmcdonald
-1
172
Member Avatar for mhd_arif123

Hi there ! The code(in model) given below generates the list structure: function getNavigation($parent_id = 0, $show_product = 0, $flg = 0 ){ $query = $this->db->get_where('categories', array('parent_id' => $parent_id)); //var_dump($query->result()); //exit; if($query->num_rows() ){ $this->navigation .= '<ul id="browser" class="filetree">'; foreach($query->result() as $v){ $this->navigation .= '<li> <span class="folder">'; if($flg) { if($v->categories_id == …

Member Avatar for diafol
0
1K
Member Avatar for dlaverick

I am running a custom query for my recent posts, code can bee seen at: http://pastebin.com/CFZdP3c9 This code is just for my recent posts, not the actual page content. My problem is that it shows my current page post item and I cannot figure out how to pass over it. …

Member Avatar for diafol
0
304
Member Avatar for kantigniter

I’m pretty much new to codeigniter and PHP. I need help with insertion of data in the db from multiple clone form fields(not using implode, I have used implode and managed to push data which I will post here), this from clone form fields(If I click add, it should display …

Member Avatar for renierdbruyn
0
2K
Member Avatar for Tinnin

Just a curiosity really. I can't find a reason for it anywhere. Why doesn't php mail() mailto allow you to use a semicolon to separate the email addresses?

Member Avatar for cereal
0
919
Member Avatar for Dani

We use `date_default_timezone_set('GMT');` and, subsequently, all timestamps are stored in our database in GMT format. Each individual community member specifies their GMT offset from a dropdown menu in their profile. Then, when we display the timestamps, we add the GMT offset to the timestamp while pretty printing it. The problem …

Member Avatar for pritaeas
0
134
Member Avatar for veledrom

Hi, I got "Fatal error: Call to undefined function printer_open() in C:\wamp\www\TEST\printer\index.php on line 3" when I run code below. [CODE]<?php $printer = "\\\\lukaka\\hp LaserJet 1320"; if($ph = printer_open($printer)) { // Get file contents $fh = fopen("testfile.txt", "rb"); $content = fread($fh, filesize("testfile.txt")); fclose($fh); // Set print mode to RAW and …

Member Avatar for crazy_chanaka
0
2K
Member Avatar for dbalas

Hi! I need help with bulk export of files from database to folder. I have upgraded a system that i made and now instead of storing files to database i store it in folder and save path to database. Now i have a problem because there are around 1500 parts …

Member Avatar for dbalas
0
260
Member Avatar for spothao

I am doing a project using the windows azure mobile service, and i want to implement it on php page, is it possible to make it on php page instead of html? because on the tutorial only have html and they are using other localhost as well Help!!!

Member Avatar for veedeoo
0
370
Member Avatar for cgull

Hello, I need help with htaccess and a sub domain. I have a site I developed with ci 2.1.3 My folders structure is: c:\sites\mysite c:\sites\mysite\application c:\sites\mysite\system c:\sites\mysite\public_html\index.php c:\sites\mysite\public_html\assets In the public_html folder I have the htaccess file: RewriteEngine On RewriteCond $1 !^(index\.php|assets|images|robots\.txt|captcha) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ …

Member Avatar for cereal
0
723
Member Avatar for numan.nomi.7186_1

I want to know the code for file handling function write(). Its should add a text in file from user input and shoe it to the screen in new window.Kindly if any one know the code reply here its urgent. Thanks.

Member Avatar for ryantroop
0
210
Member Avatar for renierdbruyn

Hi there, I am developing a site for a recruitment agency, and I have now come to the point where I need to develop a ranking system of some kind to pull the best candidates for a particular job out of the database and display it or notify the candidates …

Member Avatar for renierdbruyn
0
506
Member Avatar for judas princess

i have created a database with username,age,contact,email.now i want a column in which we can show whether the user is active or not.what sholud we do?if we create a column named as status,what sholud be type of column?boolean or binary or something else...??? i am using php to edit delete …

Member Avatar for pritaeas
0
231
Member Avatar for Shikha_1

* how to set random string that refresh after every 5 min itself without reloading the webpage in php ?

Member Avatar for diafol
0
154
Member Avatar for Shikha_1

how to implement ssl in wamp 2,apache 2.2.22,php 5.3.13 ,step by step procedure

Member Avatar for diafol
0
108
Member Avatar for PriteshP23

I am not able to insert data from CSV file with "¤" Character. Please help me to solve the problem. Thanks a lot in advanced. CSV File: FirstName¤LastName¤City¤Year |$| Bill¤Gates¤NW¤2013¤|$| David¤Beckham¤London¤2010¤|$| PHP Code: $csv_file = "Contacts.csv"; $csvfile = fopen($csv_file, 'r'); $theData = fgets($csvfile); $i = 1; do { $insert_csv = …

Member Avatar for PriteshP23
0
916
Member Avatar for PriteshP23

How to read **550 MB** XML file in php? I couldn't put data in php file like: $xml =<<<EOT <?xml version="1.0" encoding="utf-8"?> <data> ..... ... </data> EOT; In addition, when i did from command line, it "**kill**" the process. *Any idea ?*

Member Avatar for PriteshP23
0
526
Member Avatar for LegateLucius

i want to do something like this how do you do it? <?php $meat="cow"; <script type="text/javascript"> document.write($meat); </script> ?>

Member Avatar for mmcdonald
0
234
Member Avatar for PriteshP23

I would like to get **all** Equipment values. *I have used DOM Document.* It is reading **ONLY LAST Element**. *Equipment Id: 28*. I need all three. Thanks in advanced. XML File: <?xml version="1.0" encoding="UTF-8"?> -<Physical> <Catalog> </Catalog> -<Installed> -<Equipment> <Id>26</Id> <Ref>Tew12</Ref> -<Characteristic> <CharacteristicName>Height</CharacteristicName> <CharacteristicValue>160</CharacteristicValue> </Characteristic> -<Characteristic> <CharacteristicName>Tilt</CharacteristicName> <CharacteristicValue>30</CharacteristicValue> </Equipment> -<Equipment> …

Member Avatar for PriteshP23
0
592
Member Avatar for cgull

Hello, I am developing a site with CI 2.1.3 I have a blog module, in this blog I have a form to post a comment. I am calling this form inside a view with: `echo Modules:: run('blog/comment');` When I submit this form with ajaxForm, or refresh the page, the values …

Member Avatar for cgull
0
3K
Member Avatar for roseblue

How to add textbox values from a database table depending on user's choice from a combobox",in php wampserver can anyone help me..?

Member Avatar for broj1
0
132

The End.