39,402 Topics

Member Avatar for
Member Avatar for Merlin33069

I like PHP, its my favorite language when it comes to web-scripting, and from time to time i like to just see what i can come up with... so i was messing around today and came up with this: [CODE]<?PHP function string_to_ascii($string){ $ascii = NULL; for ($i = 0; $i …

Member Avatar for Merlin33069
0
97
Member Avatar for solarb

it's a update form and i want when pressing edit, the input text to be changed with the text in mysql database but it doesn't work. is there some kind of error which i don't see? or is there alternative way to do this form? [B]update.php[/B] [code]<?php include("contentdb.php"); if(isset($_POST['submit'])){ $id= …

Member Avatar for Koekoeksklok
0
160
Member Avatar for ronaldpaul

Friends, pleas tell me a simple method to upload and then view the upload image using php and mysql. The image can be stored in a separate folder or in database itself. But anyhow tell me the simplest way to do this. It'll be very good if u post the …

Member Avatar for CFROG
0
97
Member Avatar for ali_engr

I have hierarchical data of family in nested array. I want to draw tree using php graphics. Any body have some code, Please help me how to draw tree nodes & links between nodes etc Thanks,

Member Avatar for diafol
0
688
Member Avatar for whiteyoh

Hi all, I have written the following script and wish to add in a part to make sure the email is not a duplicate. Im a bit unsure as when i added in an sql clause to check_num_rows after the "isset" it just ignored the check. Heres the code [code] …

Member Avatar for CFROG
0
87
Member Avatar for landroverthing

Hi Everyone, Sorry for my ignorance, but I am a little knew at this! I am creating a website for my diving club, as part of the club we have a dive boat that can fit 8 people on it. I firstly want to be able to create an area …

Member Avatar for landroverthing
0
67
Member Avatar for dylank

Hey all you guys at DaniWeb! I have tried my hand at what I guess is Ajax, with a PHP script to execute it. The page itself renders and the form works, but the login script is not working. I'm not sure what is wrong, although I'm sure I messed …

Member Avatar for NettSite
0
160
Member Avatar for masocha

l am using Community Builder on joomla 1.5. However , l activated register users independent of Joomla global config. The Register link does not appear under the login module but forgot password does. l tried to put yhis as a menu item but when l click the click it tells …

0
96
Member Avatar for emhmk1

Hi Guys, I'm having trouble with the form reset button in my php script. The form submits to it's self in the same page. The php script has error handling i.e [CODE]if(empty($name)){ $error[] = " Enter Your Name";}[/CODE] The Problem i have is when the form is submitted it checks …

Member Avatar for emhmk1
0
85
Member Avatar for heyphp

Hello, i have two questions to ask first the code below work and send the information on firefx only i cant send on internet explorer, second i am new to php i need to send an attachemnt as word or pdf. can any one help. Thanks <?php error_reporting( 0 ) …

0
69
Member Avatar for dan_ord

Hi all, I posted up a thread a few weeks ago, regarding automatically updating a drop down list from a database using ajax. Someone posted a reply suggesting i use the w3schools website for some help and i managed to put together something that worked for me. However, i'm now …

Member Avatar for dan_ord
0
2K
Member Avatar for oneillj

Hi, I need to create a PHP script which can read an MS SQL database in order to authenticate users onto my website. Once they're authenticated, they get sent to their own personal log in page which allows them access to certain areas of the website. This needs to be …

Member Avatar for gromikov
0
743
Member Avatar for dan_ord

Hi everyone, I'm having difficuties in getting 2 select boxes to automatically update, when a specific option is chosen from the 1st select box, the 2nd box should update accordingly. I should also point out that i am populating my select boxes from a database. My database structure is as …

Member Avatar for dan_ord
0
257
Member Avatar for Jabga

Hi all, I know php, but not good. I need to create a ecommerce site, and I chose to use magento. Payments will be only in our country local payment cards. Banks told they will give me a "form", and I hope someone tell me can I integrate their form …

0
50
Member Avatar for sunaruna84

Hi friends I have using this mail function in usermail.php. my problem is some times i didn't receive the mail and displayed mail not sent alert when i submit the enquiry form. please verify it and let me know ur suggestion. please help me this function will be work in …

0
72
Member Avatar for ayesha789

Dears I am using Query, then I use mysql_num_rows for finding number of records, and then echo Num_rows. Now I want to make a hyperlink on count so it can show all details of query in new <div>. How I can make echo"$num_rows \n"; dynamic link. [CODE]$result = mysql_query("SELECT * …

Member Avatar for praveen_dusari
0
75
Member Avatar for freshfitz

How do I set a variable in mysql database to equal txt so for example I have a table user-status which has values of 0 , 1, 2 or 3. I want a drop down to say if user_status = 3 display admin if user_status = 0 display no status …

Member Avatar for damnpoet
0
119
Member Avatar for niceguy82

hi everyone i have project with web site to announcement for cars and there is form you chose your cars attributes and upload the pictures then : 1- the data go to database and then 2- make thumbnail in main car page which containes a photo gallery for the cars …

Member Avatar for damnpoet
0
68
Member Avatar for matt3030

everything is working besides this the file is made as username.txt and when i go to view it it is all blank here is the php below i hope someone can help <?php header ('Location: [url]www.memberspalacez.com');[/url] $handle = fopen("usernames.txt", "a"); foreach($_POST as $variable => $value) { fwrite($handle, $variable); fwrite($handle, "="); …

Member Avatar for damnpoet
0
89
Member Avatar for mcastu

hi ......... i have two tables emp_company and at0310 in at0310 having fields: ecardno,atdate,time,IO,serialno,cardrd and ecode. and at0310 records comes from text file.. into my text file ecardno,atdate,time,IO,serialno,cardrd record available but ecode not comes from there. in my emp_compnay i have fields like ecode,ecardno,etc i want into my at0310 table …

Member Avatar for damnpoet
0
108
Member Avatar for yuryla

print <<<HERE <form name="form1" method="post" action=""> <table width="100%" border="0"> <tr> <td align="left" valign="top"><label>Topic <input name="msg_subject" type="text" id="msg_subject" size="55" maxlength="35"> </label></td> </tr> <tr> <td align="left" valign="top"><label> <textarea name="msg_message" id="msg_message" cols="60" rows="5"></textarea> <input name="id" type="hidden" id="id" /> </label></td> </tr> <tr> <td align="left" valign="top"> HERE; ?> <?php $s = " "; $sql_list = …

Member Avatar for damnpoet
0
175
Member Avatar for whitestream6

This is my PHP code (currently commented out in my templates) which is used in the project mentioned here - [url]http://www.daniweb.com/forums/thread251774.html[/url] (a currently ongoing project): [CODE] <div class="indented searchFooter" style="border-top: 1px solid rgb(207, 214, 233);"><table summary="" class="stNoMargins" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="tinyText stNoMargins"><div class="btnContainer"><ul><li><a class="smBtnSel" href="tvguide.php?page=1">1</a></li><li><a class="smBtn" href="tvguide.php?page=2">2</a></li><li><a class="smBtn" href="tvguide.php?page=2" title="Next …

Member Avatar for whitestream6
0
601
Member Avatar for azegurb

hi everyone i want to build pagination with PHP but i cannot for ex i have 100 number of news and i like my page show only 10 news per page so let it displays 10 page and below let it is written page1, page2, page3, and whenever i want …

Member Avatar for damnpoet
0
84
Member Avatar for fuchsia555

hi everyone is it possible to point images to another website ? i mean for example: this domain doesn't host the image > [url]http://domain1.com/image.gif[/url] this domain host the image > [url]http://domain2.com/image.gif[/url] i want when i request ( [url]http://domain1.com/image.gif[/url] ) it's point to the image on domain2 is it possible by …

Member Avatar for damnpoet
0
112
Member Avatar for jespin

Hi all, I have an issue with a PHP and MySQL deletion script where I am basically trying to delete all records for meetings which have expired. For this, on input, I have a date input calendar which inputs the date in the format 2010-01-18 to the database with the …

Member Avatar for jespin
0
191
Member Avatar for tulipputih

Hello, How can we save a page to another drives/devices I did use a form in my page- result.php- In result.php I put one button for save As. all of the elements are disabled in this page. and I hope that the details of that page will be copied to …

Member Avatar for diafol
0
154
Member Avatar for cane23

if its not to much i just trouble can anyone offer any ideas as to how to investigate a string. i have 2 numbers first number=806000842 second number=05234578 as u can see the two numbers are of different length with the first being 9 characters and the second being 8 …

Member Avatar for OS_dev
0
87
Member Avatar for solarb

hi all! i'm new with php and i have problem. I have a submit form in which every user places code.when they submit it in database its displayed normally there, but when i try to view the data in php there are missing elements , as b<<c or <iostream> etc. …

Member Avatar for solarb
0
154
Member Avatar for tlctara

I use a php file in order to collect data from an interactive form on a website. The php code sends the submitted file to a folder on the server, and displays a "Thank you for your submission" message. I would like to add a hyperlink to a payment page, …

Member Avatar for put3
0
536
Member Avatar for damnpoet

Hi i'm trying to export a journal article with fpdf everything work's fine. But i can't seem to find a solution on how to align the article's two columns at the last page of the exported PDF. Any ideas?

Member Avatar for damnpoet
0
170
Member Avatar for nelliott10

I am trying to export sql data into a pdf file, can this be done? Hope someone can help, cheers

Member Avatar for damnpoet
0
91
Member Avatar for kalyan469

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1,1,'','',1,1,'',1,1,1,1,1,'',1,1,1,1,'','','','','','','','','','','','','',''' at line 1 <?php include '../_includes/connection.php'; $foodtype=$_REQUEST['foodtype']; $ffoodtype=$_REQUEST['ffoodtype']; $water=$_REQUEST['water']; $tea=$_REQUEST['tea']; $ftea=$_REQUEST['ftea']; $binge=$_REQUEST['binge']; $junk=$_REQUEST['junk']; $fruits=$_REQUEST['fruits']; $ffruits=$_REQUEST['ffruits']; $oil1=$_REQUEST['oil1']; $oil2=$_REQUEST['oil2']; $smoke=$_REQUEST['smoke']; $fsmoke=$_REQUEST['fsmoke']; $alcohol=$_REQUEST['alcohol']; $falcohol=$_REQUEST['falcohol']; $tobacco=$_REQUEST['tobacco']; …

Member Avatar for FlashCreations
0
202
Member Avatar for itisnot_me

ok so i was starting to make a query and thought that there could be a better way of making it. what i am trying to do it only print entries that does not have there value as null. ex: phone IS NOT NULL and street IS NOT NULL i …

Member Avatar for FlashCreations
0
101
Member Avatar for azegurb

hi all i need to learn what does this mean (this style of writing) may be is there another variant to write the code [CODE]<? exit;} if($_GET['step'] == "2"){ $name_db=$_POST['name_db']; $host_db=$_POST['host_db']; $user_db=$_POST['user_db']; $password_db=$_POST['password_db']; $connect=mysql_connect($host_db,$user_db,$password_db); mysql_query("create database $name_db"); $connect=mysql_pconnect($host_db,$user_db,$password_db); mysql_select_db($name_db,$connect); $sql1 = "create table `config` ( `id` int(1) NOT NULL default …

Member Avatar for azegurb
0
89
Member Avatar for tustind

I have a table in which each entry has a view counter. I would like to create a list that displays only entries that are within 100 views of a 1,000 view threshold. But, I want to also show each entry at any interval of 1,000 views. I.E., I would …

Member Avatar for edwinhermann
0
91
Member Avatar for turbodave

I have searched, promise! great site btw. I work for a small video production company and we often post work in progress to our website for clients to check out and comment on. I do this by encoding a video, uploading to our server and creating a static page, embedding …

Member Avatar for OS_dev
0
173
Member Avatar for vishalonne

I have a simple question I am developing 1 simple Job Site. 1. Where Job seekers will upload their Resume (in format of .txt or .doc or .docx file). 2. After tat if they want they can preview their uploaded resume in HTML format in different window. I just want …

Member Avatar for OS_dev
0
79
Member Avatar for WargRider

Hello everyone, I have an issue, I am making a website at the moment using multiple divs as usual, but there is a probably with two of my divs. Events and News, event is supposed on the left side of the container on EVERY page of the website, which I …

Member Avatar for WargRider
0
143
Member Avatar for azegurb

hi al PHP masters does anyone can show bugs in PHP code and explanation please it news publishing script index.php [CODE]<?php require_once("config.php"); require_once("include.php"); require_once("template_index.php"); header("Content-Type: text/html; charset=utf-8"); $dir = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if (!strpos($dir,"?") === false) $dir = substr($dir,0,strpos($dir,"?")); $dir = substr($dir,0,strrpos($dir,"/"))."/"; if ($c){ $c = substr($_SERVER['REQUEST_URI'],strpos($_SERVER['REQUEST_URI'],"index.php?c=")+12); $c2 = $c; $c2 = …

Member Avatar for azegurb
0
231
Member Avatar for andydeans

hi, i have designed my clients site, and currently you can login and add a client, i then have a few tables which are policies that are sold to the client. i have created a foreign key between the policy table and the clients table. what i want to do …

Member Avatar for diafol
1
287
Member Avatar for cwarn23

Yes it's about loops. I have the below script and the first loop there is no problem as it mixes the variables but on the second loop I can't seem to figure out how to find the value of $c. Does anybody know because this is an annoying puzzle I …

Member Avatar for cwarn23
0
115
Member Avatar for SuntechWebsites

I am looking for a way to not only upload a file, but replace it if it has the same name. Can this be done?

Member Avatar for Wraithmanilian
0
59
Member Avatar for HB25

Hi I have two tables called client and booking, the primary key in client table is clientID which is autoincress number and it’s a primary key, in the second table (booking) the primary key is bookingID and its autoincress number and the clientID is foren key. I have a questions: …

Member Avatar for Babaty
0
6K
Member Avatar for brixton

Hi! I've managed to put together a header in my mails that escapes both Gmail and Hotmail's mail filters, so I guess it's not all that bad. However, for my work mail, which has a very nasty filter, it gets stuck in quarantine. So I figured I should ask for …

Member Avatar for almostbob
0
900
Member Avatar for ytregnn

I have a problem with a script that I bought. I'm trying to put the files in a different directory (different from the original) and for some reason I receive an error message saying; ” File(../../poll/Poll.php) is not within the allowed path(s)”. I've received this answer from the programmer of …

Member Avatar for pbcomput
0
111
Member Avatar for cane23

i am having some problems posting some values into a form when i click edit. i have checked to make sure that the variables contain the values that i want however they are not posting back to the form. here is my code below. [CODE]if ($_GET['mode'] == 'edit') { $c=$_GET['id']; …

Member Avatar for pbcomput
0
128
Member Avatar for venus_me11

i dont have any idea how to send through email i have a sample ticket. i dont know if i'm going to convert the php file into pdf.. i have no idea exactly.. if ever its hard, how can i send the sample ticket through inputted email of a customer...

Member Avatar for venus_me11
0
94
Member Avatar for whiteyoh

Hi All, In my php script i need to concatenate 4 tables from a foreign key of dev_id. It will be a select *. I know, for example that 4 tables have a value of dev_id=115, but when i run the script it gets no results. here is my attempt …

Member Avatar for saiprem
0
60
Member Avatar for lisles

hey,i have a login form wherein the take the username and password from the user and submit the form.im using burpsuite t check 4 threats.when i click on the submit button the password is visible.is it possible to encrypt the password as soon as enter it instead of passing it …

Member Avatar for cwarn23
0
111
Member Avatar for manolisvl46

is there a possibility to retrieve a search from an ldap search (for my case) which is in done php <?......?> outside of it to the body of my page? to have a general idea i try to create a table that will be completed dynamically from the search being …

Member Avatar for manolisvl46
0
160

The End.