39,320 Topics

Member Avatar for
Member Avatar for dougsix

Here's the problem: Like most, I'm developing on an office network server, "localhost", and migrating pages to a live server on the web. I have several layers of folders with pages that refer back to "localhost/incudes" and "localhost/images" for example using "../../../includes/key.php" for example. I have coded the following to …

Member Avatar for dougsix
0
211
Member Avatar for showman13

Good Morning, Got a question regarding using CURL to automate the submission of a form. What I'm trying to accomplish is to avoid someone submitting a paypal payment more than one time for a purchase through my shopping cart. I can do it by submitting the form to paypal and …

Member Avatar for ryantroop
0
709
Member Avatar for cmps

Hey all!! I am thinking of creating a website that may contain some buying/selling items, so I was wondering which framework is the best for shopping online. I have some experience with codeigniter, but I was using it for its MVC structure which organizes and uses files more efficently. Anyway …

Member Avatar for diafol
0
185
Member Avatar for jovstudios

how can detect if the username is already exist?? i don't what is lacking in my code. this is my code: <?php include( "db.php" ); $first = strip_tags(mysql_real_escape_string($_POST['first'])); $last = strip_tags(mysql_real_escape_string($_POST['last'])); $username = strip_tags(mysql_real_escape_string($_POST['username'])); $password = strip_tags(mysql_real_escape_string($_POST['password'])); $password2 = strip_tags(mysql_real_escape_string($_POST['password2'])); $passwordmd5 = md5($password); if( empty($first) || empty($last) ||empty($username) || empty($password) …

Member Avatar for diafol
0
184
Member Avatar for GlenRogers

Hi I have a php header file that displays a random image from a mysql table each time the page is reloaded. I have done this just using rand() in the query. But doing it like this means that the same image could come up 3,4,5 times in a row! …

Member Avatar for GlenRogers
1
360
Member Avatar for cip6791

I am trying to use 3 custom fields from wordpress posts to build an array. I need to show and hide a div based on what time it is. I have a start, an end and a name which is also set as a css class in the template. That …

Member Avatar for cip6791
0
188
Member Avatar for GlenRogers

I have a form that shows images whos paths are stored in mysql. The form has 'hide' and 'show' submit buttons for each image. Pressing the hide button should set the value of the 'status' field to 2 (hidden). But it does nothing, my queries don't seem to execute. Here …

Member Avatar for GlenRogers
0
222
Member Avatar for ckchaudhary

Hi guys, first of all i am new to php, so please bear with me. I have this requirement wherein i need to automatically create email accounts with my hosting provider through my website's php code. I have a linux hosting account with cpanel interface (its bluehost.com btw, if that …

Member Avatar for ckchaudhary
0
425
Member Avatar for shapeape

Hi again, My login script seemed to be up and running. I was almost ready to crack open a bottle of vin-de-rouge to celebrate as it's a little milestone for me. However, it appears to have abruptly stopped functioning and I'm yet to determine the cause of this. Could I …

Member Avatar for shapeape
0
241
Member Avatar for vijaykumar.mr

Can someone give me the script to log in fiverr.com and fetch my message from inbox using cURL PHP

Member Avatar for veedeoo
0
393
Member Avatar for knarfs

I am developiong a php application which builds several large collections of objects in the course of interacting with the user. The objects need to persist across requests from the user and I've used php sessions to successfully implement this. The objects are persisted until the user is satisfied with …

Member Avatar for TomH.PG
0
205
Member Avatar for L-D

I have a script with no errors but when I login it comes back to blank fields in 1 second. Can't get in to make changes/settings. Submitting a wrong login will bring up a wrong pw message. I know the user/pw is correct because I saw it in phpmyadmin. Thanks …

Member Avatar for L-D
0
194
Member Avatar for janguyo

Hi Guys, I am working on a database for managing my projects, I would like to have a fucntion that can alert when quaterly and anual Reports are due basing on Project start dates. Please I need ideas if possible a working code too, still learning PHP. Any help much …

Member Avatar for janguyo
0
210
Member Avatar for Sydique

Am creating an Online house rent system that will enable tenants to pay house rent online,check statements,a caretaker to write reports,landlord to write statements,add new tenants. I welcome all your ideas on how to go about it.The database requires either Ms-Excel or Mysql.

Member Avatar for diafol
0
98
Member Avatar for shapeape

Hi, I'm building a basic log in system just to learn the ropes of PHP. Currently I'm a bit stuck. I'm trying to get a connection through a function file sorted for the rest of it to work but it's proving far more complicated then I thought. This is my …

Member Avatar for pritaeas
0
178
Member Avatar for devianleong

I've a working code and display well. Now I want to integrate into html code but I don't know how to add a custom div into it. Here's my php function hasChild($parent_id) { $sql = "SELECT COUNT(*) as count FROM w_category WHERE ParentID = '" . $parent_id . "'"; $qry …

Member Avatar for diafol
0
268
Member Avatar for cereal

Hello, I've an array with different type of values: int, null, strings, arrays. I'm trying to remove nulls and empty strings, but I want to save ints, even when it equals to zero, so I tried with `array_filter()`, by default it will remove `0`, `''` and `null`, but by applying …

Member Avatar for cereal
2
433
Member Avatar for showman13

Good Afternoon. I've been sporatically researching this for weeks, but haven't been able to locate any 'CLEAR', 'PRECISE' direction on creating .csv files from a query of multiple tables. What I need to be able to do is gather the relavent information from the tables and combine it into a …

Member Avatar for showman13
0
463
Member Avatar for Shikha_1
Member Avatar for ananthapriya
-7
214
Member Avatar for saadi06

Hi, I am using smtp for sending the email and attachments from my system. What I want to accomplish is that I should be able to send information in an encrypted form so that the message cannot be tempered. I am using https for sending the emails. But is there …

Member Avatar for pritaeas
0
553
Member Avatar for orangeoctane

Hello everyone. First post... I have a strange problem... used to be that Internet Explorer 6 would open PHP files that I had stored on my local machine (which is not a server). I would usually get some kind of "pop-up" warning from IE asking me if I wanted to …

Member Avatar for Simon_2
0
1K
Member Avatar for ej.p.lopez

hello i have a running code the only question is the get function wont get the field i type here's my whole code index.php <?php include_once('includes/dbConnect.php'); ?> <?php $searchText = htmlspecialchars ($_GET['q']); $action = (isset($_REQUEST['action'])&& $_REQUEST['action'] !=NULL)?$_REQUEST['action']:''; if($action == 'ajax'){ include 'pagination.php'; //include pagination file //pagination variables $page = (isset($_REQUEST['page']) …

Member Avatar for Zagga
0
1K
Member Avatar for lloydsbackyard

i have this code so to hinder from access when the url is directly type i understand BASEPATH is a constant but can anyone give me idea on how to cofigure the basepath? do i need to create a constant folder and constant php file? if (! defined('BASEPATH')) exit('No direct …

Member Avatar for almostbob
0
185
Member Avatar for Shikha_1

Following function implements a way to find all the indices of a given $needle in $haystack. There is at least one bug in the implementation. Find and fix the bug(s). <?php function findAllIndices($haystack, $needle) { $indices = array(); while ($index = strpos($haystack, $needle)) $indices[] = $index; return $indices; }

Member Avatar for almostbob
-5
119
Member Avatar for asaidi

Hi i want to display if possible a field from another table table a has group_id linked to group table..in edit it shows me the group_id i want to display near it the libelle of groupe i m just starting in cakephp please fine the code <div class="acnopens form"> <?php …

Member Avatar for diafol
0
159
Member Avatar for code_rum

I am using IIS for php. I want to confirm whether it uses fastcgi or cgi I used php_sapi_name() and it gives "cgi-fcgi" I don't know what does it mean Is there any other way to find the same

Member Avatar for code_rum
0
299
Member Avatar for klemme

Hi all, I have this script sending an really simple html email. It works fine, but I cant seem to preserve the line breaks when sending the email to the client. Any idea how I can preserve line breaks? Thought nl2br would do the trick.. // Data der skal emailes …

Member Avatar for klemme
0
337
Member Avatar for wastedkill

So here is what I want. if (tracks, the db) (user_id, the row) for '".$_SESSION['user']['id']."' = equal (tracks, row) in (users, the db) for '".$_SESSION['user']['id']."' exit else update (users, the db) (tracks, the row) to match. This isn't the script as I don't know where to start but I am …

Member Avatar for diafol
0
164
Member Avatar for ej.p.lopez

![87c254267ddc1a1686974c863a7bf415](/attachments/large/4/87c254267ddc1a1686974c863a7bf415.png "87c254267ddc1a1686974c863a7bf415") ![282a041b1e7ea8ddc9240fe7bb9989fe](/attachments/large/4/282a041b1e7ea8ddc9240fe7bb9989fe.png "282a041b1e7ea8ddc9240fe7bb9989fe") hi everyone can anyone give me a coad for the form of search inside the php i mean they belong in the same page ? here's my php command for the pagination and results //Count the total number of row in your table*/ $count_query = mysql_query("SELECT …

Member Avatar for ej.p.lopez
0
453
Member Avatar for a.arjunvasan

I am getting the following error on my home page. I am new to php code and this one is looking pathetic on my wordpress site. any help would be highly appreciated. The error is as below: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given on line 39 …

Member Avatar for a.arjunvasan
0
397

The End.