39,316 Topics

Member Avatar for
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
473
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
188
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
227
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
264
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
455
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
251
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
Member Avatar for DaveyMoyes

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, …

Member Avatar for red_ruewei
0
143
Member Avatar for Clarkeez

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

Member Avatar for rixius
0
255
Member Avatar for somakumaran

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 ?

Member Avatar for rixius
0
111
Member Avatar for CEVGames

I have set the two following cookie when a user successfully logs in. [CODE]$total = mysql_query("SELECT total FROM usersystem WHERE username = '$username'"); setcookie("username", "$username", time()+3600); setcookie("total", "$total", time()+3600); header( 'Location: play.php' ) ; $_SESSION['username'] = $username; [/CODE] (Username is previously defined and does display when retrieved.) Then on the …

Member Avatar for CEVGames
0
74
Member Avatar for OnIIcE

Hi guys, Im in the middle of writing my own custom cms, and ive found a frustrating bug I cannot get rid of! When the user logouts, they can use the back button the trace back through the pages theyve been on. However refreshing the page shows them as logged …

Member Avatar for P0lT10n
0
113
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. [CODE] <link href="../_css/getpinoy.css" rel="stylesheet" type="text/css" /> <script src="../_utility/loadFlash.js" type="text/javascript"></script> …

Member Avatar for cossay
0
69
Member Avatar for khushhappy

Hi, I cant make the file to get uploaded. [B]index.html [/B] [CODE]<html> <body> <form enctype="multipart/form-data" action="uploader.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" /> </form> </body> </html> [/CODE] [B]uploader.php[/B] [CODE]<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Uploader php …

Member Avatar for cossay
0
250

The End.