39,402 Topics

Member Avatar for
Member Avatar for eburlea

Hi! I have a form in Drupal that is filled up by an user and sent as email to the server. I have created a new module to modify the values in the form after the user submit it and to send them to the server with new values. Here …

Member Avatar for pritaeas
0
187
Member Avatar for mattster

Hi folks, I am looking into an IPB forum to be registered at domain.com, for example. I would like a seperate forum on each sub-domain, ie. **forum1**.domain.com and **forum2**.domain.com. Would I have to purchase a seperate licence for each forum, or could I just have them licenced to domain.com and …

Member Avatar for pritaeas
0
171
Member Avatar for Dani

Can anyone point me to a sample use case of a very lightweight PHP-based example of a Google Analytics API pull?? I'm looking for two things: * Registering a pageview * Fetching pageviews per day/week/month/all for a particular page Thanks!

Member Avatar for davidkroj
0
125
Member Avatar for mallows.yum

hi all! i have here a code to delete a record <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db(DB_NAME, $link); if (!$db_selected) { die('Can't use ' . …

Member Avatar for mallows.yum
0
134
Member Avatar for LeonardK

Hi There, I got a saved query in my database like this: # id rapport_query # 12 SELECT tablename.tablerow, tablename.tablerow FROM tablename Now what i want is to do execute this query with a php script and put the results in a array and then make an csv of it. …

Member Avatar for LeonardK
0
155
Member Avatar for deej_uptheowls

http://codecanyon.net/item/ajax-contact-form/full_screen_preview/50846 I bought this contact form that validates and produces a message when its complete. The validation messages are all in with the form. But when I try to integrate it into my page "contact.html", the validation messages popup in a new window "contact.php" and I dont know how to …

Member Avatar for deej_uptheowls
0
698
Member Avatar for bwest

Have you ever tried programming one of these: Showing Page 1 of 17 Go To: 1 | 2| 3….. Well I have written a nifty class that will take care of it for you. You can even change the formatting outside of the class. Call this class right after your …

Member Avatar for LastMitch
1
209
Member Avatar for SirMahlon

which programming language would be cool for a web app that would be able to syschronize sim contacts to a server and could be retrieved should sim be missing by logging on to the web.as well should u get a new sim u can get contacts back on phone by …

Member Avatar for LastMitch
0
276
Member Avatar for hbmarar

we have a form and if we would like to pass some hidden fields.say,username is hidden but required and email and password is what the user form is about:-

Member Avatar for LastMitch
0
152
Member Avatar for SirMahlon

<html> <body> <?php $username = 'root'; $password = ''; $hostname = 'localhost'; //connection to the database $con = mysql_connect($hostname, $username, $password,'contactmanager') or die('Unable to connect to MySQL'); echo 'Connected to MySQL<br>'.'<p>'; mysql_query($con,'INSERT INTO Personalinformation(Name, YearOfBirth, Email,Location,PhoneNumber) VALUES(Peter,2008-03-05,peter@hotmail.com,kasland,0269015748)'); mysql_close($con); ?> </body> </html>

Member Avatar for SirMahlon
0
5K
Member Avatar for adeeb.keyaam

suppose i have a account in a website, and i want to see the users who are members of this website, and my name is also listed there, but i want to remove my name from there, from my account, i can see others name without mine, and this will …

Member Avatar for iamthwee
0
159
Member Avatar for adeeb.keyaam

I want to create a form wizerd or a multi step form, there is a continue button to step forward, `<button type="submit" name="continue" onclick="return validateNow();">Continue</button>` and a previus button to step backward, `<button type="submit" name="continue" value="&lt; Back">Previous</button>`, button type must be in submit format, because i have php in this …

Member Avatar for adeeb.keyaam
0
204
Member Avatar for Maideen

Hi I have a issue in print data directly from clicking print button. Below is my code and working fine. if click print button system sends the data to another page not to printer directly. pls help me HTML page <style type="text/css"></style> <?php include '../templete/header.php'; ?> <Script Language="javascript"> function change_action() …

Member Avatar for IIM
0
1K
Member Avatar for Santosh Bajjuri

Can any one try to guide me through the installation of APACHE AND PHP SERVER with A DATA BASE connectivity.I am currently using WINDOWS 8 64-bit as my OS. I tried so many ways of installing.But couldn't find any way to it. I hope this forum will help me out …

Member Avatar for Webville312
0
156
Member Avatar for davidjennings

Hi All - I am trying to find a solution to the following I am trying to update a form with checkboxes and to compare the value of the data variable $active from the db and if the value =1 then make the checked value as checked if = to …

Member Avatar for davidjennings
0
188
Member Avatar for Dimonai

Hello to everyone, I Have a table inside 2 div's and I need to get the tables id! How can I do this by javascript?

Member Avatar for Dimonai
0
259
Member Avatar for Dimonai

Hi everyone, I'm working in a project where its required a dynamic insertion of a grup of 3 textfields where one hiels dates. So far I manage to do the insertion part, but Im still with the problem of jquery datepicker only working right on the first(original) textfield. I notice …

Member Avatar for Dimonai
0
907
Member Avatar for somewherehot

Hi All We have a web application written in symfony framework (php). It works really well generally. However sometimes some users can not log in using internet explorer. If we clear the cookies / temporary internet files, then it allows you to log in. A few months can pass by, …

Member Avatar for LastMitch
0
146
Member Avatar for davy_yg

Hi, this is navigation. I am trying to utilize link_after or link_before to place a line on the right and left side of the navigation. How to do so ? I've tried this. it's only place the line before the navigation though, not in between each navigation item. header.php [CODE] …

Member Avatar for LastMitch
0
84
Member Avatar for mallows.yum

hello! i have here a code <?php include("include/session.php"); ?> <?php echo $session->username; $sql = "select * from employee where fname like 'pedro'"; // CONNECT KO TO DAPAT SA FORM KO NA SEARCH-FORM $result=mysql_query($sql); $num=mysql_num_rows($result); $row = mysql_fetch_array($result); //mysql_close(); if($row) { $i=0; while ($i < $num) { $empnumber = $row[0]; $fname=$row[1]; …

Member Avatar for LastMitch
0
550
Member Avatar for mjsmitten

My url's look like this //classifieds/search/region,something/ I want it to rewrite to //classifieds/state/something/ note: If i look at the url in the browser the words after "classifieds" are greyed. my .htacces has this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule …

Member Avatar for LastMitch
0
154
Member Avatar for adishardis

Hi, everyday I get a xml file that looks something like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <account-information report-date="2012-12-31T23:59:59.000+01:00" xmlns="http://www.XXX.SE/XXX"> <account> <account-number>00000001</account-number> <status>Open</status> <application-array> <application-type>NEW</application-type> <application-date>2013-01-11</application-date> </application-array> <application-array> <application-type>TOP</application-type> <application-date>2013-04-18</application-date> </application-array> <account-information-type> <first-name-main>John</first-name-main> </account-information-type> </account> </account-information> Today I import each account to our db with only the latest application-array (application-date). The …

Member Avatar for adishardis
0
211
Member Avatar for rebelbelle

{ global $wpdb; $category_id = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name = '" . addslashes($category_name) . "'"); return $category_id; } function shorten($string, $wordsreturned) { $retval = $string; $array = explode(" ", $string); if (count($array)<=$wordsreturned){ $retval = $string; } else { array_splice($array, $wordsreturned); $retval = implode(" ", $array); } return $retval; …

Member Avatar for broj1
0
868
Member Avatar for mpc123

Hi I am trying get a query to join 2 tables and a result on the information in both. At the moment I have the following $query = "SELECT * FROM TABLE1, TABLE2 Where 'TABLE2.field1' LIKE '%TABLE1.field2%'"; The problem is TABLE2 has a field with names in but TABLE1.field2 has …

Member Avatar for mpc123
0
155
Member Avatar for johnny.lhc.9

I got this problem when open this files,how to solve this problem? Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/indomari/public_html/administrator/includes/connect.php on line 64 this code locate at line 64 <?php set_time_limit(0); if (isset($_POST["scan"])) { $url = $_POST['traget']; echo "<br /><span class='start'>Scanning ".$url."<br /><br /></span>"; echo "ReSulT:<br …

Member Avatar for johnny.lhc.9
0
259
Member Avatar for arunpawar

So I am trying to create a blog in php and mysql. I am not sure how this is going to work out there. Just let me know if i am on the right track with the DB. Let's say i have database called blog with table user and posts. …

Member Avatar for pritaeas
0
202
Member Avatar for fheppell

This php code updates a database entry. The form consists of a checkbox (name = download) and a hidden field so I can check it has actually been sumbitted(name = updated). When I run this code it gives me the success message but the database remains unchanged. Why is this? …

Member Avatar for fheppell
0
164
Member Avatar for MattD00

I have set up a cookie in JavaScript to store the change to the stylesheet. The cookie is loaded using <body onload="set_style_from_cookie()"> This cookie was working fine until I set a session cookie in PHP to verity if a user was logged in session_start(); if(isset($_SESSION['username'])) { $user = $_SESSION['username']; } …

Member Avatar for riahc3
0
345
Member Avatar for Casperjames

Hello all, This is my first site project using codeigniter. The frontend is all html and I am using codeigniter for the backend. Everything was working fine until I added the frontend files and modified my htaccess file to not redirect to index.php but instead to index.html. htaccess looks like …

Member Avatar for cereal
0
416
Member Avatar for fheppell

I have a snippet of mysql which is filled in with two variables: SELECT `download` FROM `images` WHERE `owner_un`='$owner' AND `url`='$url' The `$url` variable comes directly from a URL variable. This input should only ever contain alphanumeric characters, if this helps. Thanks for any help

Member Avatar for fheppell
0
213
Member Avatar for fheppell

I've got a mysql query that should return a single cell SELECT `download` FROM `images` WHERE `owner_un`='$owner' AND `url`='$url' How would I echo the result of this? Thanks for any help

Member Avatar for minitauros
0
243
Member Avatar for Albert Pinto

Hi people, Need some help in keeping query string values intact while moving across pages via pagination. Thing is that I'm fetching records from mysql table and displaying it in tabular format. Its like... I have a page "records.php" In phpmyadmin there is "userdetails" table with columns as...... first_name, last_name, …

Member Avatar for diafol
0
1K
Member Avatar for davy_yg

Hello all, this might not be related to php (I don't know which forum I should post this topic) so I thought may be someone could help me out. How to edit pdf file ? Is there any specific software to edit adobe pdf file ? I have tried adobe …

Member Avatar for Webville312
0
75
Member Avatar for Harmeets

Hi everyone i am installing opencart on my local server but it's showing error **Warning: CURL extension needs to be loaded for OpenCart to work!** i have already strated from php extention Php_Curl can any one help to me in this..

Member Avatar for pritaeas
0
100
Member Avatar for mallows.yum

hi all! i have here a code. <?php /** * Main.php */ include("include/session.php"); ?> <html> <head> <title>Export to Excel</title> </head> <body> <form action="saverec.php" method="post"> <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: ' . …

Member Avatar for arunmagar
0
369
Member Avatar for divyakrishnan

Hi.. Any PHP code to display the IPaddress of all systems which are connected in a LAN ? Thanks in advance

Member Avatar for |-|x
-1
3K
Member Avatar for klemme

Hi all, I have a very simple question, for many of you.. I need to write out a select list like this : From table pages, I need id and link to fill up the options in my select list. But I need to tjeck in another table, if there …

Member Avatar for klemme
0
173
Member Avatar for jcomputing

I have a contact form in a popup div. I want the contact form to redirect to the popup div with an error or a successful message when form is completed obviously depending if message was sent NOT A PAGE. Please can someone help me. <?php //set variable error var …

Member Avatar for Squidge
0
342
Member Avatar for hachemal

I am looking for input form that you can enter the data to submiyt into Mysql database. the form should have these conditions: Invoice: auto generate Date: date pickerfrom pop up calendar choose client from drop down list then option to add/remove rows rows would have: Auantity, Product(drop down), category(drop …

Member Avatar for hachemal
0
289
Member Avatar for shilu2

I have tried following code index.php <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>JQuery Popup Demo</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript"> function openOffersDialog(x) { $('#overlay').fadeIn('fast', function() { $(boxpopup).css('display','block'); $(boxpopup).animate({'left':'30%'},500); $('#content').html(x); }); } function closeOffersDialog(prospectElementID) { $(function($) { $(document).ready(function() { $('#' + prospectElementID).css('position','absolute'); $('#' + prospectElementID).animate({'left':'-100%'}, 500, function() …

Member Avatar for mrvijayakumar
0
339
Member Avatar for sriharig

i am working on a mobile verification code wher user can enter his email and his mobile number.then code has to be send to his mobile number,by that code user can login to site. how to achive this target.

Member Avatar for mmyyy
0
517
Member Avatar for mdemetri2

Hi I have some script that I have used for sometime so understand it is out of date code, but it works. I want to amend it so that it also checks a field user_type and on successful login directs each to a differnt page. The code at the moment …

Member Avatar for Webville312
0
2K
Member Avatar for ngonix

Hello. I am facing a challenge in passing a dynamic php variable to an SQL statement i wrote in Jaspersoft iReport. I downloaded the PHP-Jasperserver-integration library and i am managing to open a jrxml file i created in Jaspersoft and then using the libraries to open it in PDF format, …

Member Avatar for ngonix
0
2K
Member Avatar for arunpawar

Here, I have created a php mysql login page. I am a newbie so please also comment on my code too. I have this login page where after entering the correct data i am getting welcome "id" instead of "username". I want to know what i am doing wrong here. …

Member Avatar for arunpawar
0
181
Member Avatar for dina85

i need to update ADMIN COLUMN with $_SESSION variable. however, it does not seem to be working correctly. why? help me plz... require("conn.php"); $sql = "select * from pemohon where id='$_GET[id]';"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) { $sn = $_SESSION['SESS_NAME']; $sql = "update pemohon set admin='$sn',status_key='2' where id='$_GET[id]';"; $result …

Member Avatar for iamthwee
0
184
Member Avatar for McLaren

Hey, I just finished reading book "PHP Team Development" http://www.amazon.com/PHP-Team-Development-Samisa-Abeysinghe/dp/1847195067 and I can say its interesting read, especially should be interesting for project managers. It might look that there are not many technical things and its waste of time on one hand, but its easy read when you are not …

Member Avatar for McLaren
0
253
Member Avatar for Webville312

Hi, I am working on a code that dispatches airtime depending on a schedule that is specified. Now all works just fine. The only problem is that the code executes only once. To throw more light, here is how it is meant to work; 1. An administrator creates a schedule, …

Member Avatar for Webville312
0
143
Member Avatar for amkaos

this is link to code http://jsbin.com/ixupuk/4/edit when my form is loaded into browser OR refreshed, all fields are auto-submitted to mysql database.. i included at the bottom, an if(isset) statement that i couldnt get to work. thanx

Member Avatar for amkaos
0
287
Member Avatar for eburlea

Hi! I have a Zend project and I would like to implement a login form in the header of the site in such a way, that if a user is not logged in, he can use the site, but the form is always there, no matter what pages he access. …

Member Avatar for eburlea
0
695
Member Avatar for kakalahori

i have stored some value into DB table and want to get them displayed on my form with a restriction that the column title in DB and the Value of the previous feild are same and only the cloumn rows are shown inthe following feild in the form....!!!! Cant Figure …

Member Avatar for diafol
0
145

The End.