39,402 Topics
![]() | |
I have a table on a page that displays info from a database and everything is working fine but I want it so if the user entered data from another page to a certain field then the row on my data display table will turn red. Right now I have … | |
I've got some code working finally that puts the checked items from two different lists, into their respective tables - all within one form. Everything works fine except... On the second set of checkboxes, it's putting the final checked item from the array into the database twice. some kinda loop … | |
I have a field that looks like SKU: [url]www.cool.com[/url] the code that spits that out is [CODE]<tr> <td><b>SKU:</b></td> <td><?php echo $product_info['sku']; ?></td> </tr>[/CODE] the [url]www.cool.com[/url] is what I entered in for sku: but what comes out on the page is not a clickable link. What I would like to have … | |
I use SwiftMailer in my PHP script to send emails upon HTML form submission. On the test server it all works fine. On the production server (different host) it gives me this error message: [QUOTE]Parse error: syntax error, unexpected T_CLASS in /home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php on line 18[/QUOTE] What could it be? Thank … | |
I use SwiftMailer in my PHP script to send emails upon HTML form submission. On the test server it all works fine. On the production server (different host) it gives me this error message: [QUOTE]Parse error: syntax error, unexpected T_CLASS in /home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php on line 18[/QUOTE] The two machines use different … | |
Hi, I am Iorgobus and i need some help with php captchas. Because spammers are more an more, I want to put on my site a php captcha script to stop they. If you have any recomandations where I found a good Captcha PHP script, free or not free ,please … | |
I have WAMP server installed, and have clicked "Start all services." However it does not let me run Php scripts in my browser (ie7). Even the scripts clled from the wamp menu to not execute. I have uninstalled then reinstalled a new download to no avail. Suggestions anyone? Ralph | |
I am just been watching this course and it just sets the picture so well for me, [URL="http://www.cs75.net/"]http://www.cs75.net/[/URL] it is a Harvard online course as such, you do not get marked !!.. but you can watch the videos and also do the course work :). Just thought that I would … | |
I have one link in my webpage where user can call to other skype user. [CODE] <a href="skype:skype_username?call">Call me</a> [/CODE] But when user have not skype installed in their pc one notification popup is coming. Is there any way in any manner i can detect is skype is installed or … | |
Hi, Im having problems when using the header("Location: filename?args") function to act as a swf file. It works with firefox but not with Internet Explorer. [CODE] <object id="flashfile_obj" type="application/x-shockwave-flash" data="get_file.php?name=<?=urlencode("test.swf?&test_to_swf=1")?>" width="900" height="500"> <param name="movie" value="get_file.php?name=<?=urlencode("test.swf?&test_to_swf=1")?>"/> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <param name="base" value="_dir" /> </object> [/CODE] The … | |
Ok, i am quite new to php and i am trying to create an application that allow two clients to access a server simultaneously. i have manged to write the code below but i keep getting errors and i think its probably because i have two form actions on the … | |
This is my code for multiple file upload. When the user clicks on attach more files link $max_no_img should be incremented but i am not able to figure out how to do it. <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> <title></title> <script type="text/javascript"> function increment(){ max_no_img++; return max_no_img; } … | |
Hello everybody: This is my first thread in here. I readed a lot of good problems and solutions in this webpage. Right now im having troubles with one form submit in IE. Here's the thing. I'm trying to generate a PDF in PHP, i'm using mPDF to show the html … | |
Hi All, the following code is used to get an update from a database. My question is how can I use this more than once on a page to call two different queries (from different php files)? [code] <html> <head> <script type="text/javascript"> function showHint(str) { if (window.XMLHttpRequest) xmlhttp = new … | |
Ok I have been working on this for a long time and I am just plain stuck. What I am developing is an online application for a school to keep track of missing assignments that students have. I have a table that lists the students first name, last name, homeroom, … ![]() | |
Hi all, Still struggling a bit with PHP here. I wrote a script a while back that performs a display of various files from a folder. In this script, I have a piece of code that determines whether or not the signed in user is an admin or a user. … | |
Hello all, My question is how would you query (insert into table) a variables that can vary from few to many in quantity depending on the user input. The code looks like this. [CODE] $chkbox = $_POST['chk']; $imp=$_POST['imp']; $step= $_POST['step']; $start=$_POST['start']; $finish = $_POST['finish']; $duration = $_POST['dur']; $status= $_POST['status']; foreach($imp … | |
guys i am new to php and all what i know is html .so please tell me how to create a commenting box that allow people to comment on my website or my post . | |
Hi Everyone. Can some please assist me. I'm trying to create a login script. This is what I've done so far. This works if user's input is correct. But when the user input is incorrect I get a blank screen. I think my problem lies in the $SQLPASS statments. Any … | |
Hello. I'm new here. I'm just started learning PHP SOAP. I am trying to to create a simple user registeration and login form. The login and register function works well. My idea is to make the soap persistence. After login for the 1st time, I would like to set my … | |
I have a list that passes values to an sql statement to show relevant results. I have three options (All, Option One, Option Two) and cannot get the query to work. If I choose option one or option two then the results are fine but I cannot find a way … ![]() | |
i want to create login form having password and username and validate the username and password inserted by user with data stored in sql data base .please can you help me with the coding how to validate? | |
Hi Everyone. I have a quick question. I have 2 checkboxes. One yes and other no. I want only one to be checked at a time. Example : if yes = checked uncheck no. if no = checked uncheck yes [LIST=1] [*]Is it possible with PHP or should I try … | |
[url]http://php.net/manual/en/function.preg-replace.php[/url] [url]http://phpro.org/tutorials/Introduction-to-PHP-Regex.html#1[/url] I have been reading up on php regular expressions. Honestly I don't get it. I think i need to use the above. Here is my problem I am reading a page via php-curl and sending it to a string variable. Now before I send the html code back … | |
Hello all, so im kinda stumped. Im a real big O'Riellys fan, so i came across one of tuts in PHP Cookbook. So basically i wanna display files in a folder or a directory using this code. The only problem is that when i load it in a page, it … ![]() | |
hi all, i need to display the images that are saved in the back end. so can any one help me please....[CODE]$sql="select * from images"; mysql_error(); $result=mysql_query($sql);[/CODE] after this wat should be done to display the result obtained images. | |
Hi all, Onceagain I come back with a query about paypal. I have been developing a site with subscription module. If the user might subscription into the site then they will access all the privileges of the site. Rest of the subscription members have not get their privileges while surf … | |
Hello guys . I have installed php on my laptop but i dont know what i can do next . So please tell me how to complete my PHP insulation ![]() | |
please help me i want to use of PHP to keep records please help me ![]() | |
hi guys, i wanto to know how i do, to print reports in php, in pdf file!! thanks. | |
Hello guys, I'm new here, and i have this question without an answer till now. So, what i want when people click on submit button on contact page, is that when e-mail is sended the Subject just update like... "Contact #00001"... when another people click it... it'll be sended like … | |
Hi members, I need a form mail but for free. Something like a form : [CODE] <FORM action=http://www.xxx.nl/cgi-bin/mailto method=post><INPUT type=hidden value=myemail@yahoo.com name=sendmail_to><FONT face=arial size=2> </FONT><INPUT type=hidden value=http://www.xxx.com/ name=next_url><FONT face=arial size=2> </FONT> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR>[/CODE] I hope that now you understand my example. Please help ! ![]() | |
I've implemented changing src of an image using javascript but I don't want any javascript in my website now. So I need help to do that in PHP! :) What am I doing: In the main index.php file, [code=xhtml] <body onload="load_images();"> [/code] Then I include a random file [code=php] include("content_to_display.php"); … | |
Could someone tell me how to generate a double random number by using PHP? THanks. | |
please tell me what is the meaning of this code , i have tried it on my website but it usually says you are not allowed to access directly to it this is the code please help me : [CODE] <?php defined( '_VALID_MOS' ) or die( 'Direct Access to this … ![]() | |
hi i was wondering if users are able to change php sessions data like for cookies and if so how can i not allow them to do this? I want to know because i dont want people to steal each others account on my site. | |
help me plz i m facing an error.....thnx Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in J:\xampp\htdocs\projects\admin\index.php on line 45 <?php //database connectivity $host="localhost"; // location of my sql on server $user="root"; // Database name $pass=""; // Database name ( By default with no password ) … | |
In my code, I loop through 3 random users, and I am trying to add 500 to their total number of credits. The variable $credits isn't being captured correctly, as it shows blank when I try to echo it. The odd part however, is $userid (primary key) is captured into … | |
Hi There. Does anyone have a php select option that will pull data from mysql DB and populate next select option with data. I need to have 3 select option. I also want to run mysql query with data from all 3 select options. Thanks Regards | |
hi! i want to view an rss file using php.. i found this site: [url]http://www.softarea51.com/tutorials/parse_rss_with_php.html[/url] here's the code: [CODE=php] <?php $doc = new DOMDocument(); $doc->load('http://www.softarea51.com/rss/windows/Web_Development/XML_CSS_Utilities.xml'); $arrFeeds = array(); foreach ($doc->getElementsByTagName('item') as $node) { $itemRSS = array ( 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue ); … | |
Hi, how can I convert my PHP data (extraxt from sql) to word document? | |
I am storing the images in a folder on my webserver and adding the location/details of the image to the database. But I have problems retrieving them, please help! Is this the code I should be using? [code=php]<?php echo "<img src='/images/". $filename ."'>" ?>[/code] then $filename is supposed to be … ![]() | |
IT NOT WORKING :(( [CODE] $igletuire="INSERT INTO valoare_lucrari (id_ofertant, id_manopera, id_camera Denumire_camera, um, Cantitate, Pret_manopera, Total )VALUES( '" . $row['id_ofertant']. "', '" . $row['id_manopera'] . "', '" . $row['id_camera'] . "', '" . $row['Denumire_camera'] . "', '" . $row['um'] . "', '" . $row['Sgletuire'] . "', '" . $row['Pret_manopera'] . … ![]() | |
Hello Everyone, I have table name schedule in my database. There is field sch_time in that. sch_time stores time in GMT. I also have timestmp field which stores data in unix format. The time stored in sch_time is of future date i.e. schedule of some event. This events are displayed … | |
I'm creating a daily drawing system. The users have a chance to win every day. Once a user wins, they will not be able to win again for 30 days. I need to select all rows inside my mysql database that have dates over 30 days ago, or are still … | |
Is there any way to search with a variable that is an array. ie) [code=php] mysql_query("Select * FROM table_name WHERE `id` = '$var'"); [/code] where $var is an array. Is this possible? | |
Hello Great developers, i am working on an application, where i am trying to implement the multiple users chat, Basically the users send message to mobile and then get back the reply , then it shows like normal chatting. all everything is working and GREAT :icon_wink: But Except the multiple … ![]() | |
iam trying to install phpmydirectory to my localhost server (i have testing it using xampp and wamp)...but there is a problem; when iam using wamp, the installation of mhpmydirectory working just fine, but then i cannot login as administrator. If i check on mysql there is administrator username and password, … | |
hey, as i said, i am phpl0v3r ( if you can't read phplover :p ) i love to code php, js i love debugging problems i love neat web design i love learning new stuff i love my friends and family and i truly love good nature in the world … |
The End.