39,402 Topics
![]() | |
Hi, I have a form to email script here and whenever someone puts "à, é, etc" anything with an accent in the name or last name section it says that it is invalid. Also I would like to make the telephone number area required... Might you know how? [CODE]<?php if(isset($_POST['email'])) … | |
I currently have the following php : <?php system('/usr/bin/whois 4.2.2.2'); ?> What is the easiest way to replace the newlines with <BR>\n. Thanks, ![]() | |
Hello, i'm making a "Bubble Breaker" game in php and i have a problem modifying my dinamically created components...First of all my php code: [CODE] <?php $balls = array( "blue", "green", "lightBlue", "purple", "red", "yellow"); $pos = count($balls)-1; if( isset ($_POST["new"])) { if( is_numeric ($_POST["rows"]) && is_numeric ($_POST["cols"])) { echo … | |
Hello! I've got the code below which takes data from my db and displays it to the page listing reports submitted by the user. At the end of each row I have button that is supposed to launch a PDF generator so that the user can view their report. I … | |
Am gettin an error msg like this--> The image “[url]http://localhost/linegrph.php”[/url] cannot be displayed, because it contains errors. while tryin 2 run my code on localhost.. Wen I comment d statemnt, $graph->Stroke(), nthng at all displys.. Plseeee do tell me a solution.. Thnks in advance :) | |
I don't know if this is possible, but I want to submit information using POST with a link. I know I can use GET, and I know I can use a form with a hidden value and submit it with a link, but I don't want either of those. I … | |
I'm trying to create a message board where members can post messages to other members. I'd like to have a section where it says "4 posts since Jan 2011" just like DaniWeb does. How do I get the date from the [CODE]"first row WHERE user='username'"[/CODE] with PHP & MySQL? Also, … | |
Hi, I am exporting data of mysql table.Its working fine. In my db some hindi data is also stored.When i download hindi data it come some undesired sequence. Can i export hindi data in cSV. Need suggestion. [CODE]<?php // // establish database connection // $conn = mysql_connect( 'localhost', 'root', '' … | |
HI,..i've been working on this simple project that i need to submit it tomorrow. I really in rushing a little bit. But while i working on this oop project, my program give the strange little fatal error about my query which is this [B]Fatal error: Call to a member function … | |
I have had a look within daniweb and done google searches on this problem so hopefully I am not wasting anybodys time with this. The problem I am facing is that currently I am getting the results from a mysql database using an associative array but i need to be … | |
Hi, I am using paypal IPN integration and it is not working.Its IPN log is giving me this error FAIL: IPN Validation Failed. IPN POST Vars from Paypal: mc_gross=10.00, protection_eligibility=Ineligible, item_number1=9, payer_id=5PRJ3GQN8ES3J, tax=0.00, payment_date=00:11:51 Jul 26, 2011 PDT, payment_status=Pending, charset=windows-1252, mc_shipping=0.00, mc_handling=0.00, first_name=Test, notify_version=3.1, custom=, payer_status=verified, num_cart_items=1, mc_handling1=0.00, verify_sign=AiPC9BjkCyDFQXbSkoZcgqH3hpacA50-5o5SUpQAYyn8d.LtMHyzASv4, payer_email=test@test.com, … | |
hello everyone. .i am an IT student. .can u help me how to make an online voting sytem?? i really dont know how to start my thesis :( ![]() | |
I'm new to php, as my question will probably clearly show. I'm writing a simple program to track bills, and one thing I'm trying to do is include a "Find text that contains" box that will highlight certain fields in my table that match the search. The code I've written … | |
Hi all. I face the problem about boundary. What I want to do is : 1. someone input the location(like City Hall). 2. then search the City Hall. 3. here's important. The condition to be searched is output is in specified boundary. The boundary means someone in there. I don't … | |
Hi, Can anybody, give me some sample coding to list out the ouput by page wise in PHP. [CODE]Example: PAGE 1 2 3 4 NEXT PREVIOUS[/CODE] I needs to use this concept in my project. For example, in my database table, am having 1500 records with the field 'id' and … | |
joomla website 100% Secure Guarantee, here i am trying to describe how to secure your sire winch is powered by joomla or wordpress or drupal or any cms where admin panel available. you just assign that from which ip this site will give opportunity to administrator login here the code … | |
![]() | hello, I have a DB table with records that have connection to one another. sort of like object a comes before b, and object c comes after c. table1- [U]Id, pre, post[/U] I have all the connections in the DB, what I'm trying to do is to make some sort … |
One WordPress site on one of my servers is giving an incorrect HTTP response code when a page can not be found. On the end-user side, the user sees a custom 404 page. But on the web-server side Apache is giving a 200 or 300 response (not sure which one) … | |
why am facing this error? [B]Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by … | |
Ok I'm trying to build a forum site. I have multiple tables representing the different categories that the user can select from. I'm working on the head page and what I want to do is retrieve the 10 last most recent comments posted across all tables. I want to use … | |
Good day, The challenge I am experiencing is obtaining the contents of the private necessary to decrypt data. I've reviewed tutorials on public/private key generation and my keys are properly formatted. To debug, I substituted a pair of keys created a year ago when I took a course on secure … | |
I need help. Please [URL="http://pastebin.com/THbfSZj2"]check this code[/URL] This is the snapshot of what the form look like now. [URL="http://s.wordpress.org/extend/plugins/qa/screenshot-1.jpg"]http://s.wordpress.org/extend/plugins/qa/screenshot-1.jpg[/URL] I would like to add some extra fields under the description form. I think i need to edit the_question_form() function in [URL="http://pastebin.com/THbfSZj2"]this file[/URL]. I need to add some extra fields below … | |
Hi ,traing to explode list like 1. one.gif 2. two.gif [CODE]$datain= file_get_contents($filename); $lines=explode("\n",$datain); for($i=0;$i<sizeof($lines);$i++) { echo $lines[$i].'<br>'; $images=explode(":",$lines[$i]); }[/CODE] | |
Hey All I have made this upload script but everytime I tried to execute it, it fails and gives me this error. [URL="http://www.daniweb.com/forums/attachment.php?attachmentid=21701&stc=1&d=1311399235"]http://www.daniweb.com/forums/attachment.php?attachmentid=21701&stc=1&d=1311399235[/URL] This is my code in the Upload.php File: [CODE] <form enctype='multipart/form-data' action='Upload_File.php' method='POST'> Please choose a file: <input name='myfile' type='file' /><br /> <input type='submit' name='submit' value='Upload' /> … | |
I designed an invoice system that add rows automatically and computes the results, print it in another file that can be downloaded by other users.can i get help on how to multiply the price and quantity to get amount? this is my code: <SCRIPT LANGUAGE="JavaScript"> function showamt() { //var unitprice … | |
Hello everyone, I am working on a project and this is the error I keep getting.. Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\member-form.php on line 69 error on connect Can someone help me understand.. this is my code [CODE]<?php function FormDisplay($strMessage="**All fields are required!"){ … | |
I am trying to setup a form that will output html to the email recipient so the format of the email doesn't look all jacked while at the same time making sure the person is human and doesn't allow bad characters. (so it has a verification script and it strips … | |
I require the PHP code and the methodology for maintaining more than one client and only one server such that the clients and server are on different consoles. It is very urgent. Please help! | |
I've tried this a number of different ways and I've even downloaded the Regular Expression reference sheet from addedbytes.com, but I just can't figure out how to move this eregi_replace() statement into a preg_replace() statement. I've read and understood the delimiter requirements for preg_replace(), but I think the problem is … | |
If anyone can help me I would be most grateful, Im curently working on a website at the minute that uses images that have been uploaded to a directory, along with a location reference in a MYSQL database. I have currently got the page to show the thumbnail version of … | |
I am getting the 500 Server Error message when I try to run my captcha script. The script is as follows: [CODE] <?php //Start the session so we can store what the security code actually is session_start(); //Send a generated image to the browser create_image(); exit(); function create_image() { /*//Let's … | |
hi everyone, i write data from database to the csv file,but i face problem how to print the csv file with multiple colors background for example first line is green then second line must be blue, please help me how can i do this in php | |
hey guys, I'm just wondering how you can link to another set of results within the original search results. For example with my code it displays a table and in one of the coloums, plot number, there is a list of number. I would know what to do once the … | |
hello, I have a DB table with records that have connection to one another. sort of like object a comes before b, and object c comes after c. example- table1- Id | pre | post a..|..0..|..d.. d..|..a..|..g.. g..|..d..|..x.. g..|..b..|..x.. g..|..c..|..x.. ...... ...... I have all the connections in the DB, … | |
.gud pm, is there anybody who can teach me how to connect to the other folder using the php,i am now currently working for the login but i cant connect it to the registration form,,please!!help me | |
hey there, in Java, I can take a text file and build a two dimensional array out of it. I hope I can do that in PHP as well but I can't seem to be able to do it. these are the specifics of my problem: I have an xml … | |
![]() | Hello, i attempting to edit an online payment form to connect to MySQl, i have managed to get everyting working up until the payment page. The problem i am having is sending the cart contents via encrytion to the server. When there is one product, there are no issues. If … ![]() |
How can i rename a part from a cell in a data table i have the folowing table id -------------- 35 albumdescription -------------- test 1 name -------------- 001.jpg type -------------- image size -------------- 97182 location -------------- test 1/thumbs/thumb001.jpg location1 -------------- test 1/slides/001.jpg I can change albumdescription and folder with [CODE]if(isset($_POST['change_name_alb_wein'])) … | |
hi im working on on a personal project and i need some help on how to structure my database and query. so here is my problem and searching for a solution. on my site everyday there will have a daily article or item grouped in categories. now a user has … | |
Hi sir this is the contact from [CODE]echo $name=$_POST['name']; echo $mail1=$_POST['mail']; echo $website=$_POST['website']; echo $title=$_POST['title']; echo $des=$_POST['des']; echo $swf=$_POST['swf'];//this is the attachment echo $photo=$_POST['photo'];//this is the attachment echo $Category=$_POST['Category']; [/CODE] I want send all these details on email send me the mail function code in php Urgent | |
hey there, I am trying to write a simple script that lets me remove lines from a file. I have an elementet.txt file that contains one-word lines. I thought that if I put the file lines onto an array, and then put back the array elements back on file, excluding … | |
Hi everybody, i make page which display all the record of the user in a table,i want to check if the time of the user login is great than 9:15 am the row background must be red, if not the normal white sisplay, i have the following script but not … | |
I need to use the mysql query result.following is the mysql query. [CODE] while($row = mysql_fetch_array($result)) { $name=$row['name']; } [/CODE] For example: result of above query is (name1,name2,name3...) The problem is... i need to return that result in the following function.How can i do it? [CODE] function results() { return … | |
Is this code correct? It is supposed to get input from SMS messaging API and save it to database. Mysql database is created with Table inbox and 2 columns called ID & Msg. I want to know if this code is going to do the job? Else help me in … | |
I have a similar error in line 1 of the following code: [code]<?xml version="1.0" encoding="iso-8859-1"?> <?php $ip = $_SERVER['REMOTE_ADDR']; if (getenv(HTTP_X_FORWARDED_FOR)) {$pipaddress = getenv(HTTP_X_FORWARDED_FOR); $ipaddress = getenv(REMOTE_ADDR); }[/code] | |
[CODE]function populateHarga() { var x=document.getElementById("barang").value; document.getElementById("harga").value=x; var y=document.getElementById('barang')[document.getElementById('barang').selectedIndex].innerHTML; document.getElementById("nama_brg").value=y; } function populateTotal() { var y=document.getElementById("jumlah").value; var x=document.getElementById("harga").value; document.getElementById("totalnya").value=x*y; } </script> <html> <body> <?php include ("db.php"); $now=date("Y-m-d",time()); ?> <? if($_REQUEST['action']=="del") { mysql_query("DELETE FROM temp WHERE t_no={$_REQUEST['id']};"); } ?> <table border="0"> <tr> <td>No.Faktur</td> <td><? echo "$no";?></td> <td></td> <td>Tanggal Order</td> <td><? echo "$now";?></td> … | |
Dear All, I got few tables as below. So then what I do on any time I will calculate the total points collected based on each table via some of this queries like below. What I am using now is the sum function. I am confuse should I like run … | |
Good day, I am climbing a wall trying to figure out why I can not retrieve the results of a mysql query to a php array. My query polls the database and it is retrieved but all the data is encrypted. I need to take the results and put them … ![]() | |
Hi Why there is a var function when we create classes?? I tried to use a variable with out type var before it and it worked ![]() | |
I am reading a book and there is the following code inside : [CODE] if ( !isset( $_POST[$requiredField] ) or !$_POST[$requiredField] ) [/CODE] I can understand the first part of the use of isset function but I cannot understand what the second part does. Any ideas? Thank you very much. |
The End.