I am new to PHP and I am having some problems and I am hoping someone can point me in the right direction. Here is what I need to do: Create a Web Form for uploading pictures for a high school reunion. The form should have text input fields for the person's name and a description of the image, and a file input field for the image. To accompany each file, create a text file that contains the name and description of the image. Create a separate Web Page that displays the pictures with a caption showing the name and …

Member Avatar
Member Avatar
+0 forum 1

Hi All. I was searching it for many weeks I am working on Magento Store, i have 2 domain on same website/same directory i want to show different logo on each domain. In header file, logo is shown by this code <?php if ($this->getIsHomePage()):?> <h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a></h1> <?php else:?> <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a> <?php endif?> i found 1 year old topic here …

Member Avatar
Member Avatar
+0 forum 8

Hi I was searching it for many weeks I am working on Magento Store, i have 2 domains i want to show different logo on each domain. In header file, logo is shown by this code <?php if ($this->getIsHomePage()):?> <h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a></h1> <?php else:?> <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a> <?php endif?> i found 1 year old topic here http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/429391/change-logo-image-based-on-domain# I dont know how …

Member Avatar
Member Avatar
+0 forum 1

I am trying to use a simple println(...) statement to display the value of a variable from a separate class. The two separate classes are linked. AbacusModel class has an array 'peg_array' which stores the number of counters present in each of the elements of the array. AbacusModel has a variable 'thisPeg' which is used to refer to any of the pegs in the array e.g. peg_array[thisPeg] In the seperate class (AbacusPanel) i want to call the number of counters present in any particular element that the user clicks in. but it displays "error: cannot find symbol" which is due …

Member Avatar
Member Avatar
+0 forum 4

Hi, I have a question.I have a folder called Web Site.Inside it I have 2 folders n.1 and n.2.Inside folder1 I have a page called index.htm.Inside folder2 I have a page called home.htm.How do I link index.htm with home.htm and viceversa? I appreciate your help thank you.

Member Avatar
Member Avatar
+0 forum 6

hi what i want is to separate a file in many variables and store it in an arrayList to use it for creating objects and printing. The file is as follows: L1234; Land; 50000 euros; 120 sq.m.; Artemida Attikis; near the sea; for sale FF4234; Flat; 120000 euros; 72 sq.m.; floor 1; 2 bedrooms; Abelokipoi Athens; for sale HC178; House; 250000 euros; 120 sq.m.; 4 bedrooms; Menidi; for sale FL2; Flat; 105000 euros; 70 sq.m.; floor 2; 2 bedrooms; Patisia Athens; sold H12311; House; 310000 euros; 180 sq.m.; 5 bedrooms; Anthoupoli; for sale H12621; House; 280000 euros; 200 sq.m.; 5 …

Member Avatar
Member Avatar
+0 forum 7

hi fellas, need some brilliant idea, i want to get the firstname,lastname,middlename of the employee below using javascript. ________________________ Atty.Jan Rex Camvarijan Rex Uy Cambarijan Rex Cambarijan Rex Ma.Rex B. Cambarijan ||| Rex del Rosario __________________________ what i really want is how could i separate lastname firstname middlename in those diffirent structuce of name thanks, =)

Member Avatar
Member Avatar
+0 forum 3

Hello This is a simple php login script with sessions. It connects to mySQL for usernames and passwords. I’m using a variation of the code from [url]http://www.phpportalen.net/wiki/index.php?page=Enkel+Inloggning+med+Mysql+och+sessioner+-+Komplett+kod[/url] (index.php is the relevant part) Here is my code (my script is called login.php): [code=php] <?php session_start(); // Always at the top include "conn.php"; // Databaseconnection include "functions.php"; // Functions // Login if (isset($_POST['submit'])){ $_POST = db_escape($_POST); $passwd = safepass($_POST['passwd']); $sql = "SELECT id FROM members WHERE user='{$_POST['user']}' AND pass='$passwd'"; $result = mysql_query($sql); // Didn't find username and password if (mysql_num_rows($result) == 0){ header("Location: login.php?badlogin="); exit; } // set session with unique index …

Member Avatar
Member Avatar
+0 forum 11

Hi I have a folder containing about 60 files and I need to copy each 3 files to a separate folder Thank you

Member Avatar
Member Avatar
+0 forum 10

[CODE]string[] lines = System.IO.File.ReadAllLines(@"C:\Users\Admin\Desktop\ID.csv"); string sPattern = idBox.Text; foreach (string s in lines) { if (System.Text.RegularExpressions.Regex.IsMatch(s, sPattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase)) { nameLabel.Text = "test success"; } else { nameLabel.Text = "test failure"; } }[/CODE] This is basically what I have so far. I am using Visual C#, which is probably obvious, but just in case you didn't know. ID.csv includes: 123456a, 123457b, 123458c I want to separate the IDs into separate lines, and be able to search within the string. If someone enters 456, I would like nameLabel.Text to output the entire line from within the string[]. I know i will need …

Member Avatar
Member Avatar
+0 forum 4

I'm creating a C# program that has a sizable textbox that prints out data every 5 seconds. Whatever data that is displayed is (supposed to be) cleared and replaced with new data every 5 seconds. I've created a thread so that the window opens (main thread) and the data is processed, displayed, and paused as necessary (my thread), otherwise the window waits 5 seconds to open. I've had problems where I couldn't output text to the textbox because an error would say that the textbox was created on a different thread. However, I found a solution to that problem. But …

Member Avatar
Member Avatar
+0 forum 1

Hi, I am trying to write a program that will separate the digits of a non-negative integer and will print them each two spaces a apart but I have to avoid using arrays. For example if input is: 12345 then output should be: 1 2 3 4 5 I have written the following program for this purpose: [CODE]int main() { int number; cout << "Enter a number to separate it's digits: "; cin >> number; while (number != 0) { cout << number%10 << " "; number /= 10; } cout << endl; system("pause"); return 0; } [/CODE] It works …

Member Avatar
Member Avatar
+0 forum 8

Hi guys i have a problem that i have a text file which contains very long text like : welcome to all, how are you doing, etc.. so i need to cut the text till each comma and put it in a separate file like i want to pu [welcome to all,] in a separate file and put [ how are you doing,] in a separate file and so on so please if any one can help me in this i would appreciate it a lot i know a little of c++,c#,vb.net so any code in any of this lang. …

Member Avatar
Member Avatar
+0 forum 6

I've managed to use classes in separate files before, but I can't seem to get it to work here. I was just programming some very basic classes for a simple game I wanted to make. Here is the main.cpp file: [code]#include <iostream> #include "energySystem.h" #include "healthSystem.h" #include "intelligenceSystem.h" using namespace std; int main(){ energySystem energySystem; healthSystem healthSystem; intelligenceSystem intelligenceSystem; energySystem.setEnergyLevel(750); healthSystem.setHealthLevel(100); intelligenceSystem.setIntelligenceLevel(0); cout << energySystem.getEnergyLevel() << endl; cout << healthSystem.getHealthLevel() << endl; cout << intelligenceSystem.getIntelligenceLevel() << endl; energySystem.decreaseEnergy(100); cout << energySystem.getEnergyLevel() << endl; return 0; }[/code] Here is one of the class headers. All 3 of the classes are identical …

Member Avatar
Member Avatar
+0 forum 32

Hello All Experts Please tell. Can I use Microsoft Excel Sheet in c sharp as addition of Students Monthly fee And save it in SQL Server ?

Member Avatar
Member Avatar
+0 forum 3

This question seems to always have 2 sides to it. If I make a [COLOR="Red"]register.php[/COLOR] with the registration form, should I have it submit to [COLOR="green"]processreg.php[/COLOR] or should it just process all on the same page? Same thing for login. I have read that it may e more secure to have them on separate pages and you will not run into form resend problems, but what's your take on this matter? I am creating a site with potentially hundreds of thousands (100K+) users on it, should I just make it go to [COLOR="Green"]processreg.php[/COLOR], then if it's invalid, redirect back to …

Member Avatar
Member Avatar
+0 forum 2

Hi, There are a way to separate the string by commas? Please Help. Best Regards

Member Avatar
Member Avatar
+0 forum 5

I have Verizon Fios, so I am getting my data connection from coaxial. I'm running a cable from one of the ports (not the uplink Verizon generic router/modem) to my E2000, which obviously has this end plugged into the uplink. I haven't had any connection issues wired or wireless, my desktop and PS3 are getting almost three times the bandwidth, cell phone and laptop both have great Wireless N signal finally. The problem I'm having is as soon as I connected through my E2000 instead of my simple Dynex switch, I can't print from any computer on my E2000 now. …

Member Avatar
Member Avatar
+0 forum 4

My Daughter has many GB of music on my Sony Portable Hard Disc where itunes plays and catalogues it successfully. Can I now put 20 GB of MY MUSIC on that same portable HD and get MY MUSIC catalogued by itunes SEPARATE to hers? MY MUSIC is .wma files, played by Windows MediaPlayer11 Windows XP Many thanks

Member Avatar
Member Avatar
+0 forum 17

The End.