[PHP] Variables in variables?

2005-11-18 Thread Marquez Design
ote: > $var = "time"; > $var2 = "clock"; > echo "$var$var2"; > //outputs timeclock > > $two_vars = "$var$var2"; > echo "$two_vars"; > //outputs timeclock > ?> > > Why put two variables in one field? But if you want

[PHP] Variables in Variables?

2005-11-18 Thread Marquez Design
Greetings. Does anyone know how to do this? I have, $var $var2 In a field called two_vars in a MySQL db. I am calling the variables inside PHP document. In that document I am saying: $var = "time" $var2 = "clock" echo "$two_vars"; But the what prints out is $var $var2 not "time" an

[PHP] Include file

2005-03-29 Thread Marquez Design
Does anyone know how to include a variable page? The variable is a page name. Such as "inluded_file.html" Include ('../includes/$include'); Does not seem to work. Thanks! -- Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Ending PHP

2005-03-25 Thread Marquez Design
I have an if statement, and if it is true, I want PHP not to continue. How do I do this? The following statement is true If ($a = $b){ This } Do not continue to the next piece of code, if false, continue to the next piece of code. Thanks for any help. -- Steve Marquez [EMAIL PROTECTED] --

[PHP] OR statement

2005-03-24 Thread Marquez Design
Hello, I would like to first thank everyone for their help with the last few questions I have had. I really appreciate it. Here is my question: if ($audio == "Cool"){ Do this }else{ Do that } This work fine, however, I would like to add to the criteria above. I would like to say: if ($au

[PHP] Pagination

2005-03-23 Thread Marquez Design
Hello all, I am wanting to paginate records from a MySQL Database. I want there to be 5 records on a page, on multiple pages. Can someone point me in the right direction or show me a way to do this? I can get five records on a page with a LIMIT statement, however, I can not get it to show the fi

[PHP] Forms

2005-03-21 Thread Marquez Design
for the option that was selected and is in the database to be displayed as the selectd option. Does anyone know how I can do this, or can you point me in the right direction? Thank you, -- Steve Marquez Marquez Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Table duplication

2005-03-11 Thread Marquez Design
I am trying to display information in an html table from a MySQL data base. I can do this rather easily, however, I am trying to multiply that table with as many entries there are in the database. Can someone point me in the right direction or give me an example of how I can accomplish this? I ca

[PHP] Image Submits to Forms

2005-03-04 Thread Marquez Design
. Does anyone know how I could do this? I hope this makes sense. -- Steve Marquez Marquez Design -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Link to content of Directory

2005-02-02 Thread Marquez Design: Steve Marquez
Greetings all, I am currious if someone could point me to a script to list the content of a directory, then link to each file in that directory. Example: The directory contains 80 .GIF files. I want to create a page that will have links to each file. Is this possible? Thank you very much, --