39,393 Topics

Member Avatar for
Member Avatar for Naga14

Hi, Need to Optimize the below Query. In database around 5,00,000 Records are there. Below query is taking around 1 min. to 1.30 min Execution Time. Need to optimize the query so that the result will be fetch in 5 to 10 Seconds. We've used full text indexing for Website …

Member Avatar for masterjiraya
0
163
Member Avatar for frankie.bailey.14

I am tring to have a user click the submit buttion and the status of that row/room will become closed and the user can reserve more than 1 room at a time <html> <head> </head> <body> <?php //include database configuration include 'config_open_db.php'; //selecting records $sql="select RoomNumber, Type, Cost, Status from …

Member Avatar for masterjiraya
0
424
Member Avatar for sumon_ahona

<?php $cardno = $_POST['cardno']; $c_status = $_POST['c_status']; $V_idno = $_POST['V_idno']; $c_name = $_POST['c_name']; $m_name = $_POST['m_name']; $f_name = $_POST['f_name']; $Phone = $_POST['Phone']; $email = $_POST['email']; $profession = $_POST['profession']; $age = $_POST['age']; $sex = $_POST['sex']; $m_status = $_POST['m_status']; $address = $_POST['address']; $District = $_POST['District']; if(!$con) { die ('could not connect'.mysql_error()); } …

Member Avatar for broj1
0
184
Member Avatar for zglows

After this piece of PHP code is added to my template (Wordpress) my server goes bananas. (I see lots of load peaks, it becomes unresponsive and the site won't load until I reboot the server.) The code just displays random posts from the database: [CODE] <?php $random_query = new WP_Query('posts_per_page=4&orderby=rand'); …

Member Avatar for gabrielcastillo
0
229
Member Avatar for Webville312

Hello; I am working on a project and in order to save resources, my supervisor says I should pass variables in an array. Some of which were working perfectly. However the fetching of the records from the database gives me the error below; Warning: mysql_query() expects parameter 2 to be …

Member Avatar for Webville312
0
350
Member Avatar for otengkwaku

my question is, how do i use python to check a web site to see if it has an rss feed link and return that link

Member Avatar for slate
0
140
Member Avatar for OsaMasw

hey there guys I need a PHP class to fetch news from different sites, I use rssphp.net class and its great if I need the **title** of article and the **short description**, but what I need is the full story somthing like ?type=rss2 in vBulletin forums the main output of …

Member Avatar for OsaMasw
0
303
Member Avatar for lwschjang

To begin with thank everybody for any help. I am trying to convert an html site into a Joomla site for a client, but I am having trouble converting the homepage slideshow into a working Joomla module. As far as I can see I have everything that I need, but …

Member Avatar for lwschjang
0
300
Member Avatar for garyrichard

I am using the below code ( PHP - Ajax ) ..It works fine on firefox,chrome, Bu not works on IE... Please help me as i am new to PHP-AJAX Thanks in Advance =============== var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else …

Member Avatar for LastMitch
0
157
Member Avatar for firelife12

Hey, I have been trying to create a chat with php, I keep ending up with a lot of problems, such as no refreshing, not allowing users to post. Can someone please help me create a chat? thanks!

Member Avatar for masterjiraya
0
225
Member Avatar for andika.kurniawan.121
Member Avatar for thebhatt

I am developing a social networking site.. and implementing chat function. it worked perfectly when tested outside, but when i integrated with my site page, it causes a css class disable. i am putting Code: <script src="jquery.js"> </script> link at end of page, b4 < /body tag. following is the …

Member Avatar for masterjiraya
0
164
Member Avatar for GordonUK

Hi everyone, I am developing a website where users can download songs from a particular page and just wanted to know if anyone knew any existing scripts that could be used for the downloading songs feature on this page? Many thanks, Gordon

Member Avatar for masterjiraya
0
115
Member Avatar for kyriacos1986

In a local database: I have a field content in a table where I store numbers and symbols in the following format {1,2,1,3,1,4,1,1,1} ∪ {1,2,198,776,455,666} When I ran the query in my php code SELECT * FROM table and echo it in the web browser only {1 is displayed I …

Member Avatar for masterjiraya
0
186
Member Avatar for yap.junjie.7

Help me look at the codes below. It has T_IF error and T_WHILE error. The errors are on line 7 and line 18. I hope anyone can teach me to repair it and the code function is still same. <?php require_once("db.php"); session_start() if (!isset($_SESSION['cart'])) { <---T_IF error $_SESSION['cart'] = array(); …

Member Avatar for TonyG_cyprus
0
395
Member Avatar for FreePuppy

I am working on a website and completely stuck on a paginator/editor... works perfect outside my framework... anyways... I decided to use Iframes I need to pass a var from main page to an iframe region on same page. When user is logged into wordpress: global $current_user; get_currentuserinfo(); I need …

Member Avatar for LastMitch
0
3K
Member Avatar for Rizi004

Hello everone, I have a webpage that have a form in iframe now the form submit in iframe and check from database and if found the username and password it start session and when i go to another page the session is lost, now how i can maintain session in …

Member Avatar for LastMitch
0
1K
Member Avatar for fheppell

I need to make a forgotten password system, which works like this * User puts email in * Email sent to user with a link * Link goes to a one time page which allows the user to change their password I understand about php mail() but haven't got the …

Member Avatar for Squidge
0
195
Member Avatar for er.durgeshkumar

hello friend i like to **add message box** on my web page in which i like to show inbox and outbox and message should be send and recieved by any user on my website with delete option

Member Avatar for Octet
0
60
Member Avatar for NoMansLand_MFGC

Hello Daniweb, I hae built a time/date counter for a private ticketing/support system, but I have run into a bug. After submitting a ticket it's fine, the counter starts counting, Perfect. Update the ticket to Closed/Answered/Anything else that changes the Status of the ticket, it "resets" the counter. It pulls …

Member Avatar for diafol
0
295
Member Avatar for sumeshpremraj

I'm learning PHP and MySQL, and I'm trying to create a simple online pastebin website. I want to create both anonymous and logged in user pastes. I created a 'user' table with uid, name and password columns, and a 'pastes' table with pid, paste and uid columns. In a viewpaste.php …

Member Avatar for sumeshpremraj
0
213
Member Avatar for minitauros

Hello there, I would like to know if anyone knows a solution for excluding a group within a group in a regular expression. For example: /(name|(?:last[ ])name|(?:first[ ])name)/i I would only like the word "name" to be returned (this is just an example), but when I take match number 1 …

Member Avatar for minitauros
0
340
Member Avatar for dinhunzvi

i am working on web application and i'm looking for a way to create and display reports. tried Crystal Reports but the reports are not being displayed. what other options do i have?

Member Avatar for dinhunzvi
0
134
Member Avatar for shakayu

`** login form Hello Guys, am actually working on a website... I want a login on the top left corner...login..then when the user click on this ..a modal form would appear asking them for their user-name & password.. I have a already do the login form controller ?php function index() …

Member Avatar for shakayu
0
962
Member Avatar for beginnerpals

I wanted to give my admin the power to search professors by name and provide them with a corresponding checkbox for each search result returned to help them select entries that he wants to delete (like we have in phpmyadmin for example). I'm posting the prof_name from a form that …

Member Avatar for beginnerpals
0
253
Member Avatar for fheppell

I've written this code that takes two variables via POST. Some file and a checkbox to say whether the image can be downloaded. I then have this processing code to upload multiple files: <?php require_once('Connections/koding1.php'); if(isset($_FILES['file']['tmp_name'])) { // Number of uploaded files $num_files = count($_FILES['file']['tmp_name']); /** loop through the array …

Member Avatar for fheppell
0
194
Member Avatar for edensigauke

I know apache exists, and the WAMPP, but i would like to know the handler settings for PHP on Windows 8 IIS, it would really be helpful. I was thinking it might be the same as with windows 7, but i am not getting the mapping parts.

Member Avatar for edensigauke
0
252
Member Avatar for daniel36

I am working on a cms type project.In this project when i uses get variable to fetch data from database and display.The layout of website shifted to left.and i am unable to solve this problem.please help me.

Member Avatar for daniel36
0
114
Member Avatar for andika.kurniawan.121

I want to make multiplayer game with PHP. In the game, I tell the user to make adhoc before play multiplayer. Is the network in my game Local Area Network ? Can you help me to make the network in multiplayer game which I want ?

Member Avatar for jkon
-1
69
Member Avatar for TMacFarlane

This is a very complicated problem. I have an existing web page with multiple drop-down fields-- now I want to add a keyword search text field. I have managed to create a page with the text input only, and that works fine. The trouble comes when I try to add …

Member Avatar for pritaeas
0
369

The End.