39,326 Topics
| |
Hi, I have a situation that is producing NULL values: The situation is best explained with this code at this link: [CODE]http://www.daniweb.com/web-development/php/threads/227698[/CODE] Initially, I had a link called "add to list" for each record the display page displayed. I used to hide the row-id in there and pass it onto … | |
hi, i am creating a form of which will update portfolios, included is a text field...i already have blocked the usage of html and email addresses from being posted, but i cant seem to figure out how i would block website addresses? what code would i use to do this? … | |
I have problem with this code.. my browser prints: Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\plaincart\library\database.php on line 4 [CODE]<?php ini_set('display_errors', 'On'); //ob_start("ob_gzhandler"); error_reporting(E_ALL); // start the session session_start(); // database connection config $dbHost = 'localhost'; $dbUser = 'root'; $dbPass = ''; $dbName = 'plaincart'; … | |
[CODE]echo '<h3>Yeni Yönetici Ekleme Ekranı...</h3><br><br>'; if (isset($_POST['submit']) && $_POST['submit'] == "Kaydet"){ if ($_POST['usernname'] != "" && $_POST['password'] != "" && $_POST['first_name'] != "" && $_POST['last_name'] != "" && $_POST['email'] != "" && $_POST['TCK'] != "") { $query = "SELECT username FROM users WHERE username = '".$_POST['username']."';"; $result = mysql_query($query) or … | |
i am trying to put all of my cookies into an array. heres my code [ICODE] <? setcookie('failn','fail'); setcookie('goodn','good'); setcookie('han','ha'); $allcookies=explode(' ',$_COOKIE); print_r($allcookies); ?> [/ICODE] but the page only returns Array ( [0] => Array ) please help | |
Hi, DW complains of a syntax error that I cannot understand. I use the code as a standalone and it is not a problem, but when used as a table element as written below, it complains of a syntax error. The red highlight is where it complains, the green seems … | |
Hi I want to create a code so that the user can upload an image. The code then resizes it and then [U]stores it as a blob[/U] in my database. [URL="http://www.9lessons.info/2009/03/upload-and-resize-image-with-php.html"]The code I'm using[/URL] I have done everything, but need to know which variable (in the link) to store into … | |
I have a website where users can add their friends. What I am trying to achieve is to show every user that who are their friends that are currently online. If any one knows a link to any script or tutorial that explains this, Please help. | |
Hi all I am just getting to grips with dreamweaver database development but cannot figure out how I am supposed to update multiple tables to mysql when I have updated a form for a record. Any pointers from experienced dreameweaver developers please? Many thanks in advance | |
Hi frnds .... I am trying to create a contact form in PHP , MySql .... In my form i have two 3 input fields n a Submit Button ..... 1. Name 2. email 3. SecurityCode ( here user have to enter the captcha code ) m collecting all information … | |
i work with a website. in which i want to urlrewrite for example my url is www.test.com/express.php?project_id=4&group_id=3 Now how can i convert it into www.test.com/project_name.html i get project name from database using project id.... | |
I am using the following code to find whether the content area is using a command (commands are held in a table column) or not. The commands call on "quick content" which are default areas that you might see regularly around the site. This feature ensures they are not different … | |
Hi, I am trying to set up a php email form but the website the form is hosted on, is hosted on a windows server. And I am getting this error: There was an error in the information submitted: From Email address empty Please return to the form and fix … | |
Hi, I have almost finished my first webpage with php but I have an error I can't manage to fix. I used the plaincart template to start with. If you go to [URL="www.michton.com/shop.php"]www.michton.com/shop.php[/URL] There is an error at the top of the page, it is on black so you need … | |
id like to input a parameter using an input box it suppose fill a column of an existing table the submit button need to clear the old values in this column and than fill it with the new values for example three column row; id, countries, parameter1 on submit clear … | |
hi, here i mention my code its a code to login and logout code when i click on logout than its return on userlogin page but when i press back button of browser its return to previous page. code here RM.php <form action="login.php" method="post"> <table width="300" align="center" border="1"> <tr> <td … | |
Is it possible to run an exe file directly onto the server without downloading/saving into client machine? I had used that exec() function .But it is showing no display. <?php echo exec("d:\example\php_exe\1436.exe"); ?> Also I tried it using backticks operator | |
Hey Guys! i'm trying to start making a php based word translator. Do i need to retype every word in dictionary or is there a way to download "library" type thing, or copy and paste from sources (could not find)? thank you for your help | |
I am selecting an image as part of a html form. Once selected, jQuery assigns a user-defined attribute of the image to a hidden form variable and passes it to form handler. Neat. Problem is when I dynamically add images that can be selected. I am using live function to … | |
Hello, I hope somone can help me. I have a form that a user use to search for their pay, and it will dispay it for them as both with dependents and without. Right now they can search and it will display their pay, but it displays it as two … | |
ALL THE FILES ARE HERE. [URL="http://cid-3e21e1e16478087a.office.live.com/embedicon.aspx/.Public/noswfupload.rar"]http://cid-3e21e1e16478087a.office.live.com/embedicon.aspx/.Public/noswfupload.rar[/URL] THERE'S A PROBLEM IN THE FILE RECEIVER.PHP I can't solve why I cant upload with restrictions, what I want is to upload multiple files in one deploy... it's an array of files. I want these each files of every array element is checked and … | |
Hi All, I have some trouble getting some javascript code implemented Its basically because I havent used much it before. Its like this: When admin chooses to delete a page from his site via this link: [CODE] <?php echo '<a href="process_delete_page.php?pid=' . $id . '">Delete page!</a>'; ?> [/CODE] Before this … | |
Does anyone know about cleaning up URLs for CMS? I had a .htaccess file containing the following code (or so far as I can remember) [CODE] RewriteEngine On RewriteRule ^([a-z])$ /index.php?url=$1 [L] RewriteRule ^/article/([a-z])$ /index.php?url=$1&type=news [L] [/CODE] which was working fine ie: [url]www.mysite.com/somepage[/url] loaded the "mypage" content into my index.php … | |
hi...i really, really need help right now...i have order date and approve date.. 1) my problem is, how i can calculate between those two date 2) code for checking insert date...for example, if the user enter yesterday date for order date, it will pop up an error and if the … | |
[B]Hello everybody. I've been working on a PHP file that adds a value to a cell in one table in MySQL.[/B] First I thought that the following code might work properly: [CODE] <?php require("DB_Connector.php"); //The file that connects to the MySQL database required mysql_query("update tableName set cellName= cellName + '$The_New_Value' … | |
how to delete line number 3 or any line of my csv file ????????????????? like test.csv 1.jhon 2.sarah 3.ricky //delete this row of csv 4.martin | |
Hi Experts, I have a table and I want to check once in a day if some records have been added or removed from this table within last 24hours ,and then send an e-mail to myself of all those added or removed records only . Any idea about how can … | |
HI Sorry for opening the thread, i have some issue please help me in solving the below one [B]Javascript[/B] [CODE]<script language="javascript"> function line(elem,amt,res_elem) { var qty=document.getElementById(elem).value; var tot_amt=qty*amt; //document.getElementById(res_elem).value = tot_amt; document.getElementById(res_elem).value = Math.round(tot_amt*100)/100; } </script>[/CODE] PHP [CODE] <?php $cate_code=$_GET['ct']; $civrform=$_GET['vrform']; $site=$_GET['site_name']; $desr="select * from site_rate where category_code='$cate_code' AND sitename='$site' … | |
hi i want to delete line from my csv file after echo or process this line can any one help???????????? thanks in advance!!!!! here is my code [CODE]$fp = fopen('surInput.csv','r') or die("can't open file"); while($csv_line = fgetcsv($fp,1024)) { for ($col = 0, $j = count($csv_line); $col < $j; $col++) { … | |
[CODE]while($row = mysql_fetch_array($sql_blabs)) mysql_fetch_array(parameter)[/CODE]PLEASE i need another method OF retrieving data from MySQL database other than THIS IS THE FUNCTION THAT'S THROWING THE ERROR, IT KEEPS SAYING THAT'S ITS A NOT A VALID PHP FUNCTION |
The End.