hi, using a drop-down list that's populated from database fields, i need to select an option and then delete that from the database. i'm trying to do this by sending the form to a process php page where i pull in the select option from the post array and then delete it from the database and return to the index page.
having issues with g...
Hi everyone! I am working on a project which involves moving products around a virtual living room, I have the following function
<a href="javascript:void(0)" onclick="sendxandy( <? echo $_SESSION['numberOfProducts']; ?> )">Save Positions of Products</a>
and then the function is as follows:
`
function sendxandy(productAmount)
{
...
I have a few pages out (not too many though) and I was just thinking that I might want to change all of the pages to php instead of html. I am planning on using php in the future, I am just not quite ready yet to make it my full-time language. I know anythign you can do with html pages, you can do with php pages, but I just wanted to kno...
I just switched from a shared server to a virtual dedicated. The whole site works, but my mail forms have quit sending MIME emails the way they used to.
What used to appear before the server switch:
hallo fwend
What appears now in the emails (appears as though my client doesn't support MIME):
Content-Type: multipart/alternativ...
Is there a quick way to pull twitter profile image in PHP or Javascript? I need to get the url of the FULL image (not avatar size). Thanks. Any code sample is good.
...
hi
i got an error message when i try to do file_get_contents() function
Warning: file_get_contents()
[function.file-get-contents]: URL
file-access is disabled in the server
configuration in
/data/20/1/112/111/1927437/user/2100551/htdocs/cti-dev/admin/my
path
My site is https ..
how this happend? Does any one help me ...
Hi ..., Im trying to implement pagination using multiple searching criteria.
Supposed I Have student table. I also use pagination when the list of student displayed.
The pagination link is. site_url . '/student/page/'; so I use $config['uri_segment'] = 1;
so the pagination link will be
<a href="http://mysite/index.php/student/page/0">...
I have a table listing several elements, and their expiration date.
I need a function that says, "If the expiration date is later than today (for each element), then don't show".
It seems pretty simple, but I'm stuck!
Edit
<?php foreach($codes->result_array() as $row):?>
<tr>
<td><?php print $row['description']?></td>
<td><...
I am wanting to know if there is any extra overhead of using an Object in PHP instead of using a static method based on my examples below?
Sesseion object from Session class
$session = new Session;
$session->set(user_id, $uswer_id); //set session var
$session->get(user_id); // get session var
VS
Static methods from ...
Hi
I have have problem while using the cURL in my php script.
Wheni used it its given me below error.
Fatal error: Call to undefined function curl_init()
This problem is for both local and live url .
But when i move my code to live its working fine.
I have contact n/w admin but its say that there is no such restriction in firewall...
I do apologize for asking this stupid question but I am wondering if you can help me..
i want insert among file $cat1 or $cat2 to in page.php...
the code i was create e.g.
<? //config.php
$cat_all = ($cat2 or $cat1);
$cat1 = "cat.php" ;
$cat2 = "../back-up/cat.php"; //default anyway
if(file_exists($cat1)){
require_once $cat1;
}else...
can somebody guide me for adding a field like login, password using plugin on squirrelmail,and what changes need to made in config file .
...
using php how do I go to a website and receive a list of all the xml files on a site. (It would also be nice to get the last date changed also)
There is a html files linking to html pages with a xml counterpart, does that help?
...
Hello everybody,
I am trying to build openid login system for my website. To do this I used JanRain's php openid library v 2.1.3.
I am also using openid selector to select the openid provider from the list.
I first created the attributes array that I need to fetch from the provider as follows:
$attribute[] = Auth_OpenID_AX_AttrInfo:...
Simple question...
I have seen people tell me to use "\r\n" in various places and others tell me to use "\n" in the same place. I'm sure one is right and one is wrong. Example - when designing mail() headers:
Tutorial #1:
//define the headers we want passed. Note that they are separated with \r\n
$headers = "From: [email protected]...
How do I go about integrating Simpletest with Kohana 3? I have checked out this answer but I like to use the autorun.php functionality from SimpleTest.
...
Does using a PHP framework (CodeIgniter, Zend) require special server side setup? And if yes, is there a PHP framework which doesn't require that?
The intention would be to use a hosting server which supports plain PHP only (no framework installed - if that makes sense), and use the mentioned framework on the development machine only, w...
Im having problems with session variable after my database have changed the session variable, it doesnt update the new session variable when i press the back button but on database, it already updated but not on the webpage, i have to relogin to see the new variable.
and how do i use session_regenerate_id?
...
How can I split from an image that is 4500x80 pixels into a smaller rectangular images?
I'm using php with gd installed on ubuntu 9.04 from the input source file containing alphabetic characters of more than 800. It is supposed to draw a rectangular barcode image of various colors assigned to input characters of A, G, C, T. A=Green, G=...
hi
i want to list the records in following format in smarty template page
1 3 5 ...
2 4 6 ...
there should be the
ul
li 1
2
in this format
...