39,320 Topics

Member Avatar for
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
88
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
114
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
98
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
168
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
120
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
118
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
146
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
86
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
59
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
107
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
187
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
150
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
126
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
101
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
94
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
175
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
97
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
104
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
76
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
102
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
113
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
155
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
78
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
113
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
81
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
219
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
41
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
111
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
203

The End.