39,393 Topics
![]() | |
Hello Guys, I have bult a php site, and going live soon some questions first of all from what i read i need to have a .htaccess file in which it has turn of register_global and disable errors do i need to put anything further? I also have a admin … | |
CODE ERROR: Parse error: syntax error, unexpected T_STRING in.... CODE: [code=php]if(int strcmp ( string $x_password , string $x_password_conf) != 0) { $erros=1; $erro_conf_password = 'As passwords não coincidem'; }[/code] | |
Hello Guys, i have the following .htaccess file, [code] php_flag display_errors Off php_flag display_startup_errors Off php_flag log_errors On php_flag magic_quotes_sybase Off php_flag magic_quotes_gpc On php_flag register_globals Off php_value error_log /home/sites/mydomain.co.uk/public_html/err_ors/php.txt php_value error_reporting 2147483647 Options All -Indexes php_value disable_functions phpinfo ErrorDocument 404 /404page.html [/code] I then did a test error so … | |
Hi, I'm creating a basic CMS using PHP and MySQL and i'm struggling to get the checkbox information from my html page across into the database. I want the values to appear as binary 0 or 1 values, any help would be greatly appreciated thanks html document is written as … | |
This is a page name search.php [CODE=html]<form action="/ap/demo_paging1.php" method="post"> <input type="text" value="Enter Site ID" name="a" class="textfield_effect" maxlength="30" onfocus="this.value=''"> <input type="submit" value="Search ID " /> </form> [/CODE] and I post value a to another page name demo_paging1.php when I put Query [ICODE]WHERE SiteId REGEXP '$a'[/ICODE] It does not show me the … | |
I am trying to make the image proportionate so that it does not look pixelated. Some of my image look nice but others look pixelated. Is there a way or a code that I can use to make all my thumbnail images proportional from the original image or something like … | |
i want source code for chat in php and mysql | |
Heres my code, which is in the head section of the page(yes, its saved as .php): [code] <?php if (isset($_GET['category'])) { if ($_GET['category'] == "property" ) { $property_link = "<span>Property</span>"; $rentals_link = "<a href="listingstest.php?category=rentals">Rentals</a>";} else { $rentals_link = "<span>Rentals</span>"; $property_link = "<a href="listingstest.php?category=property">Property</a>"; } } else{ $property_link = "<a href="listingstest.php?category=property">Property</a>"; … | |
hi guys, i have working on this simple cart script,it goes like when selecting the product in combobox it will display the details of the product into the textbox, i can display the details but my problem is when i select another product the previous selected product was replaced.. what … | |
I have tried to get my php scrip to work but it doesn't. can someone maybe help me to get it working please. Here is my script: [code=php]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <?php if(isset($_POST['mail'])) { $email_to … | |
Hello! I was wondering if I could get some assistance with something that is probably easy for even an amateur javascript coder, but, I just can't seem to get after trying every iteration of code I can imagine. The deal is, is that I'm trying to put together a PHP … | |
Hi, I want to show running time. i dont want to show present time. Time should be running on php page. Please Please help me. | |
Is there anyone who can write a javascript/php code for refreshing the contents of only one DIV container on one page? ![]() | |
Hello, I am trying to work out a PHP page which establishes a sequenced rotation of ADS. Here is the code so far. There are some elements missing that need help with. [CODE]<?php include("core.php"); session_start(); $type = $_GET['type']; $category = $_GET['category']; $User = $_SESSION['MEMEBER_ID']; $Type = "image_imp"; // Get Initial … | |
Can someone help me please! I have 2 tables one memberlist and the other results, a user makes a selection and it's entered into the memberlist and saved, the results table in then update (after a race event). I would like to compare the values in both table against each, … | |
Hi everybody, here is my update query ..there is no error but the record is not updated. anybody know of what should I edit? Many thanks [code=php] mysql_query("UPDATE lesson SET(`subject`= '{$ins_subject}',`year`='{$ins_year}',`noofstudents`='{$ins_noofstudents}', `minutes`='{$ins_minutes}',`ability`='{$ins_ability}',`learningArea`='{$ins_learningArea}',`objectives`='{$ins_objectives}', `LO`='{$ins_LO}',`skills`='{$ins_skills}',`prerequisite`='{$ins_prerequisite}',`resources`='{$ins_resources}',`introduction`='{$ins_introduction}', `activity`='{$ins_activity}',`step2`='{$ins_step2}',`step3`='{$ins_step3}',`step4`='{$ins_step4}',`assessment`='{$ins_assessment}', `reflection`='{$ins_reflection}',`closure`='{$ins_closure}',`extension`='{$ins_extension}',`author`='{$ins_author}') WHERE lessonID='$id'") ; [/code] | |
I am trying to use this script to enter data into my database from an html form. this code is not working. plz tell me where the error is form is [code=html]<html> <head> <title> Review, Ratings, Opinions Site </title> </head> <body text="green" > <form action="register processing.php" method="post" > First name: … | |
hello, i have a mysql database which i use a php script to search and display results with fields make, model, price, year and would like to add extra functionality with presumably javascript to add a drop down form field as when a particular make is selected from the list … | |
I think I have read the answer reading through several forums and many posts, but I am not getting it. Please help... I am a novice. I have a page that displays some info for all the records in a database. It's for real estate listings, so the page displays … | |
Hi.. I'm newbie here.. I have a problem with my login and logout script.. Here is the login script: [CODE]<?php $q = "SELECT * FROM members WHERE username='%s' AND password='%s'"; $q = sprintf($q, $username, $password); $q = mysql_query($q); if (mysql_num_rows($q) > 0) { $_SESSION['id'] = $q[0]['id']; $IS_LOGGED_IN = true; } … | |
Hi! I have a question that probably has a really simple answer :D. I have a regex that validates names: [CODE]elseif (!preg_match('#^[a-z0-9' -]{1,35}$#i',$lastname )) { include('includes/error.php'); }[/CODE] Only if the name I enter has an apostrophe, it gives me my error message. Can someone please help me modify this regex … | |
I have a registration page where a user will upload his/her resume. On clicking "register" button the form will sent all the data to admin. It also sends a link called "download" containing the path of the word file that the user has uploaded .On clicking download the admin is … | |
Hello, I want the ability for my clients to authorize the payment at the signup and pay when they will confirm their account. I have Googled about it and found the Paypal Authorize and Capture for this purpose. I was unable to found tutorial for A&C. Please tell me if … | |
Hi! thr, I am uploading a file in to server. At the time of downloading, it should show "view as html" as google does. thanx in advance. Manoj | |
I have a cookie script that creates a cookie from a session variable, the only problem is when the session is destroyed the cookie is deleted even though I set the expiration to a year. What can I do to prevent this? | |
Hello, I found a php function that utlizes smtp authentication to send emails. However, when I tried it, no errors are echoed to the browser, but when I check my inbox, there is no mail from that site. I don't think anybody else is getting them either because I asked … | |
Dear all, I encountered the following error while trying to generate PDF file in my HTML site. It is same report while creating it in PHP. Warning: main(fpdf.php) [function.main]: failed to open stream: No such file or directory in c:\wamp\www\projectcode2\pdtest.php on line 3 Fatal error: main() [function.require]: Failed opening required … | |
Hi All, I am making a web directory in which i have one field of url of website which is i am taking form a form. Now i want to do this when i will show this url on my site then this will fetch screenshot of that url on … | |
Can someone tell me how to do the watermark on posting part of the forums please? Like on DANIWEBS! :) If you cant, could you please point me in the write direction by linking me or telling me what the feature is called. Thanks! |
The End.