52,566 Archived Topics
Remove Filter ![]() | |
yow! I have a question. the case is have and email notifacation in my php code in the database(MSSQL) i put an email add these are the two email address Rex.Cam@email.com and rex.cam@email.com the email notication is intended for the email who has a capital letter on the start the … | |
I am trying to write out some areas of an existing guestbook program, and keep hitting brick walls. It consists of a controller, view, and a tweaking of the results display. Anyone here interested in taking a look ? Web Development php | |
Hi all, I am using DataReader for the first time and i faced more than one error and this is the last one ((Index was outside the bounds of the array.)) and it's point to this line Dim result As Data.SqlClient.SqlDataReader = dr(Data.CommandBehavior.CloseConnection) I think I have problem with closing … Web Development asp.net open-source session visual-studio | |
I have this succes message that the visitor sees after submitting the contact form via ajax using jquery: My question is: How can I first fadeIn the image, and then "500 later" fadeIn the rest of the text that is appended after the image? -Now it fades in all at … Web Development javascript javascript-jquery | |
Hello, I try to call a header A if a user is logged in, and a header B if a user is not logged in on some pages I haven't managed to do so, I've tried to create a php function, but didn't manage to make it work. Then, I … | |
Hi, i want to create cookies in my shopping cart site. I want when i click on add to cart button of this product. the information of the product save in cookies and destroy when user close his browser. I want a script. When i create cookies it's work only … Web Development php | |
I am using the following code for receiving information from users, **is it possible to get all the information as a PDF attachment ?** protected void Button1_Click(object sender, EventArgs e) { SmtpClient smtpClient = new SmtpClient(); MailMessage message = new MailMessage(); message.To.Add("admin@domain.com"); if (CheckBox1.Checked == true) { emailadd.Text = employeenameDropDown.SelectedValue; … | |
Hi I am creating my first webpage using DreamWeaver CS5.5. I am trying to work on a contact me page and I want the submit button to automatically send me an email with the information provided in the form. I have found a lot of stuff on the internet on … | |
G'day. I get this error when I go to some other page, or redirect to index.php Warning: Cannot modify header information - headers already sent by (output started at /hermes/web05/blubbz/register.php on line 33 CODE on register.php: <?php if (isset($_POST['register_email'], $_POST['register_name'], $_POST['register_password'])) { $register_email = $_POST['register_email']; $register_name = $_POST['register_name']; $register_password = … Web Development php | |
Hello, I'm trying to get results from a mysql database based on values in an array. My tables look like this 1. id | articles | thumbs | etc 2. tag_id | tag_name | article_id I'd like to get related articles based on the tags for that particular article. So … ![]() | |
Hello everyone, I have 2 issues that I've been trying to solve for days now 1. I'm trying to display an error message if a user tries to purchase more quantities of an item than what are actually available 2. I can't figure out how to decrease the actual in … Web Development php | |
Hi, I am using WAMP on Win7 and my root folder is obviously `c:\wamp\www\` On same computer I use `http://localhost/project/` to run my project. The question is how do I run same project on other machine which is on same network? Also I rather use a bit human friendly naming … Web Development php | |
i posted earlier this week about getting around codes in large projects. someone told me to install phpDocumentor and it will give the architecture of the software. i though, i should give it a shot, because im wasting my time searching instead of doing. the thing is, phpDocumentor doesnt work. … Web Development php software-architecture | |
Who can help me with the following. a part of my code doesn't work and i do not know wy. <?php //from here it is working $con = mysql_connect("localhost", "bla", "bla"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("wordpress", $con); $sql1 ="CREATE TABLE IF NOT EXISTS stamboom_landen … | |
| |
Hi there, I am making a spell checker program with php with words stored in mysql. I use it to check unicode languages. But I do not get good suggestions with similar_text with percentage above 82. But if I decrease this percentage, I get many useless words. How can I … | |
error Please select an imageError: Duplicate entry '' for key 'img' ` //file properties $file = $_FILES['image']['tmp_name']; if(!isset($file)) echo "Please select an image"; else { $image = addslashes(file_get_contents($_FILES['image']['tmp_name'])); $image_name = addslashes($_FILES['image']['img']); $image_size = getimagesize($_FILES['image']['tmp_name']); if($image_size==FALSE) echo "That's not an image."; else { { if(!$insert = msql_query("INSERT INTO shop (id, img, … Web Development html-css javascript php | |
<?php session_start(); error_reporting(0); ?> <?php ob_start(); ?> <?php include("connect.php"); $u_name = $_POST['email']; $u_pass = $_POST['pwd']; if ($_POST['Submit']=='Login') { $sql = "SELECT * FROM user WHERE username = '$u_name' AND password = '$u_pass'"; $result = mysql_query($sql) or die (mysql_error()); $cmd=mysql_fetch_array($result); $num = mysql_num_rows($result); if ($num) { $_SESSION['username'] = $u_name; echo '<META … | |
I've created a web application page with login and session login basically a <?php session_start() ?> do I really need to put this code on every page of my php ? because session login only active on the first page after I do login.. Anyone.. Help me on this.. Thanks | |
I have the simplest code possible to upload a file using php and it only doesnt work using mozilla firefox. The server responds: 'Bad Request Your browser sent a request that this server could not understand.' This is the code(2 files): upload_file0.php <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> … Web Development file-system php web-browser | |
Hey! I'm trying to get mail(imap) from google by oauth authorization . I have got the authorization to work, but I can not retrieve the emails. As I understand it should be posible. But Google does not have any api to retrieve mail(?). I found the following: https://developers.google.com/google-apps/gmail/oauth_overview That says: … Web Development api google-api php | |
Could someone tell me how to extract the right most single digit from a number without knowing the length of the number? 123 I need the 3 386485 I need the 5 etc... Seems it should be simple, but been searching for over an hour and can't find the resolution... … Web Development php | |
I am attempting to create a script which checks to see if the user has a warning level of less than 3. Basicaly, I want to automatically deny any account which has a Warning Level (stored in the Database) of 3 or more from logging in but whenever I attempt … Web Development php | |
hello, I use a script I found on this site [Click Here](http://www.html-form-guide.com). I don't think the htmlentities check work and I don't know what's wrong. the .php file for the registration starts with <?PHP require_once("./include/membersite_config.php"); if(isset($_POST['submitted'])) { if($fgmembersite->RegisterUser()) { $fgmembersite->RedirectToURL("thank-you.php"); } } ?> and the user registration form starts with … | |
Hi there, I am trying to combline results form a query into one variable/string without drastically changing the sites current code. Bacically I have been trying to add **rs2("name")** for each record into one string. For example, say the customer has "item1", "item2", and "item3" in their basket, well I … | |
i want that when user type username in from fiel it validate from process.php and after validate it show result in front of name field . i want that when user select uk from contry it show uk city and if selected india then show india cities how can it … Web Development javascript-jquery php | |
I am using Notepad++ and I have just been investigating using the Workspace. If I want to create a new file in the workspace I either have to manually locate the actual working folder and create the new file -- or I can use the Notepad++ Explorer to create the … | |
**Hi guys** I’m new to this site and i really need a professional help out here. I am trying to make a search form in my page and basically i can search my database already but i need to revised the code because the process of my **search form depends … | |
Hi everybody, What is the problem in this code,loop does not working . layout page display loop. i need 12 columns. in page layout. plz help me. <div class="planbooks"> <b><?php echo date(" 'F 'y") ?></b> <?php $i=0; foreach ($planbooks as $planbook): ?> for($i = 0; $i <=15; $i++) { if(!($i … Web Development php | |
Hello everybody, am a bit new here. My first question is, if I am on the right place here? I feel like been in the wrong place. Am looking for some forum where I can ask or finde about "General questions" I have about AJAX sometimes. Am not sure, if … Web Development javascript | |
i have a form in html. when user hit sumbit. i want to run top php code. when i run it it give me 2 errors Notice: Undefined variable: _SESSION in C:\xampp\htdocs\login_test\register.php on line 134 Warning: array_key_exists() expects parameter 2 to be array, null given in C:\xampp\htdocs\login_test\register.php on line 134 … | |
Hey everyone, I haven't been on here in a while and I have probably a stupid error somewhere but anyway, I have three files: one is a php(header) file and the other is a css file linked into the index page. I think I've coded the php and I'm pretty … Web Development html-css linked-list php | |
Hi guys i am new for ASP.net application, so guide me to learn more in this programming language. Well i have my own login form. Now the problem is, i want to create a session for all pages. Which means if user does some changes in some of the field/pages … | |
I have scoured the web for the answer to this question. I am a nubie to PHP so the answer may be simple I just don’t see it. I’m trying to dynamically create two drop down menus from the results of one query. Sounds simple enough but I want to … | |
Hi People, Got a php related issue.. I have a form Which has some textboxes, few checkoxes and a Textarea. Say for example, Name: Email Address: And then the checkbox values....... Hobbies (Reading, Trekking, Gardening, Outdoor Sports, Birding) Once I click the submit button, All my data gets inserted in … Web Development php | |
Hello, I am trying to create a members page for my website and I want it to display a welcome message for when the person views it, something like: "Welcome <USERNAME>" I am new to PHP so I am not sure if there is something I am doing wrong, here … | |
Hi, I have to add css attribute at runtime using jquery.. For example i have the following code: <table width='100%' cellpadding='0' cellspacing='0' > <tr> <td valign='top' width='70%'><span class='header-text'> </span> </td> </tr> </table> I need to add css style to the table. I can access span element of td within table. … Web Development html-css javascript javascript-jquery | |
Hello, I have an image in one of my project folders: Lets say its in: ~/App_Themes/Default/images/SomeImage.png I want to load this image into a System.Drawing.Image, how do I do that? If I try using the FromFile method of the Image class: Image img = Image.FromFile("~/App_Themes/Default/images/SomeImage.png", true); I get a "FileNotFoundException". … | |
Hey I tried to access a cookie that has a [object HTMLImageElement] but I found out that cookies have a limit on size so Im trying to do this with pure Javascript I can store the value of what I want in a hidden div and now I want to … Web Development display html-css javascript | |
I have e.g. example: $some_text='some example text [title=some_title]some title[/title] next text'; and I want make function, which will search for the word. I make function: function text_check($text,$search_word) { $text = preg_replace('/'.$search_word.'/i','<span style="color: red;">'.$search_word.'</span>',$text); return $text; } $search='title'; echo text_check($some_text,$search); How to construct a function of instruction which will steer clear … Web Development php | |
well... I have this code... <?php function ARG_FF() {?> <!--AIR RESTRICTION GAUGE--> <td><select name="gauge"> <option value="8">8</option> <option value="11">11</option> <option value="15">15</option> <option value="22">22</option> <option value="25">25</option> </select></td> <!--FUEL FILTER--> <td><select name="filter"> <option value="20">20%</option> <option value="40">40%</option> <option value="60">60%</option> <option value="80">80%</option> </select></td> <?php }?> and I use it multiple times.... then here comes mysql: … Web Development php | |
# Apache does not start on XAMPP # I have installed XAMPP on XP PRO and I can not start apache when i press start, following message appears. **"Busy... apache started on port 80 WARNNG: terminating worker thread 0"** Please help. Web Development apache | |
this is my code (html) i dont know how can i open the page in div , i try with iframe but is failed :/ plz help me! <html> <head> <title>Template</title> <script type="text/javascript" src="script.js"></script> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> </head> <body> <div class="PageBackgroundGradient"></div> <div class="Main"> <div class="Sheet"> <div class="Sheet-tl"></div> … Web Development html-css | |
Hi, I created a log file **log_php.txt** *to store some things that happens in my PHP code used by Apache.* .I use it like this $strmsg = "An error appeared here."; $file = "c:\logs_php.txt"; error_log($strmsg, 3, $file); and sometimes but not always this error appears. You may noticed that i … Web Development apache file-stream php | |
![]() | Hi all, been using Chrome's Inspect Element to debug some js and I came across 2 anomalies: Directly below the html tag: <object type="{0C55C096-0F1D-4F28-AAA2-85EF591126E7}" cotype="cs" id="cosymantecbfw" style="width: 0px; height: 0px; display: block;"></object> Then in the head area: <script type="text/javascript" id="WCIDWAXScript" defer="defer">function WCIDCollect() { var VIS_SIG_TEXT = "T"; var VIS_SIG_IMAGE = … Web Development javascript web-browser ![]() |
I want to use while loop in html. I have the following php code. But it does not work. How can i solve this problem? Please any one help me. while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['ID'] . "</td>"; echo "<td>"; echo "<input name="txtf" type="text">"; echo "</td>"; … | |
Good Day ALL I have tried something and i am not sure what is the problem. i have inherited the an asp.net app. So i want to add the custom Error Handling. I know there are two methods i can do this. 1) Web Config 2)Global.asa So i started with … Web Development asp.net | |
Hi I'm trying to re-do my code so that SELECT, INSERTS etc use prepared statements..... But I'm having a problem My original code which worked was: if (isset($_POST['submit1'])) { // Grab the profile data from the POST $condo_nm = mysqli_real_escape_string($dbc, trim($_POST['condo_nm'])); // Make sure a review doesn't already exist for … Web Development php | |
![]() | Hi, this is my first post. I'm new here and also just start playing with CakePHP. And sorry for my English since its not my native language. I had problem to call data from two tables since I dont know how to do it in CakePHP. So basically I doing … ![]() |
Hi , I am trying to display images stored in database. Actually, i have stored image names with extenstion in the database, images are stored in my root directory images folder. Now i want to display all the images with other filelds in that table, in same page. I have … |
The End.