39,323 Topics

Member Avatar for
Member Avatar for rotten69

Hi, How are you doin there? I'm just doing an example here. I wanted to access all elements that our user 'George' has. [code]$players = array( 'George' => array('Age'=>20, 'Hair Color'=>'Black', 'Cars'=>array('BMW', 'Toyota', 'Nissan', 'Shitty Cars lol') ), 'Mikayla' => array('Age'=> 16, 'Hair Color'=> 'Bruntte'), 'Mel'=> array('Age' =>21, 'Hair Color' …

Member Avatar for pritaeas
0
71
Member Avatar for phaedrusGhost

Hi All, If someone can help me with this I would be eternally grateful here. I have created a form on one page with php validation. Once cleared through the validation I have Sessioned the inputted data to catch them on the "insert data page" on the "insert data page" …

Member Avatar for karthik_ppts
0
165
Member Avatar for geekme

Following is my error free code, it has no syntactical error but when I run it it executes the else part, which means my databse has not been updated.What is the problem? <html> <body> <?php $connect=mysql_connect("localhost","root","ila"); $query="create database if it not exists demo"; $db=mysql_select_db("demo",$connect); $query= "create table jlt(id int not …

Member Avatar for geekme
0
171
Member Avatar for saadi06

Hi, I am using [CODE]ereg [/CODE] for validations of field and I want to allow some fields that are optional but ereg does not allow me to validate space or empty field.My code for validation is [CODE]while(list($var,$val)=each($_POST)){ if(!ereg($var,$admin_data)){ if(ereg($reki[$var],$val)) {$class="good";}//this condition is checking the values of all the fields but …

Member Avatar for saadi06
0
105
Member Avatar for Dragonbaki

Hi experts., I need your kind help on about how to handle Naviswork ActiveX control integrated with HTML, PHP and Javascript. I need to display a Naviswork viewer in my website. For that, I created a Browse button to select Naviswork file. After selecting the file, the file path has …

Member Avatar for pritaeas
0
151
Member Avatar for ibakir

i would like to write a function if that user id who do a post equal the same user id who logged in then he can after a while edit again his own post , then if its match go to the update page to make the edit ; [url]http://www.dalilack.com/marketFormUpdate.php?Id=11[/url] …

0
176
Member Avatar for extemer

hello guys i have designed a student form which have 3tabs e.g General,parental info,Miscellaneous and i want to add breadcrumbs to that can some suggest me how to do i being trying it hard but not getting it right

Member Avatar for iamthwee
0
58
Member Avatar for 7kemZmani

Hello, I'm using php code to retrieving an array from database and place the result into checkboxes but after the last checkbox input there is text input (hidden by default) and the last check box name is 'other'. I want to make the text in visible if 'other' is checked …

Member Avatar for divyakrishnan
0
193
Member Avatar for Dragonbaki

Hi experts., Can anybody know how to select and upload multiple files using javascript [ with php too ]..? I dont want to use silverlight or flash..! I just need to do it in simple way.. Please help me..! Thanks.,

Member Avatar for karthik_ppts
0
175
Member Avatar for karthik_ppts

Hi Frendz, I'm using the following code for generating the alert message. [CODE=php]echo '<script>alert("Your project has timed out. Contact your project Manager")</script>';[/CODE] Its working fine in my local server. But in online server its not working. whats going wrong with this?

Member Avatar for P0lT10n
0
174
Member Avatar for bigwhiteegg

I'm new to web develop, just started coding my own page I have the need for hiding the user's ip so I found the following code just trying to figure out how to use it on my website what will be showing on the screen is a hyperlink like this …

0
81
Member Avatar for blocker25

hey guys.!! i wonder how confugure ioncube in joomla.... can anyone help me? thanks...

0
37
Member Avatar for Gerbiler

Recently I have been working with Mysql and PhpMyAdmin a lot on Ubuntu, and I have stumbled across a very annoying error, or set of errors. I keep on getting a bunch of random loosely related error messages. These are the errors I get. When I try to log in …

Member Avatar for griswolf
0
534
Member Avatar for meleo

After spending abut 8 hours frustrated (and growing very grumpy) :) I found a solution and wanted to share. On my site, I use cPanel. I found a couple of posts that saved me some serious headaches so I decided to share them here to hopefully help someone else. I …

Member Avatar for meleo
1
121
Member Avatar for aldm

Hi, I need forum in my site. It shouln't be a big forum, it's a student site. Now, which php forum is best to use - I'm using phpbb3. Is there any better solution, easy to moderate and administrate and which takes less space on server? Thanks in advance, Amer

Member Avatar for IIM
0
82
Member Avatar for minitauros

Because using the <base> tag is giving me some problems lately, I'm curious about what the best solution is to use together with mod rewrite. I use mod rewrite a lot, and the <base> tag helps me to keep the links to my css files, for example, working. I link …

Member Avatar for minitauros
0
121
Member Avatar for smartness

[QUOTE]Database error in vBulletin 3.6.8: Invalid SQL: UPDATE session SET newposts = newposts+1 WHERE NOT ISNULL(newposts); MySQL Error : Unknown column 'newposts' in 'where clause' Error Number : 1054 Date : Saturday, September 22nd 2007 @ 11:19:12 AM Script : [url]http://gjilaniforum.altervista.org/forumi/newthread.php?do=postthread&f=91[/url] Referrer : [url]http://gjilaniforum.altervista.org/forumi/newthread.php?do=newthread&f=91[/url] IP Address : 82.114.72.186 Username : …

Member Avatar for Miklo_jan
0
236
Member Avatar for Stefano Mtangoo

have planned to write my own light weight MVC for PHP, that will be used as base for my sites I develop. I have no problem with PHP, OOP, et al. I have trouble on how to actually load Models In controllers and use them amd loading Controller values into …

Member Avatar for Stefano Mtangoo
0
393
Member Avatar for roachae

My code is below. Lines that are not indented are debug lines or things I've been trying to get this to work. Basically, the 'filename' hidden input's value is not setting so on submit, the code that checks the $_POST values is returning an error because 'filename' is missing. This …

Member Avatar for roachae
0
118
Member Avatar for emily-bcot

I'm working on the Help system. In the Help system, there is the WYSIWYG Editor to allow users to input content. However, the content includes the text and image. My question is How to store the content of WYSIWYG Editor into database? I really appreciate all your help. Thanks!

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for AngelicOne

I'm having a hard time to send a message to a certain e-mail account. I read that I should setup the PHP.INI at line where SMTP is located, which the default value is localhost. If the SMTP is to the computer itself which is 127.0.0.1 or localhost then the mail …

Member Avatar for NettSite
0
136
Member Avatar for ThomoTechnician

Hi. Been trying to make a (basic) social networking site for my school but have had problems with users being able to add themselves as friends. Seems stupid but it is annoying! I have tried using the code: [CODE]<?php if ($_SESSION['MM_Username'] == '****') { ?>[/CODE] But it wont load dynamic …

Member Avatar for ibakir
0
397
Member Avatar for jacob21

Everthing is working fine but i am not getting emails on my id. Need help [CODE]<?php $to = "sikka.sourav@gmail.com"; $subject = "Contact Form"; // Include extra form fields and/or submitter data? // false = do not include $extra = array( "form_subject" => true, "form_cc" => false, "ip" => true, "user_agent" …

Member Avatar for Shanti C
0
206
Member Avatar for Danny159

Hey, I have the following script... [CODE]if(!opendir($image_dir)){ echo info_msg("Ooops... This Album contains no images"); }else{ /* step one: read directory, make array of files */ if ($handle = opendir($image_dir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..' && preg_match("/t/",$file) && $file != …

Member Avatar for pritaeas
0
205
Member Avatar for canadaussie12

Hello, I am very new to PHP and hope that someone here might be able to help with a challenge I cannot solve (yet). I have created a simple hmtl form and corresponding php file which send some information to the designated email. However, I am not sure how to …

Member Avatar for canadaussie12
0
170
Member Avatar for Aardwolf

How would I do this in 1 line [code] $name = $firstName + " " + $lastName; //output: 0 [/code] the problem is what I think it is, is that its trying to add like mathematics. whilst I want the '+ " " +' to become a space in between …

Member Avatar for karthik_ppts
0
129
Member Avatar for srdva59

hi, i looking for a class that can handle with winrar and zip files i have found a lot of resource for zip but none for winrar... any one know something that work in both of the type files? thanks :)

Member Avatar for srdva59
0
1K
Member Avatar for Espenij

Hi, I have a question. I want my page to register the previus page the visitor comes from. If my visitor comes from google, i want the url to add this in the Url. Is this possible in php5? I had this in php4, men it didnt work when it …

Member Avatar for Espenij
0
86
Member Avatar for atfOnly

As far as i know this is no way to use array_count_values for multidimensional array. So, any of you guys know how to deal with this? I have 2D array like this.. $arr=array([0]=>array([arr1]=>A[arr2]=>1) [1]=>array([arr1]=>B[arr2]=>5) [2]=>array([arr1]=>A[arr2]=>5) etc... ) i want to obtain combination of arr1-arr2 and its count(just like in 1D …

Member Avatar for divyakrishnan
0
88
Member Avatar for chaychie

Hi, I would like to display my database data in text fields form. I would like to have all the text fields to be locked (read only), so I added readonly attribute into the text fields. Moreover, I would like to add a button "EDIT" at each row, so that …

Member Avatar for divyakrishnan
0
1K

The End.