39,323 Topics

Member Avatar for
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
80
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
81
Member Avatar for ankit.pandey3

[QUOTE]Hi friends.............. I have a page in which all details of user displays. I want that when user click on button"Print ICard" then ICard is printed and this printed Icard have size of what I desire instead of full page and I also need "Thank You" message on print out …

Member Avatar for Arkinder
0
97
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
507
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
189
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
255
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
148
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
289
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
104
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
104
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
457
Member Avatar for nathenastle

Can any one help me how to [ICODE]resize images[/ICODE] in php with out changing its original quality,that is if an image with size 100/100 when it reduced to 40/30 or any our required dimensions with out changing its [ICODE]quality[/ICODE] .

Member Avatar for red_ruewei
0
343
Member Avatar for ankit.pandey3

[QUOTE]Hi friends.............. I have a page in which all details of user displays. I want that when user click on button"Print ICard" then ICard is printed and this printed Icard have size of what I desire instead of full page and I also need "Thank You" message on print out …

Member Avatar for ankit.pandey3
0
643
Member Avatar for whiteyoh

Hi All, Im trying to get the following example to update without the need to click but cant get the bugger to work. The file its referring to is just echoing hello, im fine with setting that page up when its finished. all im getting is a white page. [code] …

Member Avatar for vibhaJ
0
98
Member Avatar for ChrisATO

Hello All, First let me acknowledge I am still fairly new to webdevelopment and this site. Thanks in advance to anyone who can help me with this issue and for those willing to try. The PROBLEM: I load into a div on index.php page via AJAX another php page. Once …

Member Avatar for ChrisATO
0
253
Member Avatar for saadi06

Hi, I am having problem with my code can anybody help it is giving me this error Parse error: parse error, expecting `T_FUNCTION'on line 4. Here is my code <?php class database { $dbconnect=NULL; $dbhost="localhost"; $dbuser="root"; $dbpass=""; $dbname="db_student_info"; function db_connect() { global $dbhost,$dbuser,$dbpass,$dbname; if(!$dbconnect) $dbconnect=mysql_connect($dbhost,$dbname,$dbpass); if(!$dbconnect) {return 0;} else if(!mysql_select_db($dbname)) …

Member Avatar for saadi06
0
659

The End.