Connection From One Page To Another

Connection From One Page To Another

I have a class that is my interface to mysql. I create an instance og class an connect to db. Then i change to another page and want to use the same instace of class. How can i send an object (the instance) to another page ?
Problem With Mysql_fetch_array ( $vabiable[$variable] )

Problem With Mysql_fetch_array ( $vabiable[$variable] )

I want to create a Multilingualmenu and I have a problem with a variable I know that I can't use a $vabiable in a $variable -> $row[content_$lang] But how could I do this if(empty($lang) { 牋$lang="eng"; } $get_menu=mysql_query("select *
Database - List Of Native_type's For PDO GetColumnMeta()

Database - List Of Native_type's For PDO GetColumnMeta()

I am using the PDO Database Abstraction library to make sure my code is portable. However, I now find that I need column information so I turned to the PDOStatement->getColumnMeta() method hoping it would be somewhat standardized - but from what I ha
Zend_form: What's The Added "enctype" For?

Zend_form: What's The Added "enctype" For?

Zend adds an enctype to all forms. What's that good for? and how can I remove it? <form action="" method="post" enctype="application/x-www-form-urlencoded" id="myform"> </form>
Question About Forms And Includes

Question About Forms And Includes

I am trying to basically make a quiz that has one question per page. I know how to do this, but I don't want the page to look like it's reloading everytime. I have ads on my site and I know most people would want them to reload every time I don't for
Apache  $http_refferer Question

Apache $http_refferer Question

when a visitor comes from another server i whish intercept the url where he come from; i've made some test with a simple echo $_server[http_referrer] and this output anything if the last link is on same server of my page but don't from anyother serve
Error Mysql_numrows():

Error Mysql_numrows():

I had this same problem when querying the database with mysql_Numrows():, returns an error of [b] supplied argument is not valid[b]. For those of you that need a clear explaination of the syntax useage.
Get First Image In String (Function)

Get First Image In String (Function)

There is probably a better way of doing this but the problem I'm having is it puts the images at the top of the page (before EVERYTHING else). The PHP is in a loop, so it looks at 5 different strings then echos the image. here's my code ($r['content'
PHP + Javascript UK Map

PHP + Javascript UK Map

Not sure where to post this, but will try here first. I am looking for a UK map that allows the user to drill down to county, then town level. A good example would be something like
Array Search Problem

Array Search Problem

..... if (array_search($htmldescription,<strong>) == true) ..... i basically want the code search in $htmldescription for <strong> tag and if found replace it with <b>. but when i put the code i get the error: array_search() [function.ar
Revamp On A Custom CMS?

Revamp On A Custom CMS?

Ok to start things off, I am doing a revamp on a custom PHP CMS and the client wants the search function to do the following:Lets say a user searches for "WIX 24061" the current search function will mark that as not found and forward to the notf
Javascript In Php Proxified Page

Javascript In Php Proxified Page

Im trying to enter an ad code onto a proxified page, have been working on it for about 3 hours and cant seem to get it, any help is appreciated. Here is the code : <script language='javascript' type="text/javascript"> <!-- if (!document
Unexpected T_CASE Error

Unexpected T_CASE Error

I have a proxy script that I am trying to get working on my server but for some reason everytime I try to go to the site it gives me an error that looks like this: Code: Parse error: syntax error, unexpected T_CASE in /home/p33n0r/public_html/index.p
Import_request_variables()

Import_request_variables()

I'm in the procoess of designing a news management system that works without register_globals. However I'm running into a roadblock. In one of my files.. news_add.php I use a form to process the data and send to a mysql database. The file uses an if
Create An Array And Look If A Value Is In Array?

Create An Array And Look If A Value Is In Array?

How do I create an array in smarty from a given string like 22||33||50 and look if the given number is like the numbers above in smarty ? I have a string say {$test->strings} // contains 33||12||80 I want to look if one of the numbers in {$test->str
Array - Create An Array From Another Array?

Array - Create An Array From Another Array?

I have POST array that looks like this, Array ( [code]..........
Form Mail Php Script

Form Mail Php Script

In the html, user would input data, and include an attachment, the fields are exactly as the names listed below for the attachment, I have named it name="file1" Code:
Cookies From Page To Page

Cookies From Page To Page

I'm using PHP to create a cookie on my index page, that has an HTML inside the and wanting to carry the variable over to the frames page so I can say Hello to the user. The PHP script is: Code:
Frames Passing Problem

Frames Passing Problem

I have all of my pages in frames, (so I can center the main page and still absolutely position stuff)...anyway..... I am passing info from forms..and I am having some problems. i can do it without the frames issue...but when I add frames into the pic
Get The Dropdown Value?

Get The Dropdown Value?

i am using dropdown for display the timezone.The timezone values are come from database.Whenever the user change the value I need to alert the new timezone.For example if user change the time GMT+5.30 to GMT+6.30 then I want to alert GMT+6.30.Here th
« Prev 1 ... 5 6 7 8 9 10 Next »