39,393 Topics

Member Avatar for
Member Avatar for danishbacker

Hi. im a beginner in php, following is my site [url]http://www.peipians.com/[/url] i want you people to check it help me by suggesting any modifications... plzzzz :)

Member Avatar for ryan_vietnow
0
116
Member Avatar for foundsheep

I'm not sure why but my form is not sending the info. I'm able to get the email but all the fields are blank. When I submit the form I get my echo message. Any help is great, thanks. Form: [CODE] <form action="sell_process.php" method="post"> <table width="100%" cellpadding="2" cellspacing="2"> <tr> <td …

Member Avatar for Ole Raptor
0
115
Member Avatar for Vity

I Have visited a dozen of websites and registered with them but still none of them has helped me with my problem. I got a php script that i created that sends the results to a specific email address but the problem is that the attachments are not still working …

Member Avatar for Vity
0
448
Member Avatar for Suhacini

I have problem with page navigation.My problem is that am getting all the records in one page. $rowsPerPage = 10; I have 30 records, all are showed in one page...not the 10 records.Here is my code. [code] <?php include ('conn.php'); // how many rows to show per page $rowsPerPage = …

Member Avatar for Suhacini
0
217
Member Avatar for Suhacini

Do we have 2 tier & 3 tier architectures in PHP?If so tell me what are they used for, how & where we can use them?

0
50
Member Avatar for Pavlos1316

Hi all I have a checkboxes form. How can I get the results displayed (in a new window lets say) when submiting it? Thank you P.S. I care about getting results displayed part.

Member Avatar for Pavlos1316
0
86
Member Avatar for Suhacini

Hi, I wanted to display data which is in my db.The format of displaying must be in a div, in that div 3 columns & each column must have 10 rows.Am using this: [code] while($data = mysql_fetch_array($result)) { echo $query; echo ' <tr> <td colspan="3" > <a href="'.$data['MedName'].'" >' . …

Member Avatar for Suhacini
0
121
Member Avatar for Sheridan

Hi: I'm not sure that this problem has a solution but here goes. I am retrieving a list of names from a database and displaying them on a web page. The list would have the form: Doe, John Smith, Harry Jones, Dan I want each name to be a hyperlink …

Member Avatar for silviuks
0
269
Member Avatar for tahir_bsit

[code=PHP]<?PHP @session_start(); $userId=$_SESSION['userId']; if(!session_is_registered("userId")) { echo "<Script language=\"javascript\">window.location=\"index.php\"</script>"; } if(session_is_registered("userId")) { $userId=$_SESSION["userId"]; } ?> <?PHP require_once('conn.php'); $status=""; if($_SERVER["REQUEST_METHOD"]=='POST') { $username=$_POST['username']; $userpassword=$_POST['userpassword']; $qury="select * from login where username='$username' and userpassword='$userpassword'"; echo($qury); $res=mysql_query($qury) or die ("can not process the query".mysql_error()); $count=mysql_num_rows($res); if($count>0){ while($row=mysql_fetch_array($res)){ $userId=$row['userId']; $username=$row['username']; } session_start(); $_SESSION['userId']=$userId; $_SESSION['username']=$username; echo "<Script language=\"javascript\">window.location=\"APS.php\"</script>"; …

Member Avatar for silviuks
0
134
Member Avatar for forwardlookguy

Hello again, I previously asked a question about how to seperate text in a form. I understand how to do that now (thanks KKeith29), but my question now is this: How do I use the data entered in the form for the variable I want to perform the substr on? …

Member Avatar for silviuks
0
145
Member Avatar for ryy705

Hello, mysq_query($query) returns a valid result set. However, [CODE] function query($query) { return mysql_query($query); } [/CODE] returns a 1. Why does this happen? Is there a way around it? Thanks in advance.

Member Avatar for ryy705
0
113
Member Avatar for Kraai

Hi everyone I have a website, running for years without any problem, and all of a sudden, today, it does not display any pages. All is blank! The website in question is a Xoops installation. I accessed my directory and files via cpanel, and first went to see if I …

Member Avatar for Kraai
0
182
Member Avatar for vivek1
Member Avatar for ithelp
0
58
Member Avatar for subham1982

Hi guys, I am a PHP prgrammer. This is my first Therd in this site. I want a seaching code like google's search. ex. if i type hotel then it display all the hotels. but if i type" hotel in USA " then it display all the hotels which is …

Member Avatar for ithelp
0
40
Member Avatar for joker40

Hi , i am working on vb forums and every thing was fine , but when i put the .htaccess file this errors comes : [B][COLOR="Red"]The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email address removed] and inform …

Member Avatar for joker40
0
181
Member Avatar for dele454

I have a question to ask, please see attached images: [URL="http://www.killerinstinct.co.za/stats.gif"]stats1[/URL] [URL="http://www.killerinstinct.co.za/stats2.gif"]stats2[/URL] In the CMS, I have a stats page as seen (IMAGE 1), it captures all the necessary stats regarding the website and its entities. This stats page should be generated every month on the fly. Since all these …

Member Avatar for dele454
0
78
Member Avatar for gptArun

Hello, I'm using below PDO connection class but didn't shows any result , [B]Pls reply if u found any bugs[/B]..- [code=PHP]//name connect.class.php class Connection { private $connection; private $username; private $password; private $dsn; /** * To connect to another database, change the "mysql" in the dsn attribute to * the …

Member Avatar for darkagn
0
214
Member Avatar for yara1

hi every one i find this code and i read this descreption about it : code to call function after u click on it [CODE]<a href="<?php $_SERVER['PHP_SELF']?>?type=del"> <img src="del.png"/> </a>[/CODE] my qidtion : can i know any information about image when i call function using this code i mean can …

Member Avatar for nav33n
0
75
Member Avatar for haii

I want an email application using php. The code is like this. [code=PHP]<?php $to = "example@mail.com"; $subject = "My subject"; $txt = "Hello world!"; $headers = "From: [email]abc@rediff.com[/email]" . "\r\n" . "CC: [email]abc@rediff.com[/email]"; mail($to,$subject,$txt,$headers); ?>[/code] but an error has occured Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" …

Member Avatar for haii
0
79
Member Avatar for iiskandar

Hi, i am a new in this forum can yo help me, how to save string data like 10,000,000.00 tobe 10000000 with php or javascript i use mySql database thank's, if can help me

Member Avatar for buddylee17
0
46
Member Avatar for rgviza

In reading and posting on this forum, I see a lot of code here that doesn't consider sql injection. SQL injection is an attack where the attacker terminates or modifies an sql query with input data. Here are some samples: [url]http://en.wikipedia.org/wiki/SQL_injection[/url] [url]http://www.unixwiz.net/techtips/sql-injection.html[/url] [url]http://www.securiteam.com/securityreviews/5DP0N1P76E.html[/url] In Michael Howard's blog, he wrote up …

Member Avatar for NicoMS
1
94
Member Avatar for queenc

hi i want to hide my URL ..i.e when the user uses my application i dont want to show my url but i want to store another url please do tell how to do tat

Member Avatar for sDJh
0
138
Member Avatar for conandor

anyone know how can i convert bmp to jpg using php? ve play wif gf function but seem got work out

Member Avatar for helraizer
0
867
Member Avatar for conandor

i have a (process) php code which run background which listening to incoming. and i wanna have another (admin) php code for admin use which i can start and stop the 1st (process) php code. starting the (process) php code is easy with exec(/usr/php5/bin/php my_process_code.php); but how can i stop/kill …

Member Avatar for helraizer
0
133
Member Avatar for servis

The following login script is not working, i am unable to trace the problem, please anybody help me... [ICODE] <?php include ("template/login.tpl.htm"); session_start(); if (isset($_POST['userid']) && isset($_POST['userpassword'])) { include 'library/config.php'; include 'library/opendb.php'; $userId = $_POST['userid']; $password = $_POST['userpassword']; // check if the user id and password combination exist in database …

Member Avatar for nav33n
0
134
Member Avatar for kevin wood

is this possible to do? [CODE]if ($sent_mail <= 200 ($limit)) { // construct mailing list array $merc_list = explode(",",$merc_mailingList); // deploy the emails for($i=0; $i<count($merc_list); $i++){ // email body inside here } // END for $sent_mail = $sent_mail + $i; } // END if condition else{ include("limit.php"); } [/CODE]

Member Avatar for kevin wood
0
647
Member Avatar for chitra1

Hi, I am uploading images in a form. But it only sends the images in a folder 'upload' and send only the file name to the database. How do I send the image to the database and retrieve it for display.

Member Avatar for iFuseDan
0
150
Member Avatar for ryy705

Hello, I noticed that on some forms the password is not echoed after the user submits the form and the page reloads(this could because of errors or any other reasons). Why is this? Is there a valid security reason? Or is it just overkill? Thanks in advance.

Member Avatar for ryy705
0
75
Member Avatar for djMot

I cannot get my locally installed Apache 2.2 to execute a .php if simply passed the folder. For instance, if I tell my browser, "http://localhost/dev/wordpress/wp-admin/" it simply gives me a directory listing of the folder. There is an index.php file there, and if I click it, it executes normally. Or, …

Member Avatar for djMot
0
147
Member Avatar for bigpig

I can echo the variables from my require_once file outside of a function, but inside a function they are empty (i.e. it's as if they were never parsed by require_once at all). Even adding a seperate require_once in the function will still echo empty variables.

Member Avatar for bigpig
0
139

The End.