38,020 Topics

Member Avatar for
Member Avatar for coxdabd

Hi, just starting out with PHP, etc. Seem to be picking things up quickly. Just want some advice on how secure things are e.g. entering email address into the database, etc. Look forward to some help and advice. [CODE]<?php error_reporting(0); $email = ""; $msg_to_user = ""; if ($_POST['email']!=""){ include_once "connection.php"; …

Member Avatar for Dragonbaki
0
98
Member Avatar for irphan

hi, i want to send email after redirecting on a page name email.php or it may be anything.when i redirect on this page amal should be send to user automatically.please send me a code for this please help me .thanks irphan

Member Avatar for Dragonbaki
0
72
Member Avatar for shenbagam

when i'm creating register form database was connected but cant able to store the values from form into mysql

Member Avatar for Dragonbaki
0
92
Member Avatar for kako13

I had been trying to make my WordPress blog Thumnails Clickable without any luck. Here is the code I am supposed to change: [CODE]<a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_post_thumbnail(); ?></a>[/CODE]

Member Avatar for design324095
0
325
Member Avatar for designershiv

$show =$_GET['id']; //if i put the id manually it works and the content get changes print_r($_GET); // Working $news_sql=mysql_query( "SELECT *FROM latestnews WHERE id = '$show' ");//i cant retrieve id here while($rsnews = mysql_fetch_assoc($news_sql)){ ?> my code <?php } ?>

Member Avatar for nonshatter
0
483
Member Avatar for designershiv

//my code $show =$_GET['id']; print_r($_GET); //out put comes like this Array ( [id_] => 1 ) //Please tell me where is this underscore comes from

Member Avatar for pritaeas
-1
69
Member Avatar for saadi06

Hi can anyone help me. I have an issue of converting an array object to string.Here is my code [CODE]if(isset($_REQUEST['insert'])) { $data['first_name']=$_REQUEST['fnam']; $data['last_name']=$_REQUEST['lnam']; $data['reg_number']=$_REQUEST['rnum']; $data['date_of_birth']=$_REQUEST['dobi']; $data['date_of_joining']=$_REQUEST['dojo']; $data['name']=$_FILES['uploadfile']['name'];// i want to convert only this value to string $data['type']=$_FILES['uploadfile']['type']; $data['size']=$_FILES['uploadfile']['size']; echo http_build_query($data['name']); exit; $uname=str_replace(" ","_",$data); $tmp_name=$_FILES['uploadfile']['tmp_name']; $target_path="uploads/"; $target_path=$target_path.basename($uname); if($data['name']=="") { $db->query_insert('tbl_student',$data); header(''); …

Member Avatar for saadi06
0
175
Member Avatar for navi17

Hi, Client will have library of available themes I need to create a plugin in wordpress. which will search are available themes from client server and when anyone click on activate the theme it will copy all the files from client server to user server. can anyone help? how can …

Member Avatar for Frankey
0
127
Member Avatar for itisnot_me

ok so i am messing around with php trying to see what i can do to improve the way i make/do things. right now i am playing around with a query set that automatically makes the variables with the database information in it then to echo it later on when …

Member Avatar for itisnot_me
0
90
Member Avatar for nicholaslee21

I cannot get this mysql update query to work. Please help. I am new at this.:) <?PHP session_start(); ?> <?php //it's getting the data from the post fine. I know this part is working. $ud_id=$_POST['ud_id']; $ud_fname=$_POST['ud_fname']; $ud_lname=$_POST['ud_lname']; $ud_type=$_POST['ud_type']; $ud_used=$_POST['ud_used']; $ud_sdate=$_POST['ud_sdate']; $ud_edate=$_POST['ud_edate']; if ($ud_id == "") echo " No record ID …

Member Avatar for orcaraheel
0
5K
Member Avatar for yapaarachchi

I created a login system using php.And it can handle member profiles.But i was unable to upload profile picture.how can i do that???????

Member Avatar for yapaarachchi
0
145
Member Avatar for abelingaw

Here are the errors im getting. [CODE]Notice: Undefined index: address in C:\wamp\www\Insertrecord.php on line 24 Notice: Undefined index: status in C:\wamp\www\Insertrecord.php on line 25 Notice: Undefined index: religion in C:\wamp\www\Insertrecord.php on line 26 Notice: Undefined index: region in C:\wamp\www\Insertrecord.php on line 27 Notice: Undefined index: zipcode in C:\wamp\www\Insertrecord.php on line …

Member Avatar for abelingaw
0
664
Member Avatar for itisnot_me

i have been getting the error Parse error: syntax error, unexpected '.', expecting T_VARIABLE or '$' and the line that has the issue is $ . $ [CODE] foreach ($fields as &$value) { $ . $value = $myrow[$value]; } [/CODE] all im trying to do is make a variable with …

Member Avatar for itisnot_me
0
86
Member Avatar for stevo356

Hey guys, Posted this elsewhere also, but looking for a resolution to my problem as quickly as I can. I've been developing a bespoke "helpdesk" system for work and, while it works well on the whole, I am having major problems with base64 encoded email bodies. Admittedly, this might be …

0
79
Member Avatar for LONGWAY

my code is like this if (isset(POST_[submit])){ ......if (empty($name)) ..........echo "name field is empty"; ......else if(isset($_POST[submit])){ ............$name = $_POST[name]; ........query ........mysql_cuery($query,$conn) } } if (isset(POST_[submit2])){ ......if (empty($pet)) ..........echo "pet field is empty"; ......else if(isset($_POST[submit2])){ ............$pet = $_POST[pet]; ........query ........mysql_cuery($query,$conn) } } As you can see I have two submit buttons …

Member Avatar for cossay
0
79
Member Avatar for feoperro

Hi, I am new to PHP and I would just like to know: Is there a purpose for cookies if you handle sessions with the database? I've been reading about cookies and trying to understand how they would be beneficial if I had sessions handled by the database, and I …

Member Avatar for somedude3488
0
131
Member Avatar for muze

hello guys...i have a know-how of PHP and made a project as well using PHP in my university. Now I am working on a complex problem and I am asked to do this in ASP.NET. I know it is easy to follow ASP.NET (and is not a rocket science...lol) but …

Member Avatar for pritaeas
0
80
Member Avatar for Xtremefaith

So I received awesome help from here before but forgot to ask at the time about one small thing. He taught me how to exclude my "ID" field displaying and about the implode function in PHP but if I display my data using it is there a way to make …

Member Avatar for Xtremefaith
0
428
Member Avatar for alanlai

hey guy,i'm a newbie in php and need some help from you guy in this preg_match_all function. i would like to grab the multiple share data in this webpage for change,last trade,volume,trade time,open and so on. this code only able to grab a single line of data, but not multiple …

Member Avatar for hielo
0
180
Member Avatar for CEVGames

Here is the code I have. [CODE]<?php include("db.php"); if (isset($_POST['username']) && isset($_POST['passwords']) && isset($_POST['email'])) { $username = mysql_real_escape_string($_POST['username']); $email = mysql_real_escape_string($_POST['email']); $password = md5($_POST['passwords']); $ip = $_SERVER['REMOTE_ADDR']; $sql3 = mysql_query("SELECT username FROM usersystem WHERE username = '$username'"); If (mysql_num_rows($sql3) >0) { echo( "&serverResponse=Select a different user name. This one is …

Member Avatar for CEVGames
0
153
Member Avatar for Danny247

[CODE]$wordpress_user_db_query = mysql_query("INSERT INTO cedsite_wrdp1.wp_users (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('".$username."', '".md5($pass)."', '".$username."', '".$email."', '', '".$date."', '', 0, '".$username."');");[/CODE] Using PHP I am trying to do that, but it isn't working. Can someone help?

Member Avatar for Dragonbaki
0
172
Member Avatar for darkmikey

Hi, For some reason I can't make fopen work. It worked fine on my server, however upon putting the script on my clients server it started giving this error: [CODE]Warning: fopen(test.jpg) [function.fopen]: failed to open stream: Permission denied in <long path> on line 5[/CODE] From this call: [CODE]$File = "test.jpg"; …

Member Avatar for Dragonbaki
0
147
Member Avatar for Dragonbaki

I am trying to send mail using php. But it shows error as failed to connect with mailserver 'localhost'. Then i use [B]smtp.bizmail.yahoo.com[/B], then it shows SMTP error 530, Authentication required.. I don't know how to pass smtp username and password through php.ini file.. If anybody have better ideas, please …

Member Avatar for Dragonbaki
0
83
Member Avatar for aniltc

hi How can we highlite(selecting) a search key. suppose i want to search php from database.so i am displaying a paragraph from the database.I want php to be highlited.How can i do this please help me Thanks

Member Avatar for kodegeek
0
221
Member Avatar for zeeshan_kust

hi all i am working on a php web service i read the data from mysql into xml format and from .xml file into php file reference link is [URL="http://www.daniweb.com/forums/thread326721.html"]http://www.daniweb.com/forums/thread326721.html[/URL] my question is how can i read the request from client into php script and then update the data into …

0
61
Member Avatar for sickpuppy18

hello everyone. I'm doing a php script that will read and write to my database and as you all know inputted data with apostrophe's gives an error whenever queried i was thinking on a way on how to filter the strings so that it would be able to accept apostrophe's.Anyone …

Member Avatar for diafol
0
103
Member Avatar for coxdabd

I have an email blast script as below. The mail_body is taken from a variable which the users sumbits their HTML for the message to be sent, it's send through with lots of \\\ in their for some reason? [B]The Blast Script[/B] [CODE]<?php $prodid='Kriss'; $htmlContent=$_POST['htmlContent']; include_once "connection.php"; $sql = mysql_query("SELECT …

Member Avatar for coxdabd
0
92
Member Avatar for coxdabd

Hi there, I have a field which the user fills in the previous page to this script, I want the HTML they enter into that to show in the message. I've used a variable to do this. I've mailed the message out (only me on the DB), I get it …

Member Avatar for coxdabd
0
122
Member Avatar for rolyestemonio

Hi guys, I have my code and it works of filtering data by Month and year.But it seems i got a problem when using accordion. i am kinda stack of it. Can anyone please help me out? This is my codes. What i want to happen is like this. [B][URL="http://getpinoy.com/news_archive.?id=1&cat=local&m=11"]getpinoy[/URL][/B] …

Member Avatar for keyideas
0
101
Member Avatar for lili.edryana

[icode]18830042010000000000010000010.00 300420101004301512210344 881114065677 john smith 0000010.00 18801062010000000000010000435.20 010620101006011143170683 841208925437 luna barbara 0000435.20 18830062010000000000010001881.00 300620101006302037530018 872420036243 micheal jordan 0001881.00 [/icode] [COLOR="Green"]I have a text file contains information shown above. I would like to produce a php code where it can read the text file and then insert the extracted data into …

Member Avatar for lili.edryana
0
453

The End.