39,326 Topics

Member Avatar for
Member Avatar for PriteshP23

I want to do in French (By default) & seconadry option is English. I have a *two image flag* on login.php page. It should **ALWAYS** visible in the site. I created two files lang_FR.php and lang_EN.php. *How one set French as default language and translate it according user choice ?* …

Member Avatar for diafol
0
3K
Member Avatar for kantigniter

Hi all, I'm new to codeigniter, and i want to know how to approach or a small example as to how to get the following: 1) If I have a form, and it has fields say asking for number of some category for example: first in a drop down we …

Member Avatar for diafol
0
252
Member Avatar for OsaMasw

I want to create a login system with "**remember me**" option, but am afraid to use cookies because I don't know how to handle the security for it, so I prefer to use session instead, but all session will be destroyed after 30 minutes or when user close the browser, …

Member Avatar for OsaMasw
0
137
Member Avatar for highlite

I need to pass a js variable to a php variable. I know this can't be done directly and I have been trying to do it with ajax but I just can't figure it out. <form name="menu"> <div> <select name="list1" size="1" onchange="setOptions(document.menu.list1.options [document.menu.list1.selectedIndex].value,document.menu.list2,document.menu.list3);"> <option value=" " selected></option> <option value="one">item1</option> <option …

Member Avatar for highlite
0
342
Member Avatar for shelexelex

This code doesnt get into the if statements to check the conditions. Please help me find what is wrong with it. <?php $info=""; if (isset($_POST['RegButton'])) { $FirstName= $_POST['Fname']; $LastName= $_POST['Lname']; $Email= $_POST['Email']; $Phone= $_POST['Phone']; $userPass= $_POST['password']; $repass= $_POST['repassword']; //For password encryption $slt= time(); $salt= $slt; $harshed= sha1($userPass.$salt); if (empty($_POST['Fname'])){ $info= …

Member Avatar for shelexelex
0
270
Member Avatar for GlenRogers

Hi could someone help me out here. I have a frm that has multiple entries. Each entry has 'artist' 'linl' and 'link text'. link and linktext are optional. My code at the minute needs all to be filled in, if I leave link and link trext blank I get errors. …

Member Avatar for pritaeas
0
147
Member Avatar for sree jith

Hi, I have been working on trying to figure out, how to call a php function in javascript, for about two weeks. PS: I don't have code to post because I really don't know how to implement this.

Member Avatar for diafol
0
347
Member Avatar for mpc123

Hi I have an issue where by I have lots of products in a field which are comma delimited I want to replace those product words with a id number that I have in a different table. I currently use FIND INSET to replace a tab to the comma but …

Member Avatar for mpc123
0
213
Member Avatar for sanbhu2105

hello guys, i have 2 tables - tblproduct and tblretprod. prod_id is common in both. i am retrieving records from the tables to display with edit and delete options beside each record displayed. i created an update.php and updprod.php (for edit). update.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> …

Member Avatar for sanbhu2105
0
677
Member Avatar for kantigniter

I have two forms the first one is as follows: ![5364b88b6acff4f96bf8734c448984c4](/attachments/large/4/5364b88b6acff4f96bf8734c448984c4.jpg "5364b88b6acff4f96bf8734c448984c4") In the first one, I enter the customer details and the type of house he wants, and the number of rooms he has, and I have set a session once I hit the next button. This is spanning …

Member Avatar for kantigniter
0
503
Member Avatar for pawan768

Hey , I tried to send some data to different page and want to use it response ... But the problem i face is the code is working properly on my local host but when i put it over web it always gave me an error ... catalog_no=$('#srno').val(); //alert(catalog_no); query="select …

Member Avatar for pritaeas
0
267
Member Avatar for lakmal411
Member Avatar for meabed

Better way to find String in PHP ! instead of substring and other php function , This function takes Start and End , and it will return the String in between in another variable ! you can call it easily :)

Member Avatar for LastMitch
1
310
Member Avatar for masocha

l am trying to do a facebook autopost. Everything works fine if l supply my userid. However l need to get the id of the currently logged in user. $faceboook->getUser() returns 0 every time. l know the code is configured properly coz l can post to my own profile

Member Avatar for LastMitch
0
97
Member Avatar for eternalhour

Hi Daniwebbers, I've created a web form and code in order to reset/clear the form with a button. However, in a specific circumstance, the form only resets properly if I go to a separate page then come back to the form and reset it. It only happens directly after I …

Member Avatar for eternalhour
0
210
Member Avatar for nexocentric

I have an interesting problem and have searched the internet, but haven't yet found an answer. Consider the following function: function get_setting_values_from_file( $parameter ) { exec("/usr/var/binary --options $parameter", $output, $return); $settings = file( $output[0] ); } I need to unit test a similar function. I am currently using phpUnit for …

Member Avatar for nexocentric
0
958
Member Avatar for PriteshP23

I had saved files in folder "uploads".I want to display uploaded filename in the table. There are two files. london.jpeg & usa.pdf Table: no Name File 1 abc london 2 xyz usa When one click on london or usa, one should able to see the file. I need urngent help. …

Member Avatar for PriteshP23
0
461
Member Avatar for pravaut

hi all i have this api but can not figure out for the life of me how to echo specific data from the api i am new-ish to php so any help would be great thanks in advance <?php /* Examples // Setup API $API = new LodestoneAPI(); // Search …

Member Avatar for diafol
0
342
Member Avatar for davidkroj

Hello, Just making a plan for new website of wordpress. I am wondring about RSS feed and sitemap.xml of website. How we can create in wordpress. Also let me know when we make RSS feed in html or core php there we can use tool for Rss creation and sitemap. …

Member Avatar for davidkroj
0
250
Member Avatar for anil14353

I'm Anil kumar i want to build a dynamic mega drop down menu using PHP. how to create table structure? how to write the code for doing this? please help me.

Member Avatar for anil14353
0
2K
Member Avatar for Shikha_1

<?php include("DBconnect.php"); //Retrieving data from html form $username =$_POST[ 'username' ]; $email =$_POST [ 'email' ] ; $status='verify'; // A salt is randomly generated here to protect again brute force attacks // and rainbow table attacks. The following statement generates a hex // representation of an 8 byte salt. Representing …

Member Avatar for pzuurveen
0
131
Member Avatar for ctkam

have 2 problem in my index page issue 1 have created a menu header - It is confirmed valid and can be use but the thing is, when ever i go back to home link - index page from other page, all the links is disable to be click but …

Member Avatar for ctkam
0
218
Member Avatar for eburlea

Hello. I have a form with captcha element. The text field displays on the right of the image. How can I make it displaying below the image? $path = Zend_Controller_Front::getInstance()->getBaseUrl(); $captcha = new Zend_Form_Element_Captcha( 'captcha', array( 'label' => 'Type the characters you see in the image below:', 'attribs' => array('id' …

Member Avatar for LastMitch
0
222
Member Avatar for aadebayo

Hello I have almost completed the code for pdf_labels. However, I am stuck on the fronts. First, the format is not exactly as it should be. Please follow the following URL to see what I am talking about. [URL="http://www.weststreet.org.uk/MembersDBLive/reports/labelTest.php"]http://www.weststreet.org.uk/MembersDBLive/reports/labelTest.php[/URL] As you can see, it starts with label 5 instead of …

Member Avatar for LastMitch
0
198
Member Avatar for SQLpower

Hello, I created an XBAP web application which I already implemented on my website but I am wondering if it would be possible to pass PHP variables like session etc. to the app itself? I know it's possible with ASP.net, but I am not sure for this one. For example, …

Member Avatar for LastMitch
0
230
Member Avatar for shhh

Fatal error: Call to undefined function session_register() in C:\xampp\htdocs\4\admin\checklogin.php on line 33 <?php error_reporting(0); $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="phplogin"; // Database name $tbl_name="members"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); …

Member Avatar for Zagga
0
346
Member Avatar for strongpot

Hello, I'm trying to send an email containing a variable. My variable ($to = $row_Recordset1['email'] ;) isn't working. When i echo it i get nothing and no email is received. When i put in a specific address rather than a variable it works just fine. Anyone know what I'm doing …

Member Avatar for strongpot
0
276
Member Avatar for sanbhu2105

i have the below code which is populating my drop down with the product names stored in tblproduct. the price of the products are stored in another table called tblretprod. the common field between the tables is the prod_id. when i am selecting the product name, the price related to …

Member Avatar for EvolutionFallen
0
332
Member Avatar for diafol

ANybody had a look at the new php.net beta site yet? Whaddya think? The old site was horrible - design-wise. Why do techies leave design as an afterthought? With all the wonderful ideas out there, they stick with that 1980's feel. Anyway, enough of that, how about the new one? …

Member Avatar for diafol
0
229
Member Avatar for Abbas Ansari

I have a problem, Whenever I add the number to my session, I recieve an error say **Undefined index: cart_1 in D:\wamp\www\MiniCart\cart.php on line 100** And when I press the add key the error repeats on top yet still giving the output and upon refreshing it works fine and adds …

Member Avatar for Abbas Ansari
0
137

The End.