Hi everyone.... again,
I am really getting into php still. Learning more every day. I love it.
But I have run into a problem I cannot solve.
From what I understand, you can only "echo $variable", if the variable is created above the "echo".
short example
$something = "1999 kawasaki";
Echo $something;
----------
How would I echo or print a variable if it is created below the area where I want to place the "echo $variable"
Short Example
Echo $something;
**all of the page content here**
$something = "1999 kawasaki";
I have searched for hours and cannot find a solution.
Thanks in advance for any help
Accept only alpha characters
I've got this bit of code ready for accepting a phrase:Code: if (!eregi ("", $_POST['phrase'])){but I need it to accept ONLY alphabet characters. No numbers, no spaces, no under scores, no
OOP help
okay so i have a class im making it has everything setup i just need to randomize the 2 variables and return which variable that was randomized and output it.Code: <?phpclass hit_chance {
Navigation include for all site directories
Hi,I need a navigation include that can deal with directories at different levels on a site. All I can seem to find are the basic includes for files all in the same directory. This doesn't work for me
column name cancatenation within PL/SQL
I have a PLSQL store procedure, and the following statement is part of a subquery
SCO Unix
I know this might not be the place to ask, but, can anyone tell me if SCO Unix comes with PHP built in???
Question handling xml data
Hello, I have sucessfull followed this tutorialhttp://www.phpfreaks.com/tutorial/handling-xml-dataand used xpath to find the books I need, here is my codeCode: [Select]<?php// load
this code is strange !
Hi i got this code from the web.. It checks for live and dead socksIt is working perfectly on my localhost. but does not work in any webserver ! any ideas ?<?php$filename =
Php mysql - select?
Hi i have this code:Code: $iteminfo = mysql_query("SELECT desc FROM wc_items WHERE itemid = '$_GET[id]'") or die(mysql_error()); And it gives meYou have an error in your SQL syntax; check
Supress some serveroutput but not all
Hi,
Search with relational database
Hey,I have quite a complicated (for me anyway ) relational database for an apartments system I am developing.Keith (kickstart) was very helpful assisting me in creating the relationships and here is