39,402 Topics
![]() | |
I am going start a project that will create a pop-up window with a list of part numbers, prices , etc form another site. The listings will be selectable and then stored in our site database. I have never done anything like this before, so I would like to know … | |
Hi, Can we make secret.php bit invisible in action attribute of a form? I don't want users seing my post pages. [CODE]<form name='form1' method='post' action='secret.php'>[/CODE] Thanks ![]() | |
Hi there everyone, I really need some help. I have a load of PHP pages that generate XML feeds that need to run hourly for my site to function. Problem is I have run out of cron jobs with my hosting. I wondered if there was a way of creating … | |
hi guys, How to set html element value using php??? if it's not possible how to do this?? Thanks | |
Hi, What is the best way of securing $_SESSIONs in PHP page that prevents $_SESSION spoofing? Any example! Thanks | |
<?php class UserSession { public $php_session_id; public $native_session_id; public $dbhandle; public $logged_in; public $user_id; public $session_timeout = 3600; # 1 hour inactivity period public function __construct() { # Connect to database // $conn = mysql_connect($_ENV["DATABASE_SERVER"], 'db54496', 'HQe9rpTS'); $conn = mysql_connect('localhost', 'root', ''); if (!$conn) { die('Could not connect: ' . … | |
Hi and I have been working on an image uploader but need to be able to convert tiff files using php. From my understanding there is the gd library which doesn't support tiff files and the [URL="http://au.php.net/manual/en/function.exif-thumbnail.php"]exif library[/URL]. Does anybody know how I can convert a tiff file to a … | |
Hai friends, I wanna pass php variable through url using the GET method. I know like this [ICODE]www.somesite.com?name=thename[/ICODE] And works well but in many web sites I found they passing their variables like this [ICODE]http://www.flickr.com/photos/chocks[/ICODE] Without the question mark ... I wonder how to do this... Please advice me how … | |
Hi all, The following should display a record count, however im getting to a blank screen. Can anybody see why this query wont display anything? [code] <?php $link = mysql_connect("localhost", "uname", "pword"); mysql_select_db("dbname", $link); $result = mysql_query("SELECT ID FROM tbl_sellers", $link); $num_rows = mysql_num_rows($result); echo "$num_rows Rows\n"; ?> i get … | |
Hello, I am trying to have all my body text for a news website I am building, inside a MySQL DB, and when I echo it out in PHP, it shows symbols like ļæ½ instead of ". Can anyone help me? Thank you, EpicAsian P.S. I've tried the ASCII, ARMSCII8, … | |
As mentioned is this [URL="http://www.daniweb.com/forums/thread255320.html"]thread[/URL] I intend to create a collection of functions that use only core functions (as the [URL="http://www.php.net/manual/en/ref.strings.php"]String[/URL] functions) to maximal compatibility. (See the [URL="http://sites.google.com/site/xmlxslt4php/"]website[/URL] - anyone is invited to participate.) The first task will be to parse a string (containing the XML data), break it down … | |
Hello, I'm running a PTC website in which I'm unable to edit the referral field. Here is the code: [CODE]Referrer (if any):<br> <input type="text" size="25" maxlength="15" name="referer" class="form" autocomplete="off" value="<? if($_POST["referer"]) { print $_POST["referer"]; } else { echo securedata($_GET["r"]); } if($_POST['referer'] or $_GET['r']) { print "\" readonly disabled"; } ?>">[/CODE] … | |
I'm having a bit of an issue that I can't quite figure out. I set the limit for MAX file size for file uploads to about 500 kb. - responds with an error msg if you exceed the file size. If you try to upload something slightly larger ... say … | |
[b]Split from - [url]http://www.daniweb.com/forums/thread98963.html[/url][/b] hi. i want to add an email system to my website. is it possible to provide a email id to each user like [B][COLOR="Red"]people1@mysite.com[/COLOR][/B] plz help me .. | |
im trying to insert paypal donation code into a php file. i keep getting errors. so here is the code i have to work with. [code] <? begin_block("Donate"); echo "<BR><BR><CENTER>This would need to contain your donation code, or something. maybe even a paypal link</CENTER><BR><BR>"; echo "<a href=\"member.php?mid=$row[mid]\">$row[login]</a>"; end_block(); ?> [/code] … | |
Hi all, I am creating a online c.v but do not want it open to every one so i have made a simple login file but want the page to re-direct when the login is correct, [CODE] <?php $user = "user"; $pass = "pass" if ($_POST["username"] != $user && $_POST["pass"] … | |
Hi, What I want is once the user does the registeration on clicking the register button an email is sent to the email address with the activation link, untilll and unless the user clicks on that activation link, user's account does not activate. How can I do this. Thanks in … | |
Guys, there's a problem lies on my code...cant display the image in viewing candidates..i already put the code[ICODE] <img src=\"".$row['image']."\"> [/ICODE]as what my friend here said in my code in viewing but it seems it didn't work out.. here's my adding record.. [B]add_new.php[/B] [CODE] <?php /* NEW.PHP Allows user to … | |
Hello... i have problem with UTF-8 encoding... My database and table collation are utf8_general_ci, and when I add new insert query in the database is ok, but when I'm trying to print i got -> ???? The results are: In the database -> ŠŠ°Š¼Ńан ŠŃŃŃŠµŠ²ŃŠŗŠø In the browsers -> ?????? … | |
Hi guys, im very new to html and php and all this but my boss has set me a task of impressing him with the knowledge i have over the weekend, my problem is i dont have my own webserver so im trying to make an mp3 upload form. Im … | |
hey all, just starting with php, and was wondering if i could create a new web page by using a variable from a php script in a php script. For example, the user enters a word, and then a web page is created that is called that word. so user … | |
I am remaking a site that was built in RoR, I was wondering if anyone could help me with the SHA1 that they used to encrypt the passwords. How do I add the salt into the encryption in PHP? Here is the rails script: [code] def self.encrypt(password, salt) Digest::SHA1.hexdigest("--#{salt}--#{password}--") end … ![]() | |
My knowledge in php is not good and I need help. I have this [URL="http://phpforms.net/php-forms.html"]php form[/URL] but do not know how to insert in it the captcha. Thanks in advance! | |
Hello there, i need little bit help. I want to build voucher system. It should be like this user choose 3 vouchers, give the recipient details, and it goes to secure payment gateway. If the payment is completed then the system builds the pdf and sends it from the user … | |
Hi to the community. I hope this is ok to post here. First of all i would like to say that i am a newbie and i am trying to learn php on my own. I am looking into w3school and a few other sources i found here on Daniweb. … | |
I have a php code that forms a dropdown using a mysql table. I am using the dropdown to search and filter results in a page. The problem that I have is that it only shows the values from the table, I also need an option where I can leave … | |
i need a way to export data on the php form to excel on a click . how can i do this | |
i have script php game programing u can cek this web.. <snipped> | |
Hi there, Actually my problem is I want to get the date difference if date return of book more than one month add $10 if not leave the amountoffine to $0 and if the loaner took the book and return it after 3 months I want the code to add … | |
this is to test [ICODE]<?php class test() ?>[/ICODE] [TEX]test agaian[/TEX] [CODE]class test()[/CODE] | |
hi guys, im using linux opensuse as my web server, now i installed php there accdg to the manual, moreover, i also installed php to another computer having windows as its platform, now i compared the phpinfo() of the both pcs, ive noticed that there are some modules available on … | |
I have file 123.php which produces dynamic information upon excecution and need 123.php to copy it's output to file "abc.txt" How would I go about this in a unix environment? Thanks in Advance! | |
Good day! How can i display the data from Mysql with the least value of primary key and when a user clicks the next button the next to the least data will appear and then the next and so on? Please help me here, thanks! | |
[link]http://php.net/manual/en/function.isset.php[/link] Clearly states that "isset ā Determine if a variable is set and is not NULL"? I have been trying to use isset() to check values for NULL and it still appears yet when I use != NULL then it works. I think the fine line is in various instances … ![]() | |
hi all, i want to upload large video files using php and i can do that by editting php.ini file. but how can i do that without changing php.ini file?? advance thanks iqbal | |
Hello, I was working on a small project to make me think, and I ran across a problem when I was running a page. Instead of any error coming up, the page just produced the following, which was part of my code: [code]0 && $user_health > 0) { $monster_health = … | |
i m trying to extract multiple rows and print it in a single line in a web page. My code [CODE]while ($line = mysql_fetch_array($app, MYSQL_ASSOC)) { echo "<tr><td>"; echo "<a href=AssignedUpdateForm.php?app=".$line['App']. ">".$line['App']."</a></td>"; echo "<td>" . $line['firstName'] ." ". $line['surname'] . "</td>"; echo "<td>" . $line['ServerName'] . "</td>"; echo "</tr>"; }[/CODE] … | |
Hi all. I'm trying to implement a rotating image system written in Javascript into a PHP website. The PHP page and the Javascript both work fine independently, but integrating the JS is proving tough and giving me errors. Here is the top part of the PHP page: [CODE]<? include ("./application.php"); … | |
Hi can anyone explain what exactly this function does [CODE] tabs(array())[/CODE] for eg. [CODE]<?php tabs(array("grid.php"));?>[/CODE] | |
Hi, I have a bit of a strange problem where I am unable to "echo" results from a database - I will show you the code then explaine what im trying to do [code] <?php include_once "connect_to_mysql.php"; $sql = mysql_query("SELECT * FROM table ORDER BY RAND(), LIMIT 1"); while($row = … | |
its a simple piece of code but i seem to be having problems this is the code below [LIST=1] [*]$comp_tot="76"; [*] if ($credits = $comp_tot) [*] [*] //$sub=$credits_3; [*] $tot="76"; [*] $ans_1= $tot-$credits; [*] echo"<p>$ans_1</p>"; [*] echo "there"; [/LIST] this code is working however i dont want the condition to … | |
Hey, I was hoping someone could lead me in the right direction. I maintain a fairly large corporate/ecommerce site and after reviewing google webmaster tools I found over 500 404's that need to be dealt with. The list of 404's is always growing because people link to our site incorrectly … | |
Hi, I'm new to this forum, but I hope You can help me. So what I'm looking is a reference or list of the functions for drupal theme. Something like this: [URL="http://www.directtoindia.com/blog/index.php/wordpress-global-variable-list-and-their-usage/"]http://www.directtoindia.com/blog/index.php/wordpress-global-variable-list-and-their-usage/[/URL] or [URL="http://codex.wordpress.org/Function_Reference"]http://codex.wordpress.org/Function_Reference[/URL] Thanks in advance! | |
is this code what im doing is correct..? im using codeigniter framework of this oneā¦engine use is iNNodb [code=php] db->simple_query('SET AUTOCOMMIT=0'); $lockquery = "LOCK TABLE costumer_prof WRITE"; $db->insert('costumer_prof',$valueAdded); if($db->trans_status() === FALSE) //is this ok to used trans_status without trans_start or trans_begin..? { $db->trans_rollback() return 1; } else { $db->trans_commit(); return … | |
Hi ppl, In a drop down box in PHP i want a distinct value of Date from a column in mysql table. [CODE=text]W_Id FinishedDate Username 1 2010-01-25 me 2 2010-01-25 you 3 2010-01-25 she 4 2010-01-26 me 5 2010-01-26 you 6 2010-01-26 she[/CODE] In the dropdown box i want 2010-01-25 … | |
Hi there, does anyone know any good tuts for displaying images using php. The thing is, I have a site that i search for a part number and it displays the info, that i can do but for some reason im lost when it comes to the images. Do i … | |
hi, I have a varible which i want to pass it to an AKAX function as a parameter... HOW DO I DO IT???? Here is my code: [CODE] <?php $Username=$_GET['Username']; blah blah blah echo "<select name=WD value=' ' onChange=showDetails(this.value, '$Username')>Date</option>"; /* The onchange function is as follows*/ function showDetails(FinishedDate, Username) … | |
hi frnd, i have a html form with some text fields and i have a check box that when i click on it the data form 1st text box come to the next one. its working fine when i write the text in text box. but if i use php … | |
As I said, I would like to make a PHP login /Register system that would be free for anyone. Here I have started. Since Iam not expert, then I will be adding small pieces until something emerges. I hope DW guys will help until it grows to mature. I want … | |
hello.. hai to all. i am fetching description which is in database. that description has 5 pharas. i am desplaying in front side and calling translation function. now i am getting this error.[CODE]Warning: file_get_contents(http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=%26lt%3Bp%20class%3D%26quot%3Bnormal_text%26quot%3B%26gt%3BA%20woman%60s%20body%20performing%20to%20its%20utmost%20capability-%20that%60s%20what%20pregnancy%20is.%20From%20conception%20to%20delivery%2C%20the%20female%20form%20is%20tried%20and%20tested%20to%20carry%20and%20bring%20forth%20new%20life.%20The%20natural%20action%20can%20be%20quite%20exhausting%21%20If%20incorporating%20a%20pregnancy%20massage%2C%20the%20benefits%20to%20the%20expecting%20mother%20are%20incredible.%26lt%3B%2Fp%26gt%3B%3Cbr%20%2F%3E%0D%0A%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26lt%3Bp%20class%3D%26quot%3Bnormal_text%26quot%3B%26gt%3BPregnancy%20massage%20therapists%20specially%20trained%20in%20this%20area%20understand%20the%20exacting%20requirements%20of%20a%20mother%20to%20be.%20They%20are%20particularly%20skilled%20in%20the%20best%20pregnancy%20massage%20techniques.%20They%20understa in C:\wamp\www\addmultiplelanguajes-2009-08-15\k2.php on line 47[/CODE] actually this is my script. plz remember one thing what it … |
The End.