39,323 Topics
| |
hi , I am working on testing some scripts .. But there are lots of errors i am facing .. the common error is Parse / syntax Parse error: syntax error, unexpected '(' .. This is the the line which is currently giving errors while executing . [CODE]md5("som3_admin",$username)()setcookie$password$_POST$username$_POST;[/CODE] plz help … | |
php mysql simple form help whats wrong with my code ?? every time i refreh my page a new field is created in database 'example' i want my code to create new field in database only if something is insert in text field here is my code [CODE]<?php $name=$_POST['name']; mysql_connect("localhost", … | |
Hi friends .. I have a mailing_list file .. I wanted to check whether the visitor entered Email already exists in file? Is there any standard function for it ? | |
For the following code I have a problem. When i fill in the form and submit it inserts a new database value. But when I refresh the page it does it again automatically with the same data, and keeps doing it whenever i refresh. How do i stop this? [CODE] … | |
| Hello everyone, I am new to PHP to so please bear with me. I need suggestion to achieve a task. I have to make a form where in initially there will be a combox box. Depending onthe selection ie value1, value2, value3 etc.......a sub form should open below the combo … |
hello i have the following code to change the image name of upload picture [CODE] $TARGET_PATH="pics/"; $TARGET_PATH =$TARGET_PATH . basename( $_FILES['photo']).'.jpg'; while (file_exists($TARGET_PATH)) { $TARGET_PATH =$TARGET_PATH . basename( $_FILES['photo']) . uniqid() . '.jpg'; }[/CODE] This change the name of image or file but dont sho the extention it just show … | |
I have a login script that people use to register and login. I also have a contacts page where people can add contacts. Now how do i make it so the people that are logged in can add their own contacts that nobody else can see, only them when they … | |
Hi all :), at the moment im programming a drop down list of a petstore and going through chapters from the php my dummies book. I show you my example. [CODE]<?php // Program name: buildselect.php // Description: Program builds a selection list from databse require_once("config.php"); $query = "SELECT DISTINCT * … | |
Hi all, New here and hoping you can help me. Here's what I'm trying to do: I have a database table full of customers and their master records, with fields for their ID number, email, name, address, etc. I have another table for store credit, which contains only the customer … | |
Hi I'm trying to modify a Shipping module for an online shop but I'm not getting it to work...I want to put two options on that, if customer chooses first option he gets one price for the shipment if he chooses second option then he gets a different price. The … | |
Help!!! Ok I have been on this problem all day. Searching and Searching and just when I thought I had it...the script didn't work as it was supposed to. My URL looks like this: [CODE]http://mysite.com/joinform.php?Email=mymail@gmail.com&Username=newuser&Password=12345678 [/CODE] I need to parse the email, username and password from the url into the … | |
Of so if I use this in a template on the index page I get what I want. If this code lives on a page.php page it shows me the recent pages created. [CODE] <?php $i = 1; while (have_posts() && $i < 6) : the_post(); ?> <li><a href="<?php the_permalink(); … | |
So I just got a new centOS box with PHP 5.1.something but I wanted it on PHP 5.2, initialy running [ICODE]yum update php[/ICODE] returned [CODE]php-pecl-memcache-2.2.6-1.el5.x86_64 from installed has depsolving problems --> Missing Dependency: php-zend-abi = 20050922 is needed by package php-pecl-memcache-2.2.6-1.el5.x86_64 (installed) Error: Missing Dependency: php-zend-abi = 20050922 is needed … | |
I need to create an apache web server that can run Zend Optimizer 2.1.0 or higher. I have looked into a number of wamp products such as wampserver and xampp but as far as I can see neither of these are suitable for live sites. I did look at uniform … | |
Hi all expert here, please refer to attached image, I had a table which mainly stored add-to-cart items, user might able to check what's item was in their cart and do remove or update item's quantity as like common cart we use for online shopping. I was able to loop … | |
I have a php file, for example abc.php file whose output will be an image(profile pic) and below it a set of links(navigation links). When i click any of those links, it displays the output of destination file(output of file mentioned in "href" attribute of anchor tag). But i want … | |
Guys i`m trying to archive something like facebook,twitter wall Display. I have a friend table,inside it has id,friendid and userid. also got feeds table which contains id,action,sender_id,statusid,status,date. What i have succeeded to do is if You are logged in you can see all the updates from your friends...As the code … | |
Hello, I've been racking my brain all week with this code. I'm displaying a help desk table, and I want the column headers to be clickable, which will ultimately sort the that column both ascending and descending. I'm sure I'm just missing a step or so, but cannot seem to … | |
I recently wrote a code for a feedback form in Php, and I have the following problem: after submiting the form, what can i do to go back to the form page? | |
i need help [CODE][24-Dec-2010 02:08:42] PHP Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/usercp.php on line 412 [24-Dec-2010 02:08:42] PHP Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/usercp.php on line 437 [24-Dec-2010 02:08:42] PHP Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/phpgraphlib.php on line 886 [24-Dec-2010 02:08:42] PHP Warning: Invalid … | |
I wasw ondering if someone could help me out with attaching multiple files to an email using uploadify and contact form. So far I have the file locations and names put into an array [CODE]<input type="hidden" name="file_name[]" value="/uploads/'+response+'" />[/CODE] How would I attach these files to an email through php. … | |
load array from file into variables for login ? I have an external file with some userpreference called userprefs.txt which contains values on several lines (array values). In another page I have this code below(part of it), trying to get the `$realUser` and `$realPass` values to be parsed from `$userPrefs[0]` … | |
So here is my latest question team... The project I am working now the I needs to be modified.. Its a form with checkboxes on who you would like to send this message to... at first I thought it was fine just sending out with everyone on the "to:" list … | |
hi guys..is there a problem with my code? because, i am trying to add a row dynamically depending on the user requirements, what the code does is that, whenever the image is clicked, only the textbox appears, what should happen is that the textbox should be inside the row.. [CODE] … | |
Hi all... For more days, I am struggling with one damn concept.. I have created a sample mail sending code which supports to upload our resume and send it to some company person.. I have cleared many bugs and finally it works fine. But the problem is when i host … | |
I have an example below from the registrar and when implemented (in a loop) it takes between 500ms to 1s between checks. I need it to run as quickly as possible, whether it be through curl or without. It seems curl takes forever between checks. I only need the script … | |
Hello, anyone has an idea of how to use php to check to see if a field in a mysql table is empty or has no values? i tried this $query="SELECT fieldId FROM table WHERE fieldName IS NULL" ; but this works only if the field in the table has … | |
when i run a php file on my site....I get an error msg The server encountered an internal error or misconfiguration and was unable to complete your request. one page as example .....[url]http://www.lifeline400.com/corp/staff.php[/url] Any help mch appreciated!!!!!!!!!!!!!! | |
Is anyone help me to learn PHP? or give me some good links about PHP tutorials and examples? Thanks in advance. | |
[CODE]<form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"> <table cellpadding="0" cellspacing="0"> <tr> <td height="35" width="80">Username:</td> <td><input type="text" name="username"></td> </tr> <tr> <td height="35">Password:</td> <td><input type="password" id="pass" name="pass"></td> </tr> </table> <input type="submit" name="submit" value="Login"> <input name="submit" type="image" src="./images/button.png" style="width: 160px; height: 25px; margin-left: 35px; margin-bottom: -20px; margin-top: 20px;"><a href="" style="color: white; text-decoration: none; font-weight: bold; … |
The End.