39,388 Topics

Member Avatar for
Member Avatar for braveheart_sb

I have an application with a filenames a bit long. I would like to remove the name of the file and extension of the php files and only show my domain or server name. Example: this is what i have: www.example.com/dir/my_long_file.php This is what i need. www.example.com

Member Avatar for tutorials.scripts
0
375
Member Avatar for ankit.baphna

Below code works on my local machine PHP server but after uploading same code on live server Line1 do not create chart under 'generated' folder. Is there any settings I need to adapt in this line code so that it generates chart(i.e. demo1_index.gif) I have folder under my domain name …

Member Avatar for diafol
0
334
Member Avatar for stokie-rich

Hi Guys I'm connecting to a database using PHP and MYSQL, here is the code <?php $firstname=$_POST['firstname']; $lastname=$_POST['lastname']; $username=$_POST['username']; $confirmusername=$_POST['confirmusername']; $password=$_POST['password']; $confirmpassword=$_POST['confirmpassword']; $email=$_POST['email']; $confirmemail=$_POST['confirmemail']; //Database connection require_once("config.php"); //mysql query to insert value to database $query=mysql_query("INSERT INTO registration (`firstname`, `lastname`, `username`, `confirmusername`, `password`, `confirmpassword`, `email` ,`confirmemail`) VALUES ('$firstname', '$lastname', '$username' , …

Member Avatar for stokie-rich
0
378
Member Avatar for Sujan Shrestha

here, home.php is one controller file and i want to redirect into another controller file login.php but this code is not working. if you have any idea then plz help me... *home.php* <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Home extends CI_Controller{ function __construct(){ parent::__construct(); $this->check_isvalidated(); …

Member Avatar for Adrian_5
0
2K
Member Avatar for Maideen

Hi. I am new. I don't know how to validate certain data like emai, web site and numeric value. Here is my code which is work fine. Below is my code. Pls Help me add.php <?php include_once '../inc/header.php'; ?> <Script Language="javascript"> function change_action() { var frm_obj=document.getElementById("frm"); frm_obj.action="data.php"; } </Script> <form …

Member Avatar for diafol
0
406
Member Avatar for Jade_2

Hi guys I need to make a diamond like this for my lecturer,using nested for statements. I am having troubles. Can you guys give me any tips? ty.

Member Avatar for diafol
0
182
Member Avatar for chris.immanuel

Hi Guys, I need help with inserting date from HTML <input type="date"/> into oracle DB It seems that i need to make some kind of adjustment with oracle date. please help me...

0
89
Member Avatar for djasy

good evening people,i'm creating an application where i'd like to import and save a list of people in an excel sheet to my database in mysql, using php, And i'd like to modify it through a form using php! Can anyone have an idea or something which will help me …

Member Avatar for naidu65
0
5K
Member Avatar for patricbensen

I have developed a registration page for users and now I wish to include a login page l. how do I go about it. Help me

Member Avatar for GliderPilot
0
77
Member Avatar for Ric_1

i want to add a login attepmt counter here, that if inccorect password count==3 it will be redirected to the forgotpassword.php need some help thankyou in advance (: /* * checks if user with email "$username" and password "$password" exists * */ public function confirmUserPass($username, $password){ //$username = mysql_real_escape_string($username); /* …

Member Avatar for JorgeM
0
624
Member Avatar for mattyd

Hello. I am attempting to implement a Captcha in my form using PHP. This, at first, seemed pretty direct; Yet upon viewing the form, no Captcha is displayed, only code. I noticed in the code there is an *echo*, Line 32 (Which I do not understand why that is even …

Member Avatar for mattyd
0
165
Member Avatar for Tinnin

Hi All, I'm trying to put together a "fade in", "fade out" segment for user comments on a website. The array of comments with key=>value (memberName=>comment) comes from php. I'm looping through using jQuery like so; $(document).ready(function(){ function swap() { <?php foreach ($memberTestimonials as $member=>$testimonial) : ?> $('#testimonialMessage').fadeIn(5000); $('#testimonialMessage').html("<p><?php echo …

Member Avatar for Tinnin
0
364
Member Avatar for mark103

Hi all, I need your help with my PHP, I'm working on the date and time format especially the year, month, day date, hours, minutes and seconds. I have got a little problem with the day date. Most of the day date are correct, but some of them are not …

Member Avatar for diafol
0
303
Member Avatar for nileshbhanu

<?php $host = "localhost"; $user = "root"; $pass = ""; $databaseName = "foresight"; $tableName = "userinfo"; $con = mysql_connect($host,$user,$pass); $dbs = mysql_select_db($databaseName, $con); $result = mysql_query("SELECT * FROM $tableName where flag != 1"); //query $email = mysql_fetch_row($result); //fetch result mysql_close( $con ); ?> <?php $connection = mysql_connect("192.232.240.245","root","causealmedus-1608"); if (!$connection) { …

Member Avatar for veedeoo
0
2K
Member Avatar for Rahman_1

I have a list of id like this from mysql JM.1 JM.2 JM.2.1 JM.2.2 JM.2.1.0 JM.2.1.1 JM.3 ... ...etc I want to make a display as well JM.1 JM.2 ---JM.2.1 ---JM.2.2 ---------JM.2.1.0 ---------JM.2.1.1 JM.3 ... ...etc How to display using PHP and How To using CSS like that, Or is …

Member Avatar for diafol
0
249
Member Avatar for davidjennings

Hi I am trying to convert the following mysql function to mysqli. Thanks in advance David <?php /*------------------------------------------------- This class contains generic database functions to view, add, edit and delete all facets of a database -------------------------------------------------*/ require_once ("sitesettings.php"); class Database extends SiteSettings { var $Query; var $Connection; function Database() { …

Member Avatar for diafol
0
493
Member Avatar for mohan@nano

i need a combinations for the required and optional fields For Eg: required field [1,2,3] optional field [1,2,3,4,5] I have a textbox for selecting the titles. when i enter the textbox value as 4 for the combinations i should get result as [1,2,3,4] and [1,2,3,5] .. the [1,2,3] from the …

Member Avatar for mohan@nano
0
149
Member Avatar for Maideen

Hi I have another issue in Update. Could not be updated. pls help me if (isset($_POST['update']) && $_POST['update'] != "" ) { $id=$_POST["id"]; $name = $_POST["name"]; $address = $_POST["address"]; $tel = $_POST["tel"]; $fax = $_POST["fax"]; $email = $_POST["email"]; $website = $_POST["website"]; $type = $_POST["type"]; try { $sql="UPDATE bk_customer SET name='$name',address='$address', …

Member Avatar for Maideen
0
156
Member Avatar for ray100

I am new to PHP and I am having some problems and I am hoping someone can point me in the right direction. Here is what I need to do: Create a Web Form for uploading pictures for a high school reunion. The form should have text input fields for …

Member Avatar for sikander123
0
796
Member Avatar for nileshbhanu

<?php $host = "localhost"; $user = "root"; $pass = ""; $databaseName = "foresight"; $tableName = "userinfo"; $con = mysql_connect($host,$user,$pass); $dbs = mysql_select_db($databaseName, $con); $result = mysql_query("SELECT * FROM $tableName where flag != 1"); //query $email = mysql_fetch_row($result); mysql_close(); //fetch result ?> <? $host = '192.232.240.245'; $user = 'root'; $pass = …

Member Avatar for diafol
0
203
Member Avatar for burhanahmed92

I have a array of dates like this $dates = ('2014-01-21','2014-03-11','2013-01-21','2014-03-11','2013-07-21','2012-01-21'); I want to get array values where year is 2014. I mean when i change value to 2014 it will return value from array which contain year 2014 only. In this case it will return '2014-01-21','2014-03-11' to me. Is …

Member Avatar for diafol
0
441
Member Avatar for PsychicTide

Hey guys, I'm trying to start a yes/no vote div which, when clicked, increments MySQL entry either way. I've seen several examples of how to do this type of thing online, but can't seem to grasp this process on my current layout. I'll show a little as possible to not …

Member Avatar for PsychicTide
0
374
Member Avatar for ckide

what do you prefere for naming: database - c++ - java - php? 1- User_id - User_Name 2- user_id - user_name 3- UserId - UserName 4- userId - userName 5- else

Member Avatar for Ancient Dragon
0
307
Member Avatar for patk570

I have a code that i want to throw an error if there is no items to delete or if there is items it proceeds with deleting the items, here is what i have so far: if (isset($_REQUEST['removeall'])){ if($_REQUEST['removeall'] == 1){ mysqli_query($mysqli,"DELETE FROM assets WHERE cust_id = $custID AND del_flag …

Member Avatar for Fernando_4
0
193
Member Avatar for centenond

Im a little confuse with this particular function 'date()' Its a serverside time or it takes the time of the client computer? See its shows a time that in anymeans is my current time but still when i change my pc time it also change

Member Avatar for PsychicTide
0
235
Member Avatar for narendra75
Member Avatar for Eve_1

Hello guys, I am a new learner in PHP and I am modifying a simple binary site. I am here to ask help how can I calculate my downline pairs or the total left and right side of some user. Here is the example of my tables in database: +++++++++++++++++++++++++++++++++ …

Member Avatar for diafol
0
873
Member Avatar for winbala5

In my new project I decided that I will use RedBean ORM system with Codeigniter PHP Framework. How can I get all records from table with simple relation? I know, that I can use R::exec or R::getAll queries but I want to make sure if there any other solution(s). TABLE …

Member Avatar for winbala5
0
255
Member Avatar for hiiiiii@

how to set the minvalue=today and max value=today+30 in javascript or how to do it in jquery what are the files i need to download .plz explain me i never used jquery before .

Member Avatar for hiiiiii@
0
272
Member Avatar for cfv1000

Hello I made some tries to get info from http://portal.onrc.ro The workflow is like: 1. Login => redirects to a page 2. Get the form (GET /ONRCPortalWeb/appmanager/myONRC/wicket?p=bpi.buletinBpiOnline) 3. Change the search type (POST /ONRCPortalWeb/appmanager/myONRC/wicket?_nfpb=true&_windowLabel=TestWicket03_1&_urlType=action&wlpTestWicket03_1__wu=%2FONRCPortalWeb%2Fappmanager%2FmyONRC%2Fwicket%2F%3Fwicket%3Ainterface%3D%3A1%3AformCautare%3A%3AIFormSubmitListener%3A%3A) => redirect to an interface (GET /ONRCPortalWeb/appmanager/myONRC/wicket/?wicket:interface=:<@interface_NO>:1:::) After changing the search type, i don't get redirected. …

0
150

The End.