39,323 Topics

Member Avatar for
Member Avatar for n.e.priya

hi frds if anyone knows how to import and export table details from db in the form of excel sheet please guide me.note it should cum as xls sheet

Member Avatar for 54uydf
0
107
Member Avatar for Nahiyan

Hi, I have used this code to make a php file with php code in it: [CODE]<?php $fn = 'connect.inc.php'; $string = "<?php $mysql_host = 'localhost'; $mysql_user = 'root'; $mysql_password = ''; $mysql_database = 'main'; @mysql_connect($mysql_host, $mysql_user, $mysql_password) or die("There was an error connecting to the server"); @mysql_select_db($mysql_database) or die("There …

Member Avatar for cereal
0
143
Member Avatar for fobos

Hello everyone, i had a question on how to pull certain content from a website using PHP and cURL and dislay it on a page? So far from the web, this is all i was able to find out, but this just saves the coding into a text document. Lets …

Member Avatar for cereal
0
874
Member Avatar for dashawk

Hi guys, I have a problem on my php code and url passing. [B]What it should do:[/B] There are 3 forms of the php file, the [B]"email"[/B], [B]"item1"[/B] and [B]"item2"[/B]. The [B]email form[/B] is hidden by default on page load, it will only be visible if any of the [B]item1[/B] …

Member Avatar for cereal
0
418
Member Avatar for heshanm

I have created these 2 pages to generate reports. [B][U]teller_reports.php[/U][/B] [CODE] <form id="form1" name="form1" method="post" action="daily_transactions_report.php"> <label>DailyTransaction Reports<br /> <br /> DATE </label> <input type="text" id="demo3" name="date" maxlength="25" size="25"/> <img src="../images/cal.gif" onclick="javascript:NewCssCal('demo3','yyyyMMdd')" style="cursor:pointer"/> <p> <label></label> <label> <a href="tcpdf/examples/daily_transactions_report.php"> <input type="submit" name="button" id="button" value="Generate" /> </a> </label> </p> </form> [/CODE] [B][U]daily_transactions.php[/U][/B] …

Member Avatar for heshanm
0
183
Member Avatar for rakwel10

Pls help me find the problem. All input fields work except for the upload. It doesnt take the file to directory I want. I have error scripts in case there's an error but alert errors are not popping, I dont know why... Help... [CODE] if(isset($_POST['submit'])) { $upload_errors = array( UPLOAD_ERR_OK …

Member Avatar for adkhan
0
136
Member Avatar for sibymary

hi friends, i want to search the data from the mysql database in html form and display that searched data in html form...can u give script for this...

Member Avatar for digwnews
0
58
Member Avatar for s0bigg

I am facing a strange error when I execute a php mail script. Its related to server could not verify the sender. I see following error: Failed to add recipient [email]email@domain.com[/email] [SMTP: Invalid response code received from server (code:550, response: Verification failed for unrouteable address Sendor verify failed)] Would you …

Member Avatar for pritaeas
0
530
Member Avatar for uselessninja

Hi .. How can i display data from database base on a specific date and time... im thankful if someone help me

Member Avatar for uselessninja
0
97
Member Avatar for Dragonbaki

Hi guys., I have trapped in a very critic situation. I need to upload files without any restriction of file size. I have a uploader developed using Flash and PHP. I have changed the settings in php.ini as follows upload_max_filesize = 100M post_max_size = 128M memory_limit = 512M max_execution_time = …

Member Avatar for Dragonbaki
0
164
Member Avatar for haimz

Hello evryone :) By saying disable bots to my site i meen: That no one can do "file_get_contnst","cURL","get_meta_tags" or things like that to my site .. How can i disable that for others? Thanks, and sory for bad english .

Member Avatar for cereal
0
108
Member Avatar for shobe089

hello there. i was just wondering.is it possible to get the text display of your div and place it in a variable? if so, how should i do it? i've been searching for a solution in this problem but i can't find anything.thanks in advance.

Member Avatar for fobos
0
535
Member Avatar for jesyka82

I am developing a project for a client with a single table in the database for users which includes information about each user, including a field for the userID of a user who referred them. What I need to do is query the "referrer" field of each user record and …

Member Avatar for cereal
0
129
Member Avatar for mrhankey

hi guys, i have a site which is built using php/mysql with some jquery etc in it. is there an easy way to create an offline installation package of this which syncs to the online version? what is the easiest way to do this? thanks again for the help

Member Avatar for cereal
0
45
Member Avatar for mwenyenia07

i downloaded cronjob bootstrapper and edited as shown: #!/usr/bin/php [CODE] <?php /* |-------------------------------------------------------------- | CRON JOB BOOTSTRAPPER |-------------------------------------------------------------- | | By Jonathon Hill (http://jonathonhill.net) | CodeIgniter forum member "compwright" (http://codeigniter.com/forums/member/60942/) | | Created 08/19/2008 | Version 1.2 (last updated 12/25/2008) | | | PURPOSE | ------------------------------------------------------------- | This script is …

Member Avatar for rch1231
0
955
Member Avatar for cliffcc

The implode function is not worked! I want to show the string as follows; id-101-102-103-104-105 [code] $handle = fopen($_FILES['file']['tmp_name'], "r"); while(!feof($handle)) { $data = fgets($handle); $listing = explode(",", $data); $id = $listing[0]; $name=$listing[1]; // this is second column data. $telephone = $listing[2]; $email = $listing[3]; $id1 = implode("-,$id); echo "id …

Member Avatar for cliffcc
0
374
Member Avatar for cliffcc

What is the error below, i cannot use it ? The result is blank page! Thanks! [code] <h2>Search</h2> <form name="search" method="post" action="search.php"> Seach for: <input type="text" name="find" /> in <Select NAME="field"> <Option VALUE="fname">First Name</option> <Option VALUE="lname">Last Name</option> <Option VALUE="info">Profile</option> </Select> <input type="hidden" name="searching" value="yes" /> <input type="submit" name="search" value="Search" /> …

Member Avatar for cliffcc
0
122
Member Avatar for klemme

Hey, I have all pages in my site, coming from the DB, and I get urls like this: [B]enkeltwebdesign/index.php?sid=1&titel=FORSIDE[/B] The name of my site: [I]enkelt-webdesign.dk[/I] Does someone know how to write the correct mod_rewrite, so I can change the urls to: enkelt-webdesign.dk/forside (forside = home) enkelt-webdesign.dk/webdesign (...) [I]etc etc[/I] So …

Member Avatar for klemme
0
248
Member Avatar for SolidSora

I'm trying to use a for loop to convert a number into star images. My program reads from an SQL database to take a rating, which that works fine, but when I try to use a for loop it's a problem due to it being inside a table. Here's my …

Member Avatar for SolidSora
0
119
Member Avatar for spanners

Ok, probably quite a basic question, but here goes: I'm creating a string that will hold the contents of an xml file that is being created dynamically. here's an example: $new_xml = "<?xml version='1.0'?>-<params>-<param><key>[COLOR="Green"]$clubName[/COLOR]</key><textValue>" [COLOR="Red"].$club_name[/COLOR]; Having looked at this, I've suddenly realised that the string part is still going to …

Member Avatar for spanners
0
176
Member Avatar for matleeds

Hi there, I'm a .net developer and I've inherited a partially complete php project. I'm trying get part of it running on my pc and am running into some issues due to my fairly limited knowledge with php/apache web server. I'm using Windows Vista, I have Apache HTTP server 2.2 …

0
67
Member Avatar for cipcip

Hi, I have a question about htaccess. I have the following code: [CODE]RewriteRule ^([0-9a-zA-Z\-\_]+)$ ./profil.php?user=$1 [/CODE] This of course suports numbers, letters, capital letters, dash and underscore. If I add a \. for it to support a dot, it gives me an error. How to add dot ? Also, how …

Member Avatar for vibhaJ
0
117
Member Avatar for lobebe

Please can some help me with the error in the code below. thank you in anticipation. [CODE]<?php $obj = new Unit(); { global $database; $Unit = $obj->select_row_query ("SELECT `reservation_extras` FROM `".$obj->get_table_name()."` WHERE `id` = '".$_GET['PropertyId']."' AND `published` = 1", 1); $rexzz=explode(",", $Unit->reservation_extras); $i=0; $total_ext=0; if(!empty($Unit->reservation_extras)||$Unit->reservation_extras=='[end]'); } foreach($rexzz as $rexz) { …

Member Avatar for lobebe
0
211
Member Avatar for mwenyenia07

i installed ubuntu 10.04 and had an application supposed to regularly send mails. initially it was workin but after updates, it stopped. i have tried to re-configure php.ini but still the problem persists. i have also restarted sendmail but in vain. help get out of this problem please.

Member Avatar for cereal
0
79
Member Avatar for Buppy

Hi, I'm having an issue with session storing. I have installed cakePHP and it has a default table created in the database for sessions (cake_sessions) and 3 fields: id, data, expires. Is there any way to change the session domain? For example, i want to pass the session data to …

0
55
Member Avatar for lalaka90

hello... i need help from you all.. i am still new in php.. i hope you all can help me.. i am desperate. i can't delete delete data(delete multiple row from mysql using check box). this is my coding.. the cooperation is greatly appreciated. i have 2 file this is …

Member Avatar for vibhaJ
0
314
Member Avatar for newbie14

Dear All, I have function where I read from a mysql table a set of value. Part of my codes is like this [CODE]echo "<tr id='gridRow'> <td >$count</td> <td> <input type='checkbox' onClick=selectAndUpdate('$row1[size]')></td> <td> {$row1[SerialNo]}</td> <td> {$row1[InHouseBranding]}</td> <td> {$row1[BrandCode]}</td> <td> {$row1[size]}</td> <td> {$row1[Pattern]}</td> <td> {$row1[EntryStatus]}</td> </tr>";[/CODE] A sample row generated is …

Member Avatar for vibhaJ
1
97
Member Avatar for spawn2004

hi everybody i have a question : I am writing a website and i havee a drop down menu. when the user is logged out he can see part of the menu and when hi is logged he see the other part. i hide the menu with <?php if(isset($logged)){ ?> …

Member Avatar for spawn2004
0
153
Member Avatar for whiteyoh

Hi All, Im in the middle of making a dynamic multi part email and have come accross a snag. The function receives a file, and depending on the content of that file it then processes the relevant headers and mixed parts, however, rather than echoing the items i need to …

Member Avatar for whiteyoh
0
138
Member Avatar for seularts

I need a bit of help to make a connection to a mysql DB with a function and then create an admin table. I got this far: [CODE] function dbconn($db_host, $db_username, $db_pass, $db_name) { /* Global research function */ global $researchDbLink; if($researchDbLink) { return $researchDbLink; } /* Connect to DB …

Member Avatar for seularts
0
103

The End.