39,402 Topics

Member Avatar for
Member Avatar for PetrQ

Hello, I use html2ps/pdf - as upgrade of FPDF - for conversion html/php pages to pdf. It works great but I cannot solve the problem - how can I convert only part of the page without other CSS style. FPDF offers class CLIPPING. However official html2ps/pdf forum doesn´t work properly …

0
64
Member Avatar for DemonGal711

I've been working on this code to get data from a website and bring it back to my page so that I can use it. I've got that and I have another script to create an image from the line I got from the site so I'm good so far. …

Member Avatar for DemonGal711
0
89
Member Avatar for maheshks230

[B]Registeration[/B] hai plz validate the mandatory fields give me jqueryscript to that php code [CODE]<html> <head> <title>Registration</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.metadata.js"></script> <script type="text/javascript" src="js/jquery.validate.js"></script> <script type="text/javascript" src="js/validate.js"></script> <form action="Register.php" method="post" name="regForm" id="regForm" > <table width="778" border="0" align="center" cellpadding="0" cellspacing="1" > <tr> <td height="25" colspan="2"><span …

Member Avatar for network18
-2
177
Member Avatar for the_programmer

Hi; I'm sorry if this is a really newb level question. I have a register script and a login script. Both of my scripts work great seperatly until I include the login script with the register script. I know you aren't allowed to have two headers on one page and …

Member Avatar for network18
0
100
Member Avatar for mjenn2

A few years ago I wrote a mysql/php website, recently the host went bust and it has moved hosts but now quite a lot of the site gives errors - mostly the new server just gives me 500 - internal server errors. I've fixed a few of the problems that …

Member Avatar for network18
0
111
Member Avatar for aerliana

[code=sql]"SELECT tbl1.staff_ic, tbl1.staff_name, tbl2.dec_status,tbl4.location, tbl3.post,tbl3.grade FROM staff_detail tbl1 INNER JOIN staff_declare tbl2 ON tbl1.staff_ic = tbl2.staff_ic INNER JOIN staff_post tbl3 ON tbl1.staff_post = tbl3.num INNER JOIN staff_department tbl4 ON tbl1.staff_dep = tbl4.no ";[/code] isn`t my coding is right?? why when i execute my command just certain data are appear and …

Member Avatar for network18
0
62
Member Avatar for rich69

Hello ALL: New to the forum. I have run into a problem over the past 48 hours for which I can't seem to be able to resolve. I am running an Apache 2.0 Server, with PHP, and MySQL. All servers were working fine until 48 hours ago when all hell …

Member Avatar for omoabobade
-1
358
Member Avatar for O71v13r

Hi everyone, I have a problem with one of the problems (17) that i try to solve on the [URL="http://projecteuler.net"]Project Euler[/URL] site. The problem is as follows: If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + …

Member Avatar for somedude3488
1
197
Member Avatar for danang

Hi, are there anyone who can help me out, about making dynamic combo box in a form on drupal? scenario : there are two combo box. value on the second is depend from first combo box.... hm, it will be easier if u see my sample scripts on my attachment. …

0
48
Member Avatar for DemonGal711

Alright, I'm trying to get a script to visit a website and copy the contents. The problem is that I must fill out a form before I can get to the page I want, but that's not the issue really. The url basically does this. [url]www.mysite.com/page.php[/url] // form is submitted …

Member Avatar for DemonGal711
0
118
Member Avatar for CFROG

I'm trying to set up an app for users to put their individual photos into different albums, eg. friends, family, whatever. I would like one pic from that album to be displayed for each album along with the album name. I thought SELECT DISTINCT would do the trick for me …

Member Avatar for CFROG
0
90
Member Avatar for diafol

Hello all. This is not a php question, but I assume that you php aficionados will probably know more about this than most. I have a laptop that I use from home and work and have a different IP address when connecting from different locations. I am able to gain …

Member Avatar for diafol
0
95
Member Avatar for ultras1

I have administration part of my web site. But it will have only one user who will login in the page.My question what is more safely from attacks ? The user and password to be stored in mysql database or directly in .php file ?

Member Avatar for smartness
0
124
Member Avatar for shishtawitch

i am trying to host my own site............i have one static ip address...........and windows xp and wamp installed the site is working fine ............. but when ever i try to see the site it imediately starts to download original index.php file but when ever i try to access my site …

Member Avatar for shishtawitch
0
95
Member Avatar for bufospro

Hi, I use the code below so as to print a text: [CODE]$query_a = "SELECT * FROM table WHERE id=(SELECT MAX(id) FROM table)"; $result_a= mysql_query($query_a) or die(mysql_error()); $text_a = stripslashes(nl2br($row_a["text"])); echo "<div class='uneven post'>"; echo "<p align='justify'>".$text_a."</p>"; echo "</div>";[/CODE] In variable $text is stored text from a textarea (form). The …

Member Avatar for Atli
0
92
Member Avatar for chowdarysmk

Hai 2 all I have a small correction at password: now invalid charcters also taken in form plz modify prog if u enter ivalid charcters like~!@# tis type it show an error msg invali charcters display it one plz [B][B]HTML CODE[/B][/B] [code=php]<html> <head> <title>Registration</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript" …

Member Avatar for Atli
-1
92
Member Avatar for paranjyoti

Hi All, I am stuck in a module. I want to know how to get back the response and see it in alert message from $ajax->observeField in CakePHP. What do we have to write against 'complete'? Moreover, i dont know whether it can be done in $ajax->observeField or not. Any …

Member Avatar for paranjyoti
0
83
Member Avatar for prnv.pr

I want to send emails to a list of people who's addresses are extracted from a database.I know the function to be used is 'Bcc:' but an not able to figure out the correct place where it should be placed in-the code. It would be good if anyone could come …

Member Avatar for prnv.pr
0
103
Member Avatar for Eriku

I have a PHP program that makes a simulation of an aircraft motion (for technical studies). It requires quite a lot of input data. Therefore it would be advantageous to be able to save that data on the clients computer and recall it when used. Of course there is a …

Member Avatar for Eriku
0
150
Member Avatar for thebluestar

here is my source code about login into a web [CODE= php] <?php /* $login=$_POST['login']; if($login=="Login") { */ $connect==mysql_connect("localhost","root",""); if(!connect) { die ('Cannot connect to the database'.mysql_error()); } mysql_select_db("firstdbs",$connect); $in_user= $_POST['username']; $in_pass=$_POST['password']; // To protect MySQL injection $in_user = stripslashes($in_user); $in_pass = stripslashes($in_pass); $in_user = mysql_real_escape_string($in_user); $in_pass = mysql_real_escape_string($in_pass); $sql="SELECT …

Member Avatar for poojamakhija
0
89
Member Avatar for hemgoyal_1990

Hi all.. I am Working on an Birthday Reminder Script but i have an Problem in This Script That I Want to Send a email to User That's Birthday is Today. and am Done it Automatically by Scheduled. For Ex: Today is One User Birthday Then a Email Automatically Send …

Member Avatar for hemgoyal_1990
0
117
Member Avatar for cwarn23

Hi and I have learned 2 ways of making a php cms both with simular results on the client side. That is, is it best to have all pages pointed to index.php with mod rewrite and url vars or is it best to have a couple dozen php files each …

Member Avatar for somedude3488
0
101
Member Avatar for danang

hi, i've got a problem, hmm...there are three groups (A,B, and C) and their IP address are: A ==> 10.204.xxx.xxx B ==> 10.205.xxx.xxx C ==> 10.206.xxx.xxx how to read an IP Address, but only for 2 octet, (10.204, 10.205, 10.206)? I want to put them on index.php, so: if user …

Member Avatar for danang
0
172
Member Avatar for lcyew

Hi all. I have some problems with radio buttons. Hope to get some help here. Thanks in advance. Here's the html: [CODE]<?php while($row=mysql_fetch_array($result)) { ?> <input name="replacement" id="replacement" type="radio" value="<?php echo $row['date']; echo $row['title']; ?>"[/CODE] I need to validate if none of the radio buttons is checked using javascript. How …

Member Avatar for lcyew
0
123
Member Avatar for sam023

i m going to make something like [url]www.respectance.com[/url] pic gallery with read more content..!!! uptil now i use hard code for my pages..!!! this time i thought i should give a try on some framework..!!!! So can anyone guide me which framework is good for such type of site Which …

Member Avatar for O71v13r
0
121
Member Avatar for Spidey007

Hi Folks, I was wondering if anyone knows how to create a pop up window like this page: [url]http://www.allhealthcarejobs.com/aspx/JobPostingView.aspx?ja=indeed&code=K14&jobid=600694&=indeedOrg&utm_source=Indeed&utm_medium=organic&utm_campaign=Indeed[/url] You will notice that after loading the page for 2 seconds, a pop up window appears that asks for the visitor's email id. Does anyone know how to create this kind …

Member Avatar for Spidey007
0
147
Member Avatar for DemonGal711

I was just testing out a code and I found something rather pathetic. This code does not produce anything. [CODE]<?php $source = file_get_contents("http://mysite.com/random/page.html"); echo $source; ?> [/CODE] But this code does [code]<?php $source = file_get_contents("page.html"); echo $source; ?> [/code] The php script and page.html are in the same folder, so …

Member Avatar for DemonGal711
0
87
Member Avatar for peck3277

Hi Everyone, What I want to learn is how to write a php template. So any edits I make to the headers,footers etc. are changed throughout the website. I know I can just use a series of includes but I was wondering if there is a right way to make …

Member Avatar for pritaeas
0
63
Member Avatar for shishtawitch

i dont no whether it is the place or not to share my problem........the problem is that i have a little problem with my router..........!! when ever the electricity failure happens, my internet connects gone to disconnect imediately............then if i turn on and off my router manually it connects again …

Member Avatar for shishtawitch
0
109
Member Avatar for sstewart

Hello, I have a piece of code that pulls data from a mysql database. I am displaying the results in a table but want to format the background of certain cells based on the query results (ie red for no green for yes). Here is my code: [CODE] $query = …

Member Avatar for sstewart
0
189
Member Avatar for sarithak

Hi frnds... Here i am creating thumbnail image...the code is working fine... The variables are not working calling funtion....if i give static path, its working fine... incase of dynamic path it displays some errors,but image created..image with full black(no photo).......plz check the below code... [CODE]function createthumb($name,$filename,$new_w,$new_h){ $system=explode('.',$name); if (preg_match('/jpg|jpeg/',$system[1])){ $src_img=imagecreatefromjpeg($name); …

Member Avatar for sarithak
0
153
Member Avatar for mvchandoo

Hi I do like to modify the .php extensions to .html. could any body advice me. how to do it. Present URL: category.php?cat_id=C001&prod_id=XX09 Required URL: category.html/C001/XX09 or Required URL: category/C001/XX09 in any of the SEO format. Please help me to sort out. or advise me to refer URL. or tutorials.

Member Avatar for mvchandoo
0
129
Member Avatar for csharplearner

Hi, I am trying to embed audio/video content such as youtube links and playlists from imeem.com into my website for each user of their choice. What are the measures to be taken to display $user_choice_video variable which is retrieved from database!? I am afraid there might be attacks if i …

Member Avatar for sarithak
0
103
Member Avatar for OnIIcE

hello, i was woundering if somone could point me in the right direction. Im making a CMS/socialnetworking script for fun and want to change how the url gets the data for profiles. at the moment its using the tradition $_GET['id'] thing from the broswer url, but id like to try …

Member Avatar for network18
0
98
Member Avatar for mrcniceguy

I`M USING THE PHP MAIL FUNCTION TO SEND EMAILS TO MEMBERS IN MY SITE. [CODE=PHP] sendto="xxxxxxx@yahoo.com"; $to=$sendto; $from="From:mysite@mysite.com \r\n"; $subject="$fullname contacted mysite"; $content="$message \r\n his/her email address is $email"; if($content){ mail($to, $subject, $content,$from); echo"<font color=green>Your email was sent successfuly to adminstration of mysite.<br/><a href=index.php>Continue to the site</a></font>"; } [/CODE] i …

Member Avatar for mrcniceguy
0
180
Member Avatar for just_me

hi guys. can someone show me the right syntax to make link based on the ID using php echo. My coding will not give any input. below is my coding: [code]echo "<td width='101'><a href=view_supplier_details.php?details_ID={$user['report_details_ID']}</td></a>";[/code]

Member Avatar for network18
0
100
Member Avatar for arunajasmine

i am trying to use the File upload feature in my application .. i am having a Form with many fields of type Text,textarea and including File upload FIeld. I have kept a Submit button at the end of the Form which on click will submit the actual value of …

0
106
Member Avatar for sarithak

Hi frnds... here i am doing code for embede videos in my website...its working fine.. But , here i want to display fullscreen video also from my website...not through Youtube ...Now, after clicking the thumbnail of the video ,the fullscreen video goes to YOUTUBE WEBSITE...it should be play through my …

0
79
Member Avatar for sarithak

Hi frnds.... First of all sry for all 4 arraising same(email) thread more times... I have a problem with email sendhing... one my old client ...his project is shifted from one server to another server(control panel)...now, the contact page(email) is not working properly...here i m getting the below error....plz tell …

Member Avatar for sarithak
0
105
Member Avatar for wood1e

Hi, Has anyone seena script for searching a database, and having pagination as well...as I have tried and successfully created a search database sarch webpage..and a pagination webpage, but that returns all the data in the database... Regards Rob Wood

Member Avatar for network18
0
114
Member Avatar for kira4

I can't query my database and cannot update, may I know what is the mistake in my coding? [CODE]<html> <head> <title>Index</title> </head> <div style="position: absolute; width: 1146px; height: 842px; z-index: 1; left:10px; top:1px" id="layer2" align="center"> <body background="E-Filing%20Management%20System%20Picture/Snow.gif"> <p align="center"> <img border="0" src="E-Filing%20Management%20System%20Picture/logo-RR-gif.gif" width="957" height="245"></p> <p align="center"><span lang="zh-cn">&nbsp;</span></p> <p align="center"><span lang="zh-cn"><img …

Member Avatar for SoN9ne
0
157
Member Avatar for j_limboo

While creating a userid the password is saved in type md5 in mysql The below script to change password does not save password in md5 in mysql and hence user after changing password cannot login The script also gives password chaged sucessfully but also says you have typed wrong password …

Member Avatar for sariraj
0
82
Member Avatar for niche1

I need to import TEST.TXT (located in the same directory as my script It has 1 Record: "6","Lunch","234" Iget this error message: Warning: mysqli_close() expects exactly 1 parameter, 0 given in C:\wamp\www\test\import.php on line 19 Why? Heres my script: [code=php]<?php // Connect to the MySQL server and select the corporate …

Member Avatar for niche1
0
115
Member Avatar for fumnimda

my problem is with using $_SERVER['HTTP_REFERER'] in IE.it doen't work. what can i do instead ?

Member Avatar for Atli
0
83
Member Avatar for enzo420

Hi all, so I'm looking to make a social network style site, just to help me understand php so please don't say anything about reinventing the wheel. I'm looking for a way that when a user clicks on a name in the member list that it sends them to profile.php?id= …

Member Avatar for ShawnCplus
0
223
Member Avatar for andrew850101

Hi! I'm having a problem when generating a crystal report from php. This code works fine when not using connections to ODBC, but when I try to connect i get the error: "Server has not yet been openned". I've tried almost everything, even chaging the dlls but nothing has worked …

0
44
Member Avatar for just_me

hi there.. I using for loop to increment the column in my page. through this increment, I want it to insert to the database. But what I'm getting is the last value only. can someone help me? this is my supplier_quo.php which when we click submit button, it will go …

Member Avatar for just_me
0
117
Member Avatar for goldy736

hi, am in learning phase of php , am struck here , i try to call method in a class from other class namely display.phtml and displaycall.phtml i was successfull in calling the method but problem is , i have a variable $_productCode with value equal to 'A1001'. The main …

Member Avatar for jomanlk
0
4K
Member Avatar for jino

Dear all, I have a requirement that, when the user click on a radiobutton of a listed module, all its permissions should be toggled down. This section comprises in a div "msg_body". there are more than one module and so more than one msg_body divs. I used jQuery for this …

Member Avatar for jino
0
205
Member Avatar for oneill

Hi, Some decoded a zend file for me but i get this error: [CODE=php]Parse error: syntax error, unexpected '*' in /home/xxx/public_html/.main.php on line 136[/CODE] the code is: [CODE=php]mt_srand( ( double ) * 1000000 );[/CODE] I just delete the [b]*[/b] ? Sorry i dont know much about php.

Member Avatar for jomanlk
0
157

The End.