39,316 Topics

Member Avatar for
Member Avatar for Aeonix

I think this is called "foreign key" and "local key" ? I have a table `users`, these users have `rank`. It's an `int`. There is a table named `rank`, this table has field where hexadecimal string is placed `FF0000`. Is there a way to `SELECT * FROM users` and `SELECT …

Member Avatar for Aeonix
0
451
Member Avatar for TheFearful

Hey everyone, I have a question about a database design that I have right now. The template I was given from someone is the first attached that you will see. I looked at it and figured that the database design of that is not the best, so I decided to …

Member Avatar for TheFearful
0
338
Member Avatar for mytyms

TAXONOMY MENU SUB CATEGORY CREATION: Problem: I'm trying to create and display menus in the below format using taxonomy(category,subcategory).I have also created Views to fetch the taxonomy values. (See attached taxonomy.png) Menu1 -- > Menu2 ---> Menu3 Menu4 Menu5 Menu 6 Now when executed, I'm not getting the correct format …

0
65
Member Avatar for James_43

Hi all, Submitting forms to PHP is easy with Ajax. But what if I wanted to design my website to allow for JS-free web browsers? If I call a PHP file with Ajax, I might get an error message in return to dynamically add to the page, but if I …

Member Avatar for jacks009
0
232
Member Avatar for AntonyRayan

Hi, I have a page for sending SMS by selecting anyone organization, By selecting organization, it will calculate how many customers are there to send SMS, It will display the SMS Count along with all managers names using JQUERY AJAX. For counting this value,it takes so much time in online, …

Member Avatar for jacks009
0
198
Member Avatar for phphp

Sir, please help me to locate the error, if user not found or wrong user name password etc then all codes work fine but when I enter correct user name and password then no result. <?php session_start(); require_once("includes/connect.php"); require_once("includes/functions.php"); if(isset($_POST['login'])) { $muser=clean($_POST['username']); $mpass=clean($_POST['password']); if(empty($muser)) { echo ('<script type="text/javascript">alert("User name must …

Member Avatar for PsychicTide
0
343
Member Avatar for ramsiva

I have multidimensional array that include department and category. Based on the selecting department and category, i need to search names. below is my code $shop = array( array( "emp_name" => "ramu", "department_name" => "cse", "Number" => 15 ), array( "emp_name" => "ramesh", "department_name" => "eee", "Number" => "56", ), …

Member Avatar for radow
0
708
Member Avatar for tapuwa2002

Hi guys I was hoping you could help I would like to add 10000 records in mysql db.All once with after running a single php script. in one of the fields should generate 10000 rand generated numbers. Any suggests would really help. I was thinking of a for loop. [CODE] …

Member Avatar for cereal
0
3K
Member Avatar for ramsiva

any body help me to convert php multi dimensional array to php multi dimensional array format $data = array( array( "emp_name" => "ramu", "department_name" => "cse", "Number" => 15 ), array( "emp_name" => "ramesh", "department_name" => "eee", "Number" => "56", ), array( "emp_name" => "ravi", "department_name" => "it", "Number" => …

Member Avatar for PsychicTide
0
438
Member Avatar for TheFearful

Hey everyone, I have a question. I have a web app where you have a table that will either update, delete, or add a user. The update works great but the delete is weird. It deletes just fine, but I ask for a confirmation first before the action is completed. …

Member Avatar for TheFearful
0
384
Member Avatar for phphp

Dear Experts, I have following codes while($res = mysqli_fetch_array($result)) { echo "<tr onMouseOver=this.className='highlight' onMouseOut=this.className='normal'>"; echo "<td align='center' width='10%' >".$res['code']."</td>"; echo "<td align='left' width='50%' >".$res['products']."</td>"; echo "<td align='center' width='20%'>".$res['weight']."</td>"; echo "<td align='center' width='20%' ><a href=\"master_u.php?id=$res[id]\"><img src=images/pencil.png alt=Edit title=Edit></a> <a href=\"delete.php?id=$res[id]\" onClick=\"return confirm('Are you sure you want to delete?')\"><img src=images/delete16.png alt=Delete title=Delete></a></td></tr>"; …

Member Avatar for hericles
0
110
Member Avatar for Amaina

I know this is very basic but i am not able to get the fuction return a string. Instead it is returning the value 1. Below is the code: <?php function getUserRole($username, $roleid){ include "data.php"; $con=dbConnect(); $query="select * from user inner join userrole on user.id = userrole.userid inner join role …

Member Avatar for elisajames
0
281
Member Avatar for Teleka2099

i have a wcf service running, the problem am facing is how do i use the wcf to connect to the client and generate reports. if am no a wrong path please help thank

0
204
Member Avatar for jsj1411

My code here suppose to grab list of injection string from table:* injection_text*, column: *injection_code* and inject it at the tail of the URL's crawled by my program, the URL's crawled are stored table: *pages_crawl*. my program suppose to display the result of the injection. the purpose of this program …

Member Avatar for hielo
0
459
Member Avatar for TheFearful

Hey everyone, I have a question. I created a page that pop-ups when a user clicks a link and that page displays a table of the information that it pulls from the database that I have created. I want to be able to have a user click an update button …

Member Avatar for TheFearful
0
357
Member Avatar for AntonyRayan

Hi, I have many records in my table minimum 3000k records. When I select SMS Page , it has two ajax pages, for calculation, So, the SMS Page is taking so much time to complete the task. I want to reduce the time of this page without affecting anywhere. How …

Member Avatar for radow
0
185
Member Avatar for anupamjamatia

Hi I am trying to do the same thing. I would like to save the Facebook user timeline details OR messages in MySQL database. Timeline details are visible in screen total posts are like this http://screenshot.co/#!/2dcbee03ff , if I want to see the 'messages' only I can see in the …

Member Avatar for radow
0
640
Member Avatar for nevek

Hi I have a php application which runs on an IIS Server and I want to create/append a file on an other server or PC Can I do it if I use fopen and I create a folder on that other server or PC which I grant write access to …

Member Avatar for rubberman
0
262
Member Avatar for phphp

Sir I have follwing data var1= '5,487,256.36 ' var2= '245,868.48 ' How to get this sum with Js or with any other method. Basically I want to use it with PHP. var3= '5,733,124.84' Please

Member Avatar for HITMANOF44th
0
118
Member Avatar for TheFearful

Hey everyone, I am trying to use JQuery to help me load a page on my page so that the user does not have to refresh or move to a new page. So far, I have the code so that the next page's contents will display, but the update button …

Member Avatar for hielo
0
538
Member Avatar for toxicandy

I am trying to create a table in html/php that is dynamic sized but allows users to edit rows of the table, I have 99% of this done and the last piece is to send edited values VIA ajax to an edit page where I update to the database and …

Member Avatar for hielo
0
2K
Member Avatar for jpknoob

Hi, i recently created a bit of script to pull images from a database and display them horizontally using a scroll bar. i have now decided to try and integrate it with jquery to give it a bit of life. At first, i use the jquery plugin to use 5 …

Member Avatar for Mike_33
0
5K
Member Avatar for Ivan_10

I need to prevent this urls: index.php/test/ must be redirect to index.php index.php/test/test/ must be redirect to index.php I need this to be automatically, because i have multiple pages (index.php, team.php and etc...) Without bring the names of the pages in htaccess Important: i have this urls: index.php?page=5 (this need's …

Member Avatar for hielo
0
142
Member Avatar for hrushi9

Fulllscreen div misbehave on window resize. [Demo](https://jsfiddle.net/y2d7dbod/) **fullpage** is main container having fullscreen height & width. **section** is inner div of full height & width. When window is resized after scrolling to any div it leaves some space from top. How to make it responsive & scrolling fullscreen page? (section …

Member Avatar for ewai1
-1
699
Member Avatar for breakzzzz20

form: <form> <table> <tr> <th>Subject</th> <th>Description</th> <th>Final Grade</th> <th>Remarks</th> </tr> <!-- You can loop this one, depends on the subjects. Subject must not be encoded. Baka lalagyan ng maling subject. I just base it to your design so naging ganito. --> <tr> <td><input type="text" name="grades[][subject]" id="grades[][subject]" value="" /></td> <td><input type="text" …

Member Avatar for cereal
0
9K
Member Avatar for amith_ami

hi all, pls help... this is my code from where i can select multiple values and post... but it is not displaying the selected values in multiple dropdownlist... how can i solve this???? <?php $loc_con1 = array(1=>'ALL','Andaman and Nicobar Islands','Andhra Pradesh', 'Arunachal Pradesh','Assam', 'Bihar','Chandigarh','Chhattisgarh','Dadra and Nagar Haveli','Daman and Diu','Delhi','Goa','Gujarat','Himachal Pradesh','Jammu …

Member Avatar for rayearth_1
0
10K
Member Avatar for Aeonix

Link is: `/example.php?id=1`, no space after `1`. if (isset($_GET["id"])) { $id = $_GET["id"]; echo !is_int($_GET["id"]); // yields "1" (true) !!! } Ask me whatever you need. I check to make sure that my system didn't go crazy `!is_int(1)` yields false. So... I don't know... Maybe `$_GET` passes `"1"` instead of …

Member Avatar for cereal
0
270
Member Avatar for eno_1
Member Avatar for Aeonix

Connection is successful. No typo's were made (look below). If read it from top to bottom, some of the tests that I show you will seem stupid. Until you look at the end (still keep reading from top to bottom) and find out that it's one of the indicators. SQL …

Member Avatar for makaijohn9
0
427
Member Avatar for naithsleeray

I have a database in mysql which contains of four tables (Student, Units, Offering and Enrols_in) and i want to create an enrolment page where students can enrol in units which will be offered in each semester. Student names will be entered in the database and they will use their …

Member Avatar for Mr.M
0
2K

The End.