39,320 Topics
| |
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 … | |
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??????? | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
| 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
[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? | |
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"; … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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] … | |
[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 … | |
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] . | |
[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 … | |
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] … | |
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 … | |
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)) … | |
Hi this is my first post on DaniWeb.... the information has helped me in the past but im seriously stuck.... Help would be very much appreciated.. Im trying to create a form where the user can upload 5 pictures to a mysql database (members) field names are img1, img2, img3, … | |
Hey. I need to copy the last 2 sets of numbers from this url [url]https://www.molten-wow.com/?display=info[/url] so I can put each one into a php variable Can this be done? Thanks | |
Hai Im trying to make a link for mp3 file from some folders. How create a link for these mp3 files by using php code ? |
The End.