39,393 Topics

Member Avatar for
Member Avatar for Anati

how to admin and user to login in the same interface but after login admin will go to page register staff. while the user will go to search page staff who have been on the list by admin. what are the steps that need to be placed and coding for …

Member Avatar for hiren2927
0
119
Member Avatar for brianbabu

Hey guys, I'm having the most toughest time of my life to figure out a way to upload video files using PHP. I am able to upload images but not video files or zip files. I haven't put any file extension check right now. Here is my code, will you …

Member Avatar for hiren2927
1
386
Member Avatar for dayanadolce

hello there. i want to send email but i use localhost. the mail() function does't seems working as it says something is wrong with the port etc. <?php $sendmail = (mail('sample@yahoo.com','sample email','sample content','From: from@gmail.com')); if($sendmail) {echo "success"; } else {echo "unsuccess";} ?> even the simple email as above cannot be …

Member Avatar for dayanadolce
0
378
Member Avatar for rubysethi
Member Avatar for Priti_P

Hello, Suppose I have resume. On upload of resume, I want my form fields get filled with values like (atleast) mobile number,email id,address (etc) Is there any avilable script which can fetch details like this?

Member Avatar for pritaeas
0
255
Member Avatar for uchejava

I am working on a Private Messaging Service (PMS) on my website. This is how my 'message' table on my MySQL database look like. id sender_id receiver_id message 1 2 3 hi 2 3 2 You good? 3 2 3 sure 4 1 3 hello 5 3 1 yes Now, …

Member Avatar for diafol
0
165
Member Avatar for Donal99

Dim Names As String = txtfrom.Text Dim Email As String = "E@mail.com" Dim Phone As String = "8979876785" Dim Address As String = "Location" Dim postData = "&Names=" & Names & "&Email=" & Email & "&Phone=" & Phone & "&Address=" & Address Dim request As WebRequest = WebRequest.Create("http://localhost/testserver/sendmail.php") request.Method = …

Member Avatar for Donal99
0
443
Member Avatar for jKidz

Hi Friends, First of all, I would like to Wish you a Happy & Christ centered Christmas to you all. I am coding a forum to increase my knowledge. In New Article Creation, I want to restrict if user post a thread within last 1 minute, let him or her …

Member Avatar for chrishea
0
89
Member Avatar for vizz

How to write .htaccess for following links? Something like home.php/page/about home.php?page=about home.php?page=services home.php?page=events home.php?page=gallery&id=1 **//redirected from home.php?page=events//** home.php?page=contact **home.php** $default = 'default'; $page = isset($_GET['page']) ? $_GET['page'] : $default; if (!file_exists(''.$page.'.php')) { $page = $default; } include(''.$page.'.php'); **e.g** page=about is used to get about.php **include(''.$page.'.php');** this includes **about.php ** for …

Member Avatar for imti321
0
169
Member Avatar for Osagie_1

Can anyone help me clear this issue ? I have a JsonMaker class as: class JsonMaker { protected $jsonObj; protected $path; function __construct($filepath) { $this->path = $filepath; $str = file_get_contents($this->path, true); $this->jsonObj = json_decode($str, false); } public function Test_1($rootName){ $file = file_get_contents($filepath, true); $data = json_decode($file, false); foreach ($data->{$rootName} as …

Member Avatar for broj1
0
129
Member Avatar for Shikha_1

how msg is send to mobile from localhost . i need php code settings in nowsmsgateway settings in php.ini setting in httpd.conf file

Member Avatar for Sangeeta_2
0
219
Member Avatar for rohoni

Hi i am developing a new website for mobile shop in php, I need to implement to send sms for the login users, please help me with code in php

Member Avatar for Semy
0
356
Member Avatar for younes.keraressi

hey, im working on a site on drupal with a theme, i have the main page with slider, i created a new page and i want to use some jquery there, but i search on internet they said that add scripts[] = jquery.js into you them file, the problem when …

Member Avatar for younes.keraressi
0
285
Member Avatar for RobertDecousta

Hi, I really like to know much more about PHP? what is it? Please explain me clearly.

Member Avatar for diafol
0
308
Member Avatar for SimonIoa

I want to make my website a mobile application. I write in php and after a little research it seems that Zend is the best way to create mobile apps in PHP. Any ideas?

Member Avatar for SimonIoa
0
282
Member Avatar for kazkuzzer007

I'm trying to make a puzzle solver with php code like this <?php $GoalState = array(0,0,0,0,0,0,0,0,0); $CurrentState = array(0,0,0,0,0,0,0,0,0); $ChildState = array(0,0,0,0,0,0,0,0,0); function GetGoalState($initialstate, $goalstate){ $total = 0; $GoalStateGanjil = array(1,2,3,8,0,4,7,6,5); $GoalStateGenap = array(0,1,2,3,4,5,6,7,8); for($i=0; $i<8; $i++){ for($j=$i+1; $j<9; $j++){ if($initialstate[$j] < $initialstate[$i] && $initialstate[$j] != 0) $total = $total …

Member Avatar for Taywin
-1
435
Member Avatar for reynaud0000

Hi Guys i am having a very peculiar problem i have written a small code so that it is possible to sign up to the website i am creating with a few restrictions to each field however from what i see the code seems ok but each time i try …

Member Avatar for matrixdevuk
0
241
Member Avatar for SimonIoa

Hello i have a problem with my website. It is running slow. I asked the my server provider why is that, and they replied its because the webiste uses many embedded urls like youtube, vimeo, dailymotion and so on. And so i have to cache these embedded urls. Anyone knows …

Member Avatar for SimonIoa
0
638
Member Avatar for ravi142

Hello, I would create Login page. which - separate Php for random username password generator - this is just a dummy login with random username and password generator. No database required. - e.g like http://www.surgaliga.com/ **Need:** Is they any script that random suggest detail of login and password after given …

Member Avatar for heatherIDD
0
285
Member Avatar for mattster

Hi All, I am working with a Magento (v1.8.1) site, which until a week or so ago, was working perfectly. I am using the SM_AMAZ theme, and have no plugins which could interfeare with performance. Everything will be fine, then something in the admin panel will get changed, and the …

Member Avatar for imti321
0
388
Member Avatar for hankmeyer

I am Using a form to insert data into a table i have created, I receive no errors but for some reason, it states it worked, although it does not insert any data, Here is what I'm using: this is the form page: [CODE]<head> <link rel="stylesheet" href="../uploads/css/style.css" type="text/css" /> </head> …

Member Avatar for shafakhat91
0
9K
Member Avatar for dayanadolce

//i have made a function. but i can't call the function generateOrderedArray() as it says there is a Fatal error. help me! this //is my coding <form action="" method="post" enctype="multipart/form-data"> <html> <table> <tr> <td> <input name="location" type="radio" value="Jasin">Jasin <input name="location" type="radio" value="Merlimau">Merlimau</div></td> </tr> <tr> <td> <input type="submit" name="submit" value="Search" class="butoonfunction" …

Member Avatar for dayanadolce
0
365
Member Avatar for lloyd.farrell.7

Hi Everyone, I have the following php calulation $tplaunch = $tplaunch - $tpsold; This calculates as you would expect. I am helping to build a website that offers the first 25 members to purchase a product at a reduced cost. tplaunch is the number of user who will get the …

Member Avatar for lloyd.farrell.7
0
270
Member Avatar for bobgodwin

I need to sort items from multiple columns. I use this to get the id from the columns and format the data: $.fn.serial = function() { var array = []; var $elem = $(this); $elem.each(function(i) { var id = this.id; $(move_selector, this).each(function(e) { array.push( 'id[]=' + this.id ); }); }); …

Member Avatar for bobgodwin
0
449
Member Avatar for mwashu

please assist. i can not connect to my sql server (172.16.15.119). i always get this message"Fatal error: Call to undefined function sqlsrv_connect() in C:\Program Files (x86)\EasyPHP-12.1\www\malunde\connect.php on line 5" and the code that i used is: <?php $serverName = "172.16.15.119"; //serverName\instanceName $connectionInfo = array( "Database"=>"TPA-CS_UAT", "UID"=>"sa", "PWD"=>"tpa123"); $conn = sqlsrv_connect( …

Member Avatar for broj1
0
178
Member Avatar for Osagie_1

Good day everyone. I am trying to simulate (with php), an xml-like structure for json as follows: { "Articles": [ { "Article": { "ID": 111, "title": Origin of man", "author": "Man and Woman", "pubDate": "21st Feb, 2014", "summary": "Both Idiots" } }, { "Article": { "ID": 222, "title": "Origin of …

Member Avatar for diafol
0
271
Member Avatar for lloyd.farrell.7

Hi Everyone, I have the following script and I would like to rename the uploaded file to web-image(ext) The file is being uploaded to the correct location on the server and the database is being updated correctly, But I am unable to figure out how to rename the uploaded file …

Member Avatar for diafol
0
1K
Member Avatar for lloyd.farrell.7

Hi Everyone, I have the follow RewriteRule in my htaccess file that works as it should RewriteRule ^(.*)$ /product.php?pid=$1 [QSA,L] If I wanted to add another product page would I just need to add RewriteRule ^(.*)$ /productpage.php?ppge=$1 [QSA,L] for the Rule to work correctly? Thanks in advance

Member Avatar for lloyd.farrell.7
0
155
Member Avatar for davy_yg

input_image.php <?php $result = mysql_query("SELECT * FROM image_upload ORDER BY image_id ASC"); $data = mysql_fetch_array($result); $banner = $data['image_bn']; ?> <p><img src="../../images/<?php $banner; ?>"></p> <?php echo $_SESSION[$banner]; ?> line 13: Notice: Undefined index: adm_banner.jpg in C:\xampp\htdocs\portal\administrator2\admin\input_image.php on line 76 How to fix the error?

Member Avatar for imti321
0
188
Member Avatar for beerwinespirits

Hi, i am trying to make an order form that people select their candy they like and how much they want as well as their address and phone number for the website owner to go through and complete the order, i am having trouble getting the php mail function to …

Member Avatar for imti321
0
215

The End.