38,019 Topics

Member Avatar for
Member Avatar for Stephano

Iam doing a website in wordpress and i want to send registration data of frontend users to my database. Please assit.

Member Avatar for Gideon_1
-2
325
Member Avatar for blueguy777

Executing Code upto insert users: <?php require('session.php'); require('encrypt.php'); require('mail.php'); $username = $_POST['user_name']; $password = rand(10000, 99999); $name = $_POST['name']; $password = encrypt($password, 'ganesh'); $email = $_POST['email']; $terms = $_POST['terms']; $address = $_POST['address']; $mobile = $_POST['mobile']; $dob = $_POST['birth_year'] . '-' . $_POST['birth_month'] . '-' . $_POST['birth_day']; $ip = $_SERVER['REMOTE_ADDR']; $url …

Member Avatar for lps
0
235
Member Avatar for adishardis

Hi, I have a string that can look a little different from time to time. String Example 1: ((823584X80X998.NAOK == "1")) String Example 2: ((823584X80X1001.NAOK == "1" or 823584X80X1001.NAOK == "2" or 823584X80X1001.NAOK == "3")) And I have this array with matching key (i've shortened the array for readability) ( …

Member Avatar for adishardis
0
2K
Member Avatar for showman13

Good Morning All, I have a question that I touched on a couple years ago, but then determined that I didn't need, so never followed up on it. Now I need it... (of course) I've searched on the subject of creating PDFs in PHP, but haven't been able to locate …

Member Avatar for rtrethewey
0
575
Member Avatar for AntonyRayan

Hi, For a dropdown , I display from one table, While Editing How to show the selected value in that dropdown. <select name="dropdown"> <option value="">--Select--</option> <?php $a=mysql_query("Select * from student whre status='0'")or die(mysql_error()); $b=mysql_num_rows($a); if($b >0) { while($row=mysql_fetch_array($a)) { ?> <option value="<?php echo $row['st_id']?>"><?php echo $row['name'] ?></option> <?php } } …

Member Avatar for Gideon_1
0
13K
Member Avatar for davBro

I am having trouble getting my file upload to work. Up to now it has been working good, I recently had to upload a backup version of my website to the online server, but now the upload script does not work and, I suspect it may be a file upload …

Member Avatar for davBro
0
354
Member Avatar for Lindsey_2

I'm relatively new to mediawiki and has just started last week. Anyone can point me to the correct direction of getting the top article (based on number of likes) in mediawiki? I've already implemented the fblikebutton extension on every article and managed to retrieve the number of likes for each …

0
142
Member Avatar for davidjennings

Hi I am trying to redirect a url in the htaccess file. RewriteEngineOn RewriteRule ^wakins.co.uk$ http://www.watkins.co.uk [R=301,L] and I have also tried this RewriteEngineOn RewriteRule ^/wakins.co.uk$ http://www.watkins.co.uk [R=301,L] Thanks in advance D

Member Avatar for davidjennings
0
291
Member Avatar for satti

Dear iam new in PHP , i have downloaded a free code template which has a <div class="container"> with heading <h2>Featured Projects</h2> it show the featured pictures i want the same as Featured properties below it ,but when i copy the code it dont work please help me out how …

Member Avatar for gentlemedia
0
351
Member Avatar for ramsiva

I have DB s_id sn_id sec_id 1 1 1,2,3 Based on sn_id i want to display sec_id and sec_name. I want to convert into json array format like this [{"sec_id":"1","sec_name":"A"}, {"sec_id":"2","sec_name":"B"},{"sec_id":"3","sec_name":"C"}] Any body helo to get json array format

Member Avatar for pritaeas
0
72
Member Avatar for vizz

I have function to generate activation key when user creates new account. How to check generated key is not generated in the past for other user **Database fields** username password email activationcode **Function** function random_string($length) { $key = ''; $keys = array_merge(range(0, 9),range('A', 'Z'), range(0, 9), range('a', 'z')); for ($i …

Member Avatar for vizz
0
397
Member Avatar for jay.barnes

Hey, all I've got this script that runs a simple 'select' query: function set_selectAssoc($usernumber) { $this->execute = $this->connection->query("SELECT * FROM `link-UsersToGroups` WHERE userID = ".$usernumber); $this->num_rows = $this->execute->num_rows; $this->results = $this->execute->fetch_assoc(); if ($this->num_rows == 0) { $this->response_code = 2; $this->response_msg .= "You don't currently seem to belong to any groups …

Member Avatar for jay.barnes
0
201
Member Avatar for Niloofar24

Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; }elseif ($user_choice == "font_style_3"){ $font = 'thiredfont'; }elseif ($user_choice == "font_style_4"){ $font = 'forthfont'; } ?> <html> <head> <style> h1 …

Member Avatar for Niloofar24
0
428
Member Avatar for Stefce

Why i get this error `Notice: Trying to get property of non-object in C:\xampp\htdocs\asdf\navigation.php on line 214` i have this code: <?php if(isset($_POST['sendTicket'])) { $ticketID = $_POST['ticketID']; $ticketReceiver = $_POST['ticketReceiver']; $ticket_id = getUserData('kladilnica', 'ticket_id'); $sender = getUserData('users', 'Username'); if(!empty($ticketID) && !empty($ticketReceiver)) { $sql = "INSERT INTO ticket (senderName, receiverName, Date, …

Member Avatar for Stefce
0
547
Member Avatar for murugami eric

am using ci 2.1.4 to create a simple crud application being new to ci and am having this error:'Unable to load the requested class: validation' here is my controller code: class Person extends CI_Controller{ //num of records per page private $limit = 10; public function __construct(){ parent::__construct(); //load library $this->load->library(array('table','validation')); …

Member Avatar for tapfumamanhanga
0
3K
Member Avatar for ayesha789

Dear All I have developed a lease management System. I have stored 4000+ Lease agreements and purchase orders. Folders Structure Main Folder : LAPO Subfolders: North , Center , South Subfolders : 1245 , 9867 like these (numeric) In each numeric folder there are 2 files LA.pdf and PO.Pdf How …

Member Avatar for cereal
0
3K
Member Avatar for blueguy777

how to store json output into seperate PHP variables? {"msg":"success","msg_text":{"9912345678":"N"}}

Member Avatar for diafol
0
271
Member Avatar for bnmng

Hi Everyone, I need to check if a date is valid but not relative. Here's what I came up with: if ( strtotime ( $date ) && strtotime ( $date ) == strtotime ( $date, 1 ) ) { $its_all_good = true; } If that's helpful, then I'm glad I …

Member Avatar for diafol
0
336
Member Avatar for basketmen

Hi guys, below are simple replacing script a word in to another word, or censorship $word = array( 'google', 'yahoo' ); $link = array( 'go*gle', 'yah*o' ); $this->post['message'] = str_ireplace($word, $link, $this->post['message']); the problem its currently also replacing another words like googler yahoos into go*gler yah*os please help how to …

Member Avatar for almostbob
0
198
Member Avatar for ramsiva

I am importing Excel into Data Base. I enter in Excel is 9-Oct-2006.I want to get the excel to php file but i am not getting. I am trying this code $date = date('m-d-Y',strtotime($dob)); echo $date; but getting o/p is 01-01-1970 any body help me to get date formate

Member Avatar for David_50
0
133
Member Avatar for janicemurby

I i get the following error in a script im using has anyone got any ideas what it could be ty jan x Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/letsswin/public_html/template_status.php on line 47 Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/letsswin/public_html/template_status.php …

Member Avatar for janicemurby
0
235
Member Avatar for James_43

Hi there, My PHP is appalling/non-existant. I have a HTML website with a PHP header that I've 'included' on all the pages. The problem is that this header colours red whichever page we are currently on, defined under the CSS as being 'active'. Therefore, from what I see, I need …

Member Avatar for James_43
0
167
Member Avatar for James_43

Hi there, I have a webpage in HTML, strong-links.org, and am tired of having to make changes to every single page when I update the header or footer, and someone suggested I can use PHP to reference the template within the HTML pages. As a test, I have test.strong-links.org/index2.html live …

Member Avatar for James_43
0
229
Member Avatar for Stefce

Hello i cant understand how i can send database info to user for example i want to send my note which contain (date, text, title and other info) and this info is under ID for ex. (123456) please someone explain me how i can do that or help me thank …

Member Avatar for diafol
0
328
Member Avatar for Trabelsi

hello I have an application run in php with mysql database that shows me a list of people in different services it occupies. I would like to make a menu that is based on the clicked service shows me the list of persons who holds this service and each new …

Member Avatar for Trabelsi
0
266
Member Avatar for solomon_13000

I notice that my PHP code contain special numbers (e.g. _5b9652a96785) representing variables: <?php include_once('../include/config.php');include_once('../class/db.php');if (isset($_POST["points"])) {$_5420457f97cc = json_decode(stripslashes($_POST["points"]), true);$_a095ff903bcc = trim($_5420457f97cc["itemName"]);$_58f60403479c = trim($_5420457f97cc["itemCost"]);$_bb2bde3e818f = trim($_5420457f97cc["itemPrice"]);$_5b9652a96785 = $_5420457f97cc["itemUnit"];$_03d9de238649 = $_5420457f97cc["itemCategory"];$_22f632d073d5 = $_5420457f97cc["ingredientArray"];$_83647d4cbbd0 = new dbPdoMysql;$_6445f036fed3 = $_83647d4cbbd0->dbInsertItem($_a095ff903bcc,$_5b9652a96785,$_03d9de238649,$_58f60403479c,$_bb2bde3e818f, $_22f632d073d5);if ($_6445f036fed3 == true){echo "true";}else{echo "false";}}else{}?> What does the special numbers mean and …

Member Avatar for pritaeas
0
196
Member Avatar for Niloofar24

Hello. When i open a file in my linux localhost with the command "gedit file.php" and then put a part of code in it, then i can't save the file. the save icon above the gedit is deactivated. What can i do?

Member Avatar for Swati1486
0
362
Member Avatar for AntonyRayan

Hi, I need a code for inserting, viewing, editing, deleting in a single registration form in simple way.

Member Avatar for AntonyRayan
-1
236
Member Avatar for SimonIoa

Hello i am using WAMP server and the audio player doesnt show up This is the code <audio controls preload="metadata"> <p><label>Error: Your browser does not support the audio element. Install the latest version. If you are using Safari you must install Quicktime.</label></p> <source src="<?php echo $base_url.'uploads/audios/143154310611.mp3';?>" type="audio/mp3" /> <source src="<?php …

Member Avatar for gentlemedia
0
400
Member Avatar for castajiz_2

Hi there, I' ve got some data in my database and I' m using PHP to fetch it and would like to transport it to client side via JSON. The problem that I'm facing is the folowing: I have a timeline which was built in html and css and I …

Member Avatar for TexWiller
0
309

The End.