39,320 Topics

Member Avatar for
Member Avatar for garyjuano

hello guys..can someone help me to create a function that generates random numbers composing of 9 digits with the ff limitations.. * must not have consecutive numbers in any place...sample 158461247....1 and 2 is consecutive numbers... * must not have same numbers before and after....sample 155483628....5 and 5 is same …

Member Avatar for AARTI SHRIVAS
0
306
Member Avatar for lillorme

hey man am having trouble here. am using this code if($user_ok == true){ header("location:user.php?u=".$_SESSION["username"]); exit(); } but this is my problem The requested URL /tutoringcareer/php/user.php was not found on this server. i have a .htaccess file but when i try to log in that when i have the problem

Member Avatar for diafol
0
261
Member Avatar for turpentyne

I'm rather inexperienced when it comes to php mail scripts. I've got a working script, thanks to the PHPmailer that everyone uses. But what I want is to modify it so that I send the form info to two locations: Step one, send all information as text-only to email@location.com Step …

Member Avatar for turpentyne
0
334
Member Avatar for davy_yg

Hello, I have these codes: controllers/admin/site.php <?php class Site extends CI_Controller { function index() { $data = array(); $records = $this->site_model->get_records(); if (count($records) > 0) { $data['records'] = $query; } $this->load->view('admin/options_view', $data); } function create() { $data = array( 'title' => $this->input->post('title'), 'content' => $this->input->post('content') ); $this->site_model->add_record($data); if (true) $this->index(); …

Member Avatar for Tpojka
0
359
Member Avatar for davidjennings

Hi All having a problem with the following statement " Notice: Undefined index: Username in C:\wamp\www\david\remoteaccess\index.php on line 6". I have tried defining Username in a number of ways, but I seem to missing something. Any help would be great Thanks in advance Thanks <?php session_start(); include("includes/utilities.php"); include("includes/functions.php"); $username = …

Member Avatar for davidjennings
0
374
Member Avatar for davidjennings

Hi all, I am working on the following code and I am having a problem with defined variables. On the output on the Submitted and Username Inputs as being undefined. I have added $username = (isset($_POST['Username'])) ? $_POST['Username'] : ""; at the start of the function but not suppressed. Thanks …

Member Avatar for davidjennings
0
350
Member Avatar for nadiam

So as the title entails, my if else statemnt in php won't execute. i mean i would undrstand if the 'if' didn't execute but it didn't even read the else statement. so when i submit nothing happens. <?php session_start(); if(isset($_POST['jansave'])) { $basic = $_POST['basic']; $allowance = $_POST['allowance']; $bonus = $_POST['bonus']; …

Member Avatar for nadiam
0
342
Member Avatar for adishardis

I need to create an dynamic array which will be sent via `$("#ratings").load("ratingscalculator.php?Myarray="+myarray)` and then used in a select query $result = $database->connection->prepare("SELECT *, (SELECT COUNT(*)+1 FROM TABLE WHERE kampanj > t.kampanj and (kampanjnamn = 'Kampanjnamn_1' or kampanjnamn = 'Kampanjnamn_7' or kampanjnamn = 'Kampanjnamn_3' or kampanjnamn = 'Kampanjnamn_4' )) as …

Member Avatar for adishardis
0
160
Member Avatar for Indians

I am using datepicker in my form for booking date field. when i pick a date it shown like this 11/13/2013 (MM/DD/YYYY). In mysql database i am using datetime Type. in mysql db always shows 0000-00-00 00:00:00. i want to change the date format. for example if i am choose …

Member Avatar for diafol
0
625
Member Avatar for phphp

Sir, I am new to php. I have following codes to connect with mysql <?php // Connection variables $host="localhost"; $username="root"; $password=""; $db_name="asia"; // Connect to host $con=mysqli_connect($host, $username, $password); // Connect result if(!$con){ die '<script type="text/javascript">alert("Error Connecting to HOST")'. mysqli_connect_error($con).'</script>'; } else { echo "Connected" . mysqli_error($con); } // Database …

Member Avatar for phphp
0
142
Member Avatar for csshacker

[CODE]Hello daniweb Friends, i found my question's answer "How to Make a Hindi WebSite in PHP". You Can use Wordpress to make a Hindi website After instllation of Wordpress CMS Download a Wordpress Plugin name "HindiWriter1.1.zip". and put this in "plugins" Folder of your installed Wordpress CMS. Now login to …

Member Avatar for diafol
0
257
Member Avatar for karen.frias0316

Hi I have a code that's been working for me when my server is Cpanel. but due to ceratin issues i need to transfer to godaddy. i'm using this code before. but now it's not working. i have run a test connection and im sure i have a connection to …

Member Avatar for diafol
0
1K
Member Avatar for annyzaa

if search by textbox is working jumpmenu not working but jumpmenu is working, textbox is not working help me please!! <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1"> <tr> <td width="518" style="font-size:16px; font-weight:bold;">รายชื่อผู้สมัครงานทั้งหมด</td> <td width="167" align="right"> <!-- <form action="position_add.php" method="get" name="add"> <div align="center"><input name="" type="submit" value="add" style="cursor:pointer;" /></div> </form>--> </td> </tr> <tr> …

Member Avatar for diafol
0
151
Member Avatar for Indians

![d7f49899d09d4dd84f5105080c780de5](/attachments/small/4/d7f49899d09d4dd84f5105080c780de5.PNG "align-left") here i attached one image. look at this.if i selected the Guest Currency then automatically Guest Currency Value should shown in the next text box. how to do that? is there any javascript, jquery plugin? Guest Currency : <select name="gcurrency" tabindex="21"> <option value=""></option> <option> INR India Rupees </option> …

Member Avatar for diafol
0
3K
Member Avatar for makeithappen

Hello, I know this is a very elementary question but after reading and trying for over four hours I know I need help or some direction. All I am trying to do is select options from two drop down boxes and two different msql selects. The the drop down boxes …

Member Avatar for diafol
0
176
Member Avatar for sh4bbz

hi, i created this code a long time ago and during that time i had all the info i needed to do a save as PDF but now its all gone and the client wants that option so no one can change it. code below: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for diafol
0
1K
Member Avatar for zacharysr

On my search page [URL="http://daparadise.com/search.php"]http://daparadise.com/search.php[/URL] i want to make the logo auto change when a certain day comes up. Say like christmas. our a birthday or something like that. So how would i make the logo change in php when these days come up?

Member Avatar for diafol
0
249
Member Avatar for CJMW

Wassup everyone :) I am an experienced php programmer, having used it for over 4 years. However despite this, I cant seem to think of any worthwhile projects to undertake. Im not looking for anything thats going to make money or become popular overnight, I just want to spend my …

Member Avatar for diafol
0
138
Member Avatar for simplypixie

I am using tinymce on a cms and I want to be able to have a dropdown menu of all pages on the site (stored in a db) to choose from when adding a link but all I am getting is an emtpy set of values. I am using the …

Member Avatar for simplypixie
0
895
Member Avatar for narasimha9

This is my display page <label for="City">City</label> <div id="city"> <select id="city" name="city" onChange="display(this.value)"> <option value="" selected="selected">-- Select city --</option> <?php include("getcitylist.php");?> </select> </div> this is my ajax page // JavaScript Document var XMLHttpRequestObject=false; function display(state_id) { if(window.XMLHttpRequest) { XMLHttpRequestObject=new XMLHttpRequest(); } else if(window.ActiveXObject) { XMLHttpRequestObject=new ActiveXObject("Microsoft.XMLHTTP"); } XMLHttpRequestObject.onreadystatechange=function() { if …

Member Avatar for diafol
0
244
Member Avatar for douglas.shrader.1

I can not get this web form to align left on a landing page That I am in the middle of creating ( its no where near complete but, IO cant get the webform in the corrct spot): http://dsninformation.com/nov11/moneygirl3.php Here is the code I am trying to left align. <td …

Member Avatar for douglas.shrader.1
0
208
Member Avatar for game4tress

I'm creating a chat system using Codeigniter and I need to update a textarea with a field in the database each second. For that I'm trying to use jquery for the timer but I don't know how I can update the textarea with data from the database, with a call …

Member Avatar for game4tress
0
2K
Member Avatar for davidjennings

Hi all, I am working on the following code. In the SQL query, I am currently calling all the data from the DB using * and all works fine. I would like to be selective and call the coloumns required i.e UserID, UserFullName, UserEmail, UserLastPassword, but when I do this …

Member Avatar for davidjennings
0
366
Member Avatar for silent lover

dear all, i want to parse this url: http://core3.oomph.co.id/api_omph_playground/index.php/nav/get_menu/1002/ to get all image, selectedImage, and url value. and my php syntax is: <?php $url1 = "http://core3.oomph.co.id/api_omph_playground/index.php/nav/get_menu/1002/"; $url = file_get_contents("$url1"); $arr = json_decode($url,true); foreach($arr['menu']['image'] as $item) { echo "image: ". $item[0] ."<br>"; echo "image_selected: ". $item[1] ."<br>"; echo "url: ". $item[2] …

Member Avatar for pzuurveen
0
269
Member Avatar for tqmd1

Dear Experts I have following codes <?php if(isset($_get['submit'])) { // Connection variables $host="localhost"; $username="root"; $password=""; $db_name="asia"; // Connect to database $con=mysqli_connect("$host", "$username", "$password"); // Connect result if(!$con){ die('Error Connecting to Database: ' . mysqli_error()); //die '<script type="text/javascript">alert("Error Connecting to Database"). mysqli_error($con);</script>'; } else { echo "<script type=\"text/javascript\">alert(\"Connected\")" . mysqli_error($con) . …

Member Avatar for Bachu
0
184
Member Avatar for patk570

Hi Guys, I would like to highlight the current day on this php script, can you help me figure out a simple way to do this? <?php $monthNames = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); if (!isset($_GET["m"])) $_GET["m"] = date("n"); if (!isset($_GET["y"])) $_GET["y"] = …

Member Avatar for diafol
0
355
Member Avatar for davy_yg

Hello, Rather then retyping the question, perhaps I can just place the link: http://ellislab.com/forums/viewthread/238828/ I already posted the question in CI forum, yet still does not find the answer yet. Perhaps if anyone can help me solve this problem would be great.

Member Avatar for davy_yg
0
318
Member Avatar for Jamblaster

I have been reading about exec() and passthru() and system() and different ways to use these, but so far not one of them is working. The Closest I have gotten is to get a request from CMD printed up on the page and so I researched how to pass a …

Member Avatar for Jamblaster
0
7K
Member Avatar for Dane2259

I'm just trying to echo a string to the browswer with the following code: <!DOCTYPE html> <html> <body> <h1>Hello World!</h1> <?php echo "My first PHP script!"; ?> </body> </html> but it doesn't show up in the browswer. The "Hello world!" header shows up but not the php statement. I know …

Member Avatar for broj1
0
323
Member Avatar for kelley82879
Member Avatar for diafol
0
219

The End.