@ In Front Of Variable
What is the @ for when put in front of a variable? I am looking at
some older code and have never used it myself.
View Complete Forum Thread with Replies
Related Forum Messages:
Front End For Php
which software can help me to build system using php... i means user friendly. it can help me to design the system easily.
View Replies !
Front End
I need an assist with a coding problem. I don't have any. I am pretty close to code illiterate, so I need to find someone who can crunch up something for me if possible. Myself and another fellow have a website that we use for entertainment purposes, Virtual Airline, no membership fees and everything is free. On this site, we have a MySql database that users transmit data to through a client side app. However, once it is in there, the user can't view the details. What I would like to find some php coding that would. Have an entry that would be hardcoded for that user Would search by his/her id Return date of entries (last one first) Return Departure of each entry Return Destination of each entry Return Time taken of each entry and a link to the dat file sent for each entry. Is this possible to do with php? Can anyone assist?
View Replies !
Front For Mysql
Are there any good PHP scripts or pre written programs that deal with a complex database? Let me explain: I'm in truck dispatch, and we've moved all tables to mysql and access them on a network via ms access. We will open another office in another city, and will want a "web" database. Now here's what I'm after: Currently one form has various dropdown boxes to pick customer, shipper, consignee, and carrier information. YES, I even have the combos ask (ENTER SEARCH STRING), so all 17000 records do not show up in the dropdown combo boxes. You might enter da for example to get all occurrences of carries that start with da, i.e., Davis Transportation Inc. Currently only about 5 da's. Of course the information in combos are pulled from the customer database via a query. This all being done in ms access with the mysql tables linked. This is a very complex system, and all works perfect on a five computer network. By the way, choosing a shipper in a combobox fills in "ALL" necessary fields for pickup, i.e., Address, contact person, phone number for directions, etc. Can a web database even do something like this? When I migrate to a "Web" database, I am looking for a good PHP script / code / example that can handle this situation of dealing with multiple lookups on one form, and filling in all required information without having to type it in each time. Ok PHP folks can this be done and where are the examples to learn off of? To put it in a nutshell, I know how to populate a table, search, and edit records in php. What I need are example of: Say you are entering a new record, I need a "LOOKUP POPUP TABLE" with a search (enter search string) like above, and a way to select a row, then the "LOOKUP POPUP TABLE" closes and the original record I was entering has certain fields filled in. Liken this to the "Northwind" example that comes with MS Access. In an order example, they have some customer info auto filled in. If all I needed was table / forn / search / edit, I could use DADABIK. And one final question, Do I need a web database, or is it possible to still use MS Access as a front end from another city / state in a client server setup? I know how to network all this but not client / server from a long distance.
View Replies !
Building A Front End
I am building a front end in PHP for a client of mine to dynamically change the "current stock" page help this person be a little more organized, and be able to electronically track their merchandise. Now there is not a lot of merchandise moving through this company, maybe 300-400 items per year at most. So the MYSQL database will not be very large. The kicker is building the forms to query the database. I am coming up with a ton of different ways to filter results. By item category, creator, date created, size, sub category ... this list goes on and is getting longer. Do customers actually use filtering to that extent? I mean at any given time there could be anywhere from 300 - 600 unique items for sale on this site, so to filter them is a good thing, but when does it reach the point where it is too much?
View Replies !
Front End For My E-commerce
I need to create the front end for my e-commerce store. I would appreciate your thoughts on how this could be accomplished using PHP and HTML. At this time, I do not want to use a database. This store will sell license plates, license plate frames, key chains, etc. There are many combinations of vehicle manufacturer, vehicle make, license plate type, etc. What I want to do is have the customer scroll down the page where each line looks something like this: Toyota 4Runner Dual Emblem Plate Chrome Emblem- chrome plate D.4RU.CC $29.95 Add Item To Cart The field names in order are: Manufacturer/Make Plate Type Plate Description Stock Number Price If the user wanted that item, they would click on an "Add Item To Cart" URL at the end of the line which would then need to create an HTML Hidden Form Post to the shopping cart sotware (Mal's e-commerce shopping cart) passing specific data like Plate Description, Stock Number, Quantity Purchased, Price, etc. Using HTML tables would work out great for me but I need to find a way for the hidden form post to know the information to pass. Is PHP somehow able to get the data from the table? Could it access the data in the cells in a row in a table and place the values in variables?
View Replies !
Store Front
I know how to create a store front using php and mysql. What would be the best way to set it up so that members that sign up on my site can create their own store and sell items. I am thinking that I have to create seperate store id's then somehow attach the member's id to the store. I also thought of possibly creating a seperate subdirectory for each member and copy the source code for the store that they will need to install but not sure how to do it plus seems like a lot more work. I would think that utilizing mysql would work the best but need some direction in this area.
View Replies !
GNUPG Email Front End
I've been trying to figure out if there is a real GNUPG front end for popular Windows email programs and so far I haven't found any. Yes, they say it's built in Becky but what if I'm using Netscape Mail or Outlook Express. Ok, I downloaded free PGP and it installes a whole bunch of utilities that I don't really need apart from the plain plug-ins. Yes, it does have a plug-in for Outlook Express and Eudora but not for Netscape Mail. I had to modify the gnupg options so pgp could decrypt it too. Well, my major concern is Netscape Mail actually but in general, I would like a plug-in for plain, "clean" gpg. How do you solve the problem with the front end decryption?
View Replies !
Using AJAX With A PHP Front Controller
I have a framework that uses the front controller design pattern for a single point of entry to the application and the autoload function for includes. I am trying to incorporate AJAX into the framework, but the javascript calls to php ignore my front controller code when instantiating classes.
View Replies !
MySQL FRONT Is Evil
I was trying to work out a text field that was not able to input data into the database. After trying every possible thing and posting problem on the forum as well, today I thought of doing something different. At that time my database was created using MYSQL FRONT, So today I created one in phpMyAdmin and guess what? It worked just fine with the exactly same code. Mysql Front is evil!! took so much of my time. If anyone of you is having issues that does not make sense and are using Mysql Front, then it might be worth trying phpMyAdmin.
View Replies !
HTML, PHP, Front Page
I use Front Page 2000 to devolp my web content (don't hate me I just happen to like WYSIWYG better than physically writing out the code for HTML (a pain in the butt language :-) ) Anyways does anyone know if I can have it save files as .php instead of .html and use them in the web setup. Also another question how do I get a server to load index.php instead of index.htm?
View Replies !
FRONT PAGE + PHP (simple)?
I'm working on litle host site. It will give free hosts to users and accept donations (if any). I have problem with combining site who is build with front page (just html) with who is script. I can not insert code of php in my page without errors.
View Replies !
HTML In Front Of XML While Using SOAP. Please Help.
I am writing some dotNET code to "consume" a web service written in PHP. So far I have been getting some error messages and PHP seems to place HTML text in front of the XML message. dotNET doesn't expect the XML and then it chokes. This is what I get. The <br> tag from namespace is not expected. Line 1, position 2. I was able to capture the data going through the network and I've got the outgoing and incoming messages. I put those at the end of the post because they are too long. Looking at them you can perfectly see the HTML I mentioned. In this case the HTML part says I am missing arguments. That should be an error message coded in SOAP. But there is more. There is an actual SOAP error message, it looks like even when the call was bad it executed the code; it must have put something on the missing parameters. My biggest issue is that the HTML prevents me from doing proper error handling on my side of the app. Is this fixable?
View Replies !
Space In Front Of Array
I searched the net for 2days looking for this answer. For what seems like a fairly easy solution i have been unable to come up with one. I have a form that allows a user to enter an username or multiple user names separated by a comma. Out of that, i construct email addresses based on the users input. Code:
View Replies !
Replace 0 In Front Of Other Number
I am trying to take away the 0 before the dates. Is there a way to put a sign in for any number? not to have 9 diferents str_replaces $arrival_display = str_replace("01-", "1-", $arrival_display); $arrival_display = str_replace("02-", "2-", $arrival_display); and so on until 9
View Replies !
Update Front Page
Can be written in PHP or PERL. Basically, I'd like to have a server side include on my home page that would include whatever file would display the feed. Then, on the flip side, I'd like some backdoor part where I can go type in a new entry and have it add it to the feed. I know these programs have to exist, but I'm having no luck or I'm finding ones that are 4 years old and are no longer supported.
View Replies !
Store Front Question
I know how to create a Store Front using php and mysql. I know how to create a members area for my members to login into. How would I go about having my members create their own store front on the fly. Then add items to the store front and sell them.
View Replies !
Add A Little Peice Of Code In Front Of Every Link?
I have a site that I recently added in SEO urls. Everything works great, but none of my links go to the seo. So I need a script that would add in a $variable before every link, automaticly. Since I am not too skilled in php is would be really hard or me.If you are a PHP guru out there could you whip this up or me?
View Replies !
Add A Link From The Front Page Of Forum
Is there a way I can add a link from the front page of my forum out to my php photo gallery. I would like to make it so instead of clicking on the forum name on the first page which then takes you to a sub forum which then takes you to a thread with the link, To just click on the forum name which takes you to my photo gallery. Next best would be on the front page in the description of the new photo gallery be able to add a link. Which file would I edit to change or add these links? I know I can add a link in the overall_header.tpl but I do not see a way to change the forum name link that takes you from the first forum page to the next.
View Replies !
WordPress Front Page Display Problem......What Should I Do?
I use wordpress's latest version. I found one problem. I set up that from Reading section only 5 post should be visible on my site and also summary size. After click on update button and refresh my browser and see that, my all post are showing on my site's front page and every post also full form. I don't know what's the problem. I am not expert in php.So, I can' fix it.
View Replies !
PHP Script Putting Slashes In Front Of Apostrophes
I just put up a script where people can make their own quizzes, but when a user inputs a word with an apostrophe, it displays on the page with a slash in front of it. For example: Eric/'s Quiz Is there anyway to fix that? The script is called phpQuest 0.15 from a site that's no longer around, and I couldn't find any help about this issue on the Archived version of the website.
View Replies !
Add Recently Added Posts Etc To Front Page
I am running a forum and now want to create another front / homepage where i can have other stuff related to the site as well as displaying recently added posts from the forum. I have looked in the database for some sort of date or time that a certain post has been posted but doesnt make sense, it doesnt look like a sort of time and date that is humanly readable?
View Replies !
Putting Zero In Front Of Single Digits In Select
I have an html form where a person inputs a date via a drop down select. How do I make php put a zero in front of the numbers 1-9 ie. 01 02 03 when writing to the file? I have tried making the value="01" etc. but this doesn't work. Below is a snippet of my form and the code I am using to write to the file. Code:
View Replies !
My Admin - Reinventing The Wheel - Mysql Front-end
Right now, I am redeveloping the wheel by creating my own type of PHP MyAdmin tool for my clients so that they can manage some data. A good exercise, but probably done before! My question: is there something out there similar to what I describe below or how do you go about it (I am sure that all of you have faced this problem before)? How do you recommend I proceed? PHP MyAdmin would not be suitable for my clients, because it contains too much and it is too technical (e.g. i dont want them to change the structure of the database). Code:
View Replies !
Simplexml And Attributes With A Namespace In Front. How Do You Getthe Attribute?
Here's a bit of xml code that works. <?php $string = "<?xml version="1.0" standalone="yes"?> <world> <people xmlns:ss="http://crap"> <person id="5">John Doe</person> <person id="2">Susie Q. Public</person> </people> </world>"; $xml = simplexml_load_string($string); print "<pre>"; print_r($xml); print "</pre>"; foreach($xml->people->person as $p) foreach($p->attributes() as $a =$b) { print "$a =$b<br />"; } // prints out // id =5 // id =2 ?> Now what if I change the first person to this <person ss:id="5">John Doe</person> Anyone know how to get the id? This is a question that is pertinent to an excel .xml file as you'll get lines like this <Cell ss:Index="3">stuff</Cell> btw: there is a guide on ibm that tells you how to do this with php and dom. I'm just wondering if there's a way to do it with simplexml.
View Replies !
** ONLINE DATA INSERT --> MYSQL Front & PHP Script **
Im using MySql front and PHP 5 for some web shop. I didn't try it so far but i guess that the online data insertation ( accept costs and time ) should be the same process like for local connection. Problem: I have to create online ( on remote server ) some 6 tables and some 20 fields with MySql front. Ok. This shouldn't be great problem ( i hope :-)). The bigger problem is that i need to insert cca. 450 products ( into differnt tables (products, pro_groups ... ) ) and i dont know how to make this online. For now ( 20 products ) i made all this thru localhost but now i have to insert much more data and all this online... The data is sorted thru groups ( 8 major groups ) so every product is part of some group. How can i insert data, online and how to pass so much products from localhost to remote server ( maybe by reading some .txt file ? ).....
View Replies !
Warning: Fopen(static-front.html) [function.fopen]
We're getting a strange permissions error. We have a static html page that is dynamically generated only when its actually changed (as opposed to doing a lot of front end processing for every single visitor). The process works fine from the document root using include('page_name.php'), however from a subdirectory of the document root using include("../page_name.php") it does not work. The file is found OK, but when it tries to open the html file to write to it, it says "Warning: fopen(static-front.html) [function.fopen]: failed to open stream: Permission denied" The html file's owner is www-data (the user for apache) and it has write permissions for the file but when its included from a subdirectory, it somehow doesnt have permission?
View Replies !
Including A Variable In A Variable Before The First Variable Is Defined.
Is there any way to do this? $date = getdate(); $day = $date['mday']; $var = 'Hello have a ' . $var2 . 'day'.; if ($day == 7){ $var2 = 'bad' echo $var; } if ($day == 8){ $var2 = 'good' echo $var; } So that if it is the 7th, it would give "Hello have a bad day.", and if it is the 8th it would give "Hello have a good day."? All that I've tried doesn't work, because it doesn't seem I can define $var2 after it is stated in $var even though it is not echoed until after.
View Replies !
Loop Through Array And Create Variable Session Variable Names
As part of my user authentication class I've written a method that sets session variables. I pass an array to the function by reference which contains elements populated with information from the users table in the DB (name, street, country etc) At the moment the function looks like this: /* Set the session variables for easy access to user data */ function _setSessionData(&$userData) { $_SESSION['loggedOn'] = true; // Logged on $_SESSION['userID'] = $userData['UserID']; $_SESSION['username'] = $userData['UserName']; $_SESSION['password'] = $userData['Password']; $_SESSION['firstName'] = $userData['FirstName']; $_SESSION['surname'] = $userData['Surname']; $_SESSION['email'] = $userData['Email']; $_SESSION['street'] = $userData['Street']; $_SESSION['city'] = $userData['City']; return true; } What I'm wondering is if it is possible to loop through the $userData array, and dynamically name and populate the session variables rather than listing them all and assigning like I have?
View Replies !
What? Assigning A Session Variable Also Assigns The Local Variable?
Alright, In the following code, I expect the printed result to be: DEBUG: frank's last name is burns. Instead, what I get is: DEBUG: frank's last name is burns. Here is the code: $frank = "burns"; $_SESSION['frank'] = "black"; echo "DEBUG: frank's last name is is $frank"; What is coming into play here? I thought of register_globals but I thought that only dealt with GET, POST, REQUEST, etc.
View Replies !
Passing Multiple Variable Errors...last Variable Vanishes.
I have been trying to figure this one out for a few days now and it is starting to drive me mad. I'm sure this is something simple that I have done wrong but I can't for the life of me figure out what is wrong here. Some background. I decided I needed to learn PHP, I really enjoy it but keep getting stuck on things like this due to my lack of knowledge. So I set myself a challenge to write a PHP CMS system using PHP, mySQL, XHTML and CSS. All was going fine (all be it rather slowly) until I tried to write the page to edit articles in the CMS. I have the 'ID', 'title', 'venue' and 'article' stored in the database fine. I can pull entries out and display them fine. I now want to edit them using a browser. So I thought I would use the same form I used to add mySQL entries and change ti so that it loads in the article into the form fields depending on the id. (This is chosen through a link saying 'edit). Code:
View Replies !
How To Make The Mail Script Print The Name Of The Variable Before The Variable.
I have my mail script working. It sends correctly to the box specified, all data is correctly passed both in the email and in the sql db. My question is about how to make the mail script print the name of the variable before the variable. Joe Blow joe@blow.com I want it to look like: Name: Joe Blow Email: joe@blow.com I am not sure how to do this, and the little things I have tried just break my script. Can anyone point me in the right direction.........
View Replies !
$_GET Variable - Call The Variable Through The Include File
I'm using an include with a variable url. I'm trying to call the variable through the include file but it's giving me this error: Warning: include(message.php?word=hello) [function.include]: failed to open stream: Invalid argument in C:AppServwwwdirectory_here.php on line 281 PHP Code: // index.php <?php include ('message.php?word=hello'); ?> //message.php <?php echo $_GET['word']; ?>
View Replies !
Extract Variable From Database, Then Output That Variable.
I have this strange problem (and probably also a strange question). Let's say you set a variable $blah. The variable has 'test' as content. When I write the variable ($blah) to a database (and not the content of the variable 'test') and I want to output the variable again, I get $blah as output. And not 'test'. PHP Code:
View Replies !
Changing Variable Folder Names To Php Variable
Let me just show you quickly what I mean: The site url: http://www.nothing.com/vr/ will then redirect to http://www.nothing.com/index.php?sec=vr I'm just wondering if this is possible. The folder after the domain isn't an actual folder, but rather a pseudo one, which is then used in a varible. Another example: http://www.nothing.com/test/ -> http://www.nothing.com/index.php?sec=45&desc=test The "folder" has to be variable and so cannot be an actual folder.
View Replies !
Session Variable Becoming Linked To Post Variable
Basically i have a user id stored in session variable eg user_id =1. I have a simple forum that i created myself that inserts this session variable into the db with the persons entry. eg insert into forum value (session[user_id],'$_post['content']); This is all working fine until i go to edit this post from say the moderator account. I set the user_id for the "replace into db" initially to my session value unless i have selected to edit someone elses post, then i set it to the value submited back from the <form action=self> i get as far as selecting the contents from db only for the session variable holding my id to change to the value of the user_id selected from the db. Code:
View Replies !
Variable Not Working - Cannot Get The Cookie Variable Data.
my php script is working fine. In the afternoon, the scripts cannot function. It something to do with the variables. I using the print function <?php print $name ?> The variable is not able to capture from the url. for example www.xyzabac.com/?name=newbie. With the print function it should print out the variable data newbie, but it appear to be blank. This problem also appear in my form script. the data I got is blank. I also cannot get the cookie variable data.
View Replies !
Array Question - First Letter Of The Variable As A Variable?
I have been going through arrays and have a multidemensional array. When I want to print everything to the screen this is the code I used. To print the array values I used $a from $arrayvals, does php always take the first letter of the variable and use it as a variable? For the key I used $k and for the values I used $v, are these set in stone variables, or can you use any variable name you want for them? $arrayvals = array( array( "name" => "Taylor", "age" => "26", "occupation" => "Supernurse", ), array( "name" => "Rachel", "age" => "25", "occupation" => "Supernurse", ) ); echo $arrayvals[$a>0]['name']; foreach ($arrayvals as $a) { while (list($k, $v) = each ($a)) { echo "$k ... $v <br/>"; } }
View Replies !
How To Refer From One Variable To Hidden Variable?
I have started with my php source code shown below, and how can I refer from one var to hidden var? ---------------------------------------------------------------------------- if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO users (UserID, UserName, Password) VALUES (%s, %s, %s)", GetSQLValueString($_POST['UserID'], "int"), GetSQLValueString($_POST['UserName'], "text"), GetSQLValueString($_POST['Password'], "text")); mysql_select_db($database_SHHConnection, $SHHConnection); $Result1 = mysql_query($insertSQL, $SHHConnection) or die(mysql_error()); } if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO holidaymaker (HMID, Name, Status) VALUES (%s, %s, %s)", GetSQLValueString($_POST['HMID'], "int"), GetSQLValueString($_POST['Name'], "text"), GetSQLValueString($_POST['Status'], "text")); mysql_select_db($database_SHHConnection, $SHHConnection); $Result1 = mysql_query($insertSQL, $SHHConnection) or die(mysql_error()); } <input type="hidden" name="UserID" value=""> <input type="hidden" name="HMID" value= ""> ---------------------------------------------------------------------------- The "UserID" is generated by MySql with auto_increment.[color=blue] >UserID int(4) auto_increment primary key,[/color] Assume that I want to add new user and the value for UserID is 5 (after auto increment). Then, I want HMID refer to UserID, the value of HMID is also 5, thats mean HMID = UserID, how can I do that? What is the command?
View Replies !
|