39,393 Topics

Member Avatar for
Member Avatar for mohan@nano

i have a checkbox to show the below contents. how can i store the value of checkbox whether checkbox is checked or not and i have to get the value when checked any one suggest me am beginner to php

Member Avatar for mohan@nano
0
93
Member Avatar for carlosvz21

Hi guys, sorry if i'm posting this and it is already answered in another discussion. I am creating a website for a sales process using phpstorm, I'm new with all this so that is why I'm so confused. Actually i have this form: <form name="frm" id="frm" action="<?PHP echo $_SERVER["PHP_SELF"]; ?>" …

Member Avatar for Fernando_4
0
230
Member Avatar for fiey.hamzah

can anyone help to check my coding? what i need is to enter the groupcode and when i click search,it will retrieve all the modules. but only one module that appear instead of all. <?php $server="localhost"; $username="root"; $password=""; $connect_mysql=mysql_connect($server,$username,$password) or die ("Connection Failed!"); $mysql_db=mysql_select_db("reportdatabase",$connect_mysql) or die ("Could not Connect to …

Member Avatar for Szabi Zsoldos
0
289
Member Avatar for ravi142

My Problem is How can i get(for display) image in "Chat.php" **e.g** i have get id. $new_id = $_POST['id'] Image path src got perfect My Jquery ajax function his as under function requestChat(name,id) { var img_src = $('#el').attr('src'); //path got perfect jQuery.ajax({ type: "POST", url: "chat.php", data: "name="+name+"&id="+id+"&img_src="+img_src, success: function(html) …

0
108
Member Avatar for oskarkxyz

Hello. I am user of CPAgrip and they gave us postback so I wanted to use it. Everytime when my server gets postback I want my user who is reponsible for it get points. Let's start. Variables sent in postback: http://scr.hu/1htz/yo1co **Example from affilate network:** <?php if($_POST['password'] != 'secretpassword'){ echo …

0
203
Member Avatar for Nilesh_2

Hello there, I want to introduce message system in my website. I've created table fields as follows: id(int), receiver_id, msg_id, msg_sub, msg_desc, msg_time Below is my html form in which registered users will be displayed in dropdown list: <form class="form-horizontal" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <legend>Send Message</legend> Recipient:<select name="receiver_id" data-rel="chosen" …

Member Avatar for nadiam
0
446
Member Avatar for Anubhav_1

Hello, i just coded for login script now i want to add "sha1" to my code due to security reason but it's showing an invalid login error i don't know the reason but when i use this withouht "sha1" it's working fine but i want to secure password into database …

Member Avatar for Bob Hensley
0
226
Member Avatar for arupjs

Localhost is not running even if it is installed successfully. Please help me. Urgent!!!!

Member Avatar for almostbob
-1
78
Member Avatar for Nollyvenon

Please can someone help me optmize this query, it is slow and brings the same data for the debtage column SELECT customer.custid,customer.compname,customer.phone,customer.depot,acctofficer.acctfullname AS acctoff, STR_TO_DATE(mastorders.lastsuppdate,'%d-%m-%Y') AS purchdate, STR_TO_DATE(transactions.timestamp,'%Y-%m-%d') AS debtage, format( customer.balance, 2) AS balance, customer.balance AS balance1 FROM customer,mastorders,acctofficer,transactions WHERE customer.custid=mastorders.custid and acctofficer.acctoffid=customer.acctoff AND customer.depot='$depot' GROUP by customer.id ASC. …

Member Avatar for Nollyvenon
0
212
Member Avatar for hiiiiii@

how to use datepicker jquery what are the essentials think i should download to use datepicker

Member Avatar for Szabi Zsoldos
0
84
Member Avatar for websponge

I want to have a supplier table, with ID, NAME, CONTACT, PHONE, etc, In my main table, a record can have more than one of these suppliers, what is the best way to select multiple rows from the supplier table if they relate to a record in the main table? …

Member Avatar for websponge
0
224
Member Avatar for Maideen

Hi I am new, Pls help me the following issue. When click the update button, ID should be to another page to process the update function. Below is my entire code index.php <?php include_once '../../inc/config.inc.php'; $sql="SELECT * FROM demo order by id"; try { $result = mysqli_query($con,$sql); include 'view.html.php'; } …

Member Avatar for Maideen
0
225
Member Avatar for hiiiiii@

hi im doing a project on online table reseration. im using a table "reservation" to store the table details of reserved table +--------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------+-------------+------+-----+---------+----------------+ | reserve_id | int(15) | NO | PRI | NULL | auto_increment | …

Member Avatar for hiiiiii@
0
210
Member Avatar for Fernando_4

With the following bit of code I'm trying to get the key's of each sub-array that I will need at this part of the script. It's working so I'm not too worried about this, I just think there should be a pre-built function to do the same thing. foreach($myArray['ico'] as …

Member Avatar for Fernando_4
0
265
Member Avatar for sigitas.darguzas

Hi. all i have small problem Not verified =0 verified=1 $balance = $match_value['balance']; $verified = $match_value['verified']; <tr><td> <b> Balance: </b> </td> <td> if ($verified == 1) { $verified = "$balance"; } else { <a class="btn btn-danger" href="verified.php" > not verified </a> } </td></tr>

Member Avatar for sigitas.darguzas
0
133
Member Avatar for vanitha.A
Member Avatar for urtrivedi
0
151
Member Avatar for adebayo.sas

Hi, I am trying to insert data into 3 tables using mysql.. At first, I was able to insert in the first table (staffinfo), after coding for the second table insert (empinfo), It inserted into second table without inserting in first table AND finally it echoes 1 record added Successfully …

Member Avatar for GliderPilot
0
2K
Member Avatar for Szabi Zsoldos

Raffle function to generate unique numbers for each player, related to the same table with a recursive aproach. I had to do a simple raffle system for a contest that I was working on and tried many things and the most simple and the most effective one to generate unique …

Member Avatar for diafol
0
901
Member Avatar for baig772

**Problem** I need an jax pagination in YII, The problems are * its not showing the required results for the first time. ie. it is showing the complete result * When clicked on more, it again shows the complete result below that section as it is **What Needed** * i …

0
160
Member Avatar for roy--

Hello, I have looked everywhere on the web for a solution to this problem. I am trying to store arabic characters into mysql via an html form. i have set the meta charset to utf-8 and have tried mysql_query('set names 'utf=8'") but still i get garbled characters in my table: …

Member Avatar for MisterArabic
0
3K
Member Avatar for ultmt.punisher

## Theme Options Settings ## I have problem with my theme options settings saving. My settings is to saving to permanently , its just only save when you stay on the theme options page after saving the settings. But when I go to any other page or reload the current …

Member Avatar for Ajay Gokhale
0
822
Member Avatar for ravi142

I have build simple chat box. One Text box -> Enter msg One button -> Submit One Textarea -> show message which enter in "Text Box" How could i do using jquery + ajax.? Give me suggestion. Thank you

Member Avatar for diafol
0
70
Member Avatar for Viped

Hi all, I need to do my own version of phpMyAdmin for my php class. I encountered problem when trying modify existing data on database. I don't know what would be best way to modify whole table's data when I don't know exact amount of rows or columns. At this …

Member Avatar for diafol
0
324
Member Avatar for Harry_5

Hi there, I have a problam with my code, and i cant fix it, please help. The problam is with the mysql_num_rows on line 4 ; Here is the code: $sql_query = mysql_query("SELECT * FROM upload WHERE MATCH(username,text) AGAINST('$search_term')"); //additional check. Insurance method to re-search the database again in case …

Member Avatar for diafol
0
1K
Member Avatar for Priti_P

Hi, How to calculate hours in PHP in when time is coming in Am - PM format ? for example, 1] start time: 9AM end time: 12PM 2] start time: 9PM end time: 1AM 3] start time: 12.30PM end time: 1.25PM any formula please

Member Avatar for GliderPilot
0
157
Member Avatar for azegurb

Hi all, I have one problem on selecting larga data from mysql. I have inserted large data to mysql, and all data was inserted. I see it from phpmyadmin. but when i select that record from database it cannot display whole data.it doesnt show the end part of the data. …

Member Avatar for GliderPilot
0
185
Member Avatar for dukumanis

**reg.php** <?php require_once('Connections/iventori.php'); ?> <?php $currentPage = $_SERVER["PHP_SELF"]; //$tarikh=gmdate("j F y",time()+(28800)); $maxRows_Recordset2 = 10; $pageNum_Recordset2 = 0; if (isset($_GET['pageNum_Recordset2'])) { $pageNum_Recordset2 = $_GET['pageNum_Recordset2']; } $startRow_Recordset2 = $pageNum_Recordset2 * $maxRows_Recordset2; mysql_select_db($database_pinjaman, $pinjaman); $query_Recordset2 = "SELECT no_inventori,model FROM inventori WHERE peralatan='laptop'"; $query_limit_Recordset2 = sprintf("%s LIMIT %d, %d", $query_Recordset2, $startRow_Recordset2, $maxRows_Recordset2); $Recordset2 = …

Member Avatar for dukumanis
0
363
Member Avatar for Jay_5

Does anyone know how to query a dropdown list to a website from SQL server 2012 in WebMatrix Using PHP? PLEASE HELP!

Member Avatar for miraj.jiwani
0
160
Member Avatar for ravi142

I am making a cms for a booking app and the admin will be able to see the number of bookings at any moment. How can I do it so that the above updates continuously with ajax...like facebook newsfeed for example. So far the only ajax I have made is …

Member Avatar for Fernando_4
0
195
Member Avatar for sussy123

PHP, jQuery and definitely not my favourite. My query is this; I purchased a social network script and there are still modifications I need to do that I am stuck with. I would like the users to have the option to upload a photo if they want to, with any …

Member Avatar for sussy123
0
337

The End.