39,316 Topics

Member Avatar for
Member Avatar for james1700

Description: ------------ in my php pages i am using aes_encrypt which works fine. The issue i am having is with aes_decrypt. I have been searching for days to try and resolve this problem but need more help. The following string in my php will not bring any results back at …

Member Avatar for skraps
0
578
Member Avatar for gunnerone

Hi, i am trying to take a string from a text area and put it into a variable and split it by carriage returns and then add <li> to the beginning of the line and </li> to the end of a line. While putting <ul> at the beginning of the …

Member Avatar for blocblue
0
95
Member Avatar for opticblaze

Hi there, I have a form that collects array values and then posts it to another page.eg [CODE]<form action="page2" method="POST"> <input name = "myid[]" type="text" value="1"> <input name = "myid[]" type="text" value="4"> <input name = "myid[]" type="text" value="6"> </form>[/CODE] the second page then receives the array and implodes the results …

Member Avatar for opticblaze
0
249
Member Avatar for rse

Hello, I am new to php and mysql and I need to do password encryption and decryption. The password will be saved in a data base, I need to use an algorithm that uses SALT varible. Can some please help me with that? Thanks in advance.

Member Avatar for rse
0
2K
Member Avatar for gikonyo

is there any one with an idea of how to link a php form where by a customer places an order when the click clicks submit order data is verified,sent to database and then linked to SWREG i have implemented the order form, verification and sending data to the database. …

Member Avatar for gikonyo
0
109
Member Avatar for jacksantho

Yeah, its it possible to have multiple form in a single page. for example: <form action=test.php method=post> --- -- </form> <form action=test.php method=post> --- --- </form> Both the form action is the same test.php. Any problem ?

Member Avatar for reganstar
0
178
Member Avatar for gunnerone

How could i create x amount of checkboxes based on how many items are in a database and populate each check box with a php variable containing the data from the database. I have had a go and come up with the code below: But i cant seem to get …

Member Avatar for as.bhanuprakash
0
120
Member Avatar for codemonkey88

Perhaps not strictly a php question - but I can't find anything on this and thought you guys might be able to help. I am using a CMS which has FCKeditor built into it. Just recently (I didn't change the configuraation or server or anything) its started escaping all my …

Member Avatar for codemonkey88
0
97
Member Avatar for Fly_Batswana

I am using the code which i have attached but it generates errors.... the first error is in this line 36. if (isset($_POST[$MM_flag])){ if(empty($_POST['first_name'] || empty($_POST['last_name'])){ $error['name'] = 'Please enter your full name; name and surname'; }

Member Avatar for Biiim
0
51
Member Avatar for peter20

Hi, I am trying to print a table but I can't. I have a file called r.php with rules like [CODE]<?php $rule['ab'] = "afd"; $rule['vf'] = "ghe"; $rule['as'] = "rtg"; ?>[/CODE] and in another file I write [CODE]<?php include_once("r.php"); $a = 'as'; echo $rule[$a]; ?>[/CODE] but it is not printed …

Member Avatar for Biiim
0
152
Member Avatar for raf.fredi

How to check textarea value is submitted or not on insert page? if (isset($share)){ //do stuff } or anything else? I'm using click function #share instead form submit. How to check #share is clicked, on insert.php page? config.php [CODE] $host="localhost"; $user=""; $password=""; $db=""; $link = mysql_connect("$host", "$user", "$password"); $con=mysql_select_db("$db")or die(mysql_error()); …

Member Avatar for Biiim
0
125
Member Avatar for extjac

Is anyone familiar with this php class??? [url]http://justinvincent.com/ezsql[/url]. I am planing to start using it as framework. I think it is the based of Wordpress class.

Member Avatar for cereal
0
76
Member Avatar for davy_yg

Hi, I am using an include function to include image gallery to my site. this is index.html of image gallery: [CODE] <link rel="stylesheet" type="text/css" href="css/sliderkit-core.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos.css" media="screen, projection" /> <link rel="stylesheet" href="css/main.css" type="text/css" /> <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="css/sliderkit-demos-ie6.css" /> <![endif]--> <!--[if …

Member Avatar for davy_yg
0
170
Member Avatar for Rosiannie

Is there anyone here tell me how to create php auto suggest box from database using mojave linux?Thanks

Member Avatar for phoenix_2000
0
117
Member Avatar for davy_yg

Hi what's the code to keep the login safe. I mean after people login by entering username and password, I do not want other user to be able to access my web admin just by entering the url without login first. Notes the admin folder has many pages too which …

Member Avatar for Zahinize
0
182
Member Avatar for Drugsxxx

I dint know how to title this but... I`ll start from begining, i have a .txt file loking like this: 2011-11-14 15:39:51,Polnoc 2011-10-13 15:41:54,Polnocny-Wschod 2011-10-14 15:43:04,Wschod Then there is a code that shows data from last mont,week,day looking like this: [CODE]$lines = file('Kier.txt'); $monthlist = ""; $weeklist = ""; $daylist …

Member Avatar for diafol
0
128
Member Avatar for 140fulton

I'm seeing a problem where some $_SESSION variables are passed from one page to another, and others are not. The session is setup on login, with user identity held in $_SESSION["id"]. At a later date, I want to shift the identity to another, subordinate account. The change is handled by …

Member Avatar for diafol
0
314
Member Avatar for gunnerone

Hi, How would i have a text box where each new line is a bullet list. [CODE]<ul> <li>method line 1</li> <li>method line 2</li> </ul>[/CODE] Can i extract the HTML code tags with the text and insert it into a database with the code and text? So it can be accessed …

Member Avatar for blocblue
0
1K
Member Avatar for lewisbraid

Basically I've got a working drop-down menu php/mysql script running using the internet as my guide. But one thing I don't really understand is the significance of the period in [CODE]$options.[/CODE] [CODE]$sql = "SELECT DISTINCT artist FROM hits ORDER BY artist"; $result = mysql_query($sql); while ($row=mysql_fetch_array($result)) { $artist=$row["artist"]; $options.="<option>$artist</option>"; } …

Member Avatar for mschroeder
0
132
Member Avatar for tanu963

How to upload images, audio files, video files using single form and store their names in appropriate tables? database [CODE] CREATE TABLE IF NOT EXISTS `photos` ( `id` bigint(12) NOT NULL AUTO_INCREMENT, `name` varchar(250) NOT NULL, PRIMARY KEY (`id`) ) CREATE TABLE IF NOT EXISTS `audios` ( `id` bigint(12) NOT …

Member Avatar for diafol
0
178
Member Avatar for gunnerone

Hi, I have got 2 arrays; one hold ingredient and the other hold measurement. how would i go through and list the ingredient with its corresponding measurement in the other array until i have listed all the ingredients for the recipe. here is the code i currently have. I have …

Member Avatar for cereal
0
292
Member Avatar for rohit.k2903

Here is my code. It is perfectly working on Local but not server. Need any library to work on server. [CODE] <?php //include "../dbconnect/cnn_mysql.php"; //mysql_query("insert into admin (loginid, pass) values ('superuser', '".md5('mypassword123')."')"); if($_POST) { include "../dbconnect/cnn_mysql.php"; //$userid=mysql_real_escape_string($_POST["userid"]); //$pass=mysql_real_escape_string($_POST["pass"]); $userid=secure_form_data($_POST["userid"]); $pass=md5(secure_form_data($_POST["pass"])); $result=mysql_query("select * from admin where loginid='$userid'"); if($result && mysql_num_rows($result)>0) { …

Member Avatar for diafol
0
125
Member Avatar for theophalus

My joomla site is showing this error on line 205 and 219. [CODE]<?php /** * @version $Id: debug.php 14401 2010-01-26 14:10:00Z louis $ * @package Joomla * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This …

Member Avatar for cereal
0
286
Member Avatar for 9tontruck

Hi, I have inserted a facebook like button into my page. And I want to edit content that appears on the clicker's facebook wall. How can I modify it?

Member Avatar for codemonkey88
0
103
Member Avatar for michael123

What's the difference between "include", "include_once", "require", "require_once"? thanks.

Member Avatar for GuggiTanvi
-2
525
Member Avatar for gunnerone

Hi I have a login 'box' up in the top right hand corner of my web page. When someone logs in i want this to disappear and show a message and logout link. I have got this so far, but i cant seem to get it to work. Login form …

Member Avatar for mohamedasif18
0
206
Member Avatar for mrhankey

hi, i was wondering if any you guys knew of a simple way to sync from an access database offline to a mysql online database? currently my system is running on php/mysql. there is another company who have a system that uses an access database behind it. i can access …

Member Avatar for cereal
0
183
Member Avatar for gunnerone

Hi I am trying to populate a text area based on a value submitted through a drop down box. Below is the code i have written to populate that text area. But i cannot seem to get it to work. All it shows is blank. [CODE] <?php if (!empty($_SESSION['LoggedIn']) && …

Member Avatar for gunnerone
0
326
Member Avatar for ebanbury

Hi I have a function which either updates or inserts a record into the database table, depending on what the user selects. However I need to manually refresh the page after the action has been done, as the status is not updating on the page. How can I force a …

Member Avatar for niranga
0
244
Member Avatar for andarivaadu1

Hi everyone, If there are multiple hyperlinks in a webpage, How do I recognize them using java script. Also How do I store the content of the hyperlink in a variable , so that the data stored in the variable will be used the query a database and populate results …

Member Avatar for Airshow
0
139

The End.