39,402 Topics
![]() | |
Hi, this is my page which is displaying the products that i inserted inside my database tables for example this is for one of them that named table1 : [CODE]<table width="850" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <?php include "../db.php"; ?> <?php error_reporting(0); //Rows $imgRow = '<tr>'; $idRow = '<tr>'; … | |
Hi All, I am trying to create a form using sessions so that the submit button is only submitted once in a two minute duration. I need the form to still complete the onclick action so that a calculation happens, but I only want the mail() function to send an … | |
[CODE]<?php $con = mysql_connect("bangla123.db.8390659.hostedresource.com","bangla123","Algnab123%"); if (!$con) { die('Could not connect: ' . mysql_error()); } if (mysql_query("CREATE DATABASE tryDB",$con)) { echo "Database created"; } else { echo "Error creating database: " . mysql_error(); } mysql_close($con); ?> [/CODE] ------------ When I run the code, i get error -"Error creating database:.... Pls advise. … | |
[B]I am a newbie so please be kind.[/B] I have put together a form using multiple queries which pulls information from MySQL tables that are joined by ID number. It displays the info in a form so updates can be made. I cannot get it to update more than one … | |
Hey everyone, I am fairly new to the programming world, but I am a quick learner. I am trying to make my "membership area" register.php work properly, but there seems to be a parsing error as follows here: "[B]Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\register.php on line … | |
Below is how the database is searched. [CODE] $query = "SELECT * FROM $tbl WHERE content LIKE \"%$var%\""; [/CODE] $var includes the term or phrase searched for. But using the "LIKE" in the query doesn't seem to ignore whitespace or hyphens or commas (like i want it to) E.g. if … | |
Hi guys I tried to Google this but unfortunately I couldn't find any thing, Can you please let me know how I can populate a drop-down list from a csv file using php? For example let say I have a csv file(league.csv) like this: Man City,9,25 Man Utd,9,20 Chelsea,9,19 Newcastle,9,19 … | |
At work, I was given a file with which to connect to the proxy which I can do from there but I have no idea how to do it from home. I tried going "under the hood" and setting up a proxy with a random www address but that didn't … | |
I'm designing and implementing a PHP web application as part of final year university project and i was wondering if any of you could suggest any development methodologies that i could follow and your reasons for them, as i haven't ever created a full web application. I also need to … | |
I get the following Error from the code below: Warning: require_once(JS/Extractor.php) [function.require-once]: failed to open stream: No such file or directory in C:\Users\gross.t\Desktop\choicegrid\jsextractor.php on line 12 Fatal error: require_once() [function.require]: Failed opening required 'JS/Extractor.php' (include_path='.;C:\Users\gross.t\Downloads\pear\;/library/') in C:\Users\gross.t\Desktop\choicegrid\jsextractor.php on line 12 [code]<?php $path = '/library/'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once … | |
This code seems to work on a simpler level but not on the one I'm trying to use. It's for a website's search engine. First the result is gotten from the database like so: [CODE] $query = "select * from $tbl_name where name like \"%$var%\" OR text like \"%$var%\""; $numresults=mysql_query($query); … | |
![]() | I have 3 tables. [CODE]product ----------------------------------------------- product_code | product_header ----------------------------------------------- 12345 | Wilson Pro-staff Grip plus Glove product_attribute --------------------------- product_code | attribute_id --------------------------- 12345 | 1 12345 | 2 product_attribute_types ----------------------------- attribute_id | attribute_name ----------------------------- 1 | Size 2 | Colour[/CODE] This is the output that I would like to … |
So I have Microsoft SQL Server 2008 R2 installed and an instance set up with a database an user setup on that database with a password. I have installed PHP, and IIS and got PH working from the WWWROOT folder, but when tryng to connect to my database it is … | |
hi , I m newbee to dreamviewer CS4 and php.i have installed xampp and php my sql works fine. Now when i select a new PHP layout and insert<p>The time is now <?php echo date('H:i:s'); ?>.</p> in body section i don't get to see any date in live view.I have … | |
Hi, i wanna put some editor with HTML plugins that i can insert my html or php or any other codes inside my pages just like daniweb editor is there any body to help me ?? | |
how do i get total values in a row by grouping into diffrent categories. here is my code bt its getting oll totals in a row for now.. [CODE]<?php require_once('connect.php'); ?> <?php $query="Select Amountspent from Moneyout"; $result=mysql_query($query); $total=0; while($row=mysql_fetch_array($result)) { $total=$total + $row['Amountspent']; } echo "Total is:" . $total; ?>[/CODE] … | |
I have two array. How to check different and correct the order in a new array? EG. Array_a 0 => 1 1 => 2 2 => 3 3 => 4 4 => 5 Array_b 0 => 1 1 => 2 2 => 3 3 => 3 4 => 5 You … | |
I heard the best method to share session across multiple domains on same server is to use custom php session handler. (ie, domain name different like abc.com, xyz.com but single application.) But after i tried it, even custom php session handler that using SAME DATABASE ON 1 SERVER can't share … | |
![]() | Hello all community again ! I only want to know what is faster and better (logical, not writing or tabbing) between: IF...ELSE...IF...ELSE... IF...ELSEIF...ELSEIF...ELSE... For example: [CODE=PHP] $i=0; if($i>5){ echo '$i is greater than 5.'; }else{ if($i>0){ echo '$i is greater than 0 but less than 6.'; }else{ echo '$i is … |
I am not that good with PHP and have a question for you. I use text area which is tied up to a javascript text editor (turns the text area into simple text editor) and for example I type : 1. Course one 2. Course 2 Then it will save … | |
Hello Everyone, I`m a PHP developer, These days I`m thinking seriously about learning ruby , but I`m not sure if it gonna add to my knowledge , so i have few questions about it and hope that a ruby specialist will answer me 1- Do I need to learn ruby … | |
I searched daniweb, google, etc. All had multible code snippets but I couldnt get any to work.. Well my database is "wallet" and in the row is "id" and "amount" So I tried like [CODE]$result = mysql_query("SELECT amount FROM wallet WHERE id LIKE '%$id%'"); while ($row = mysql_fetch_assoc($result)) { $money … | |
![]() | Hello all Community ! My question is very simple: What is the difference between [ICODE]$_SESSION['id'][/ICODE] and [ICODE]$_SESSION[id][/ICODE] ? Both works the same ! What is better ? Does anyone know which is faster ? Thanks all ;) ! ![]() |
hi all i am new to kohana i am getting the following error "Fatal error: Cannot redeclare class Session_Core in C:\xampp\htdocs\admin\system\libraries\Session.php on line 12" plz help me to correct it i am in a big trouble | |
this is my code and below are the notices that r shown in browser ..what can i do?? [CODE] FILE 1: new_user.php <?php require('header.php'); ?> <body> <?php require('sql_connect.php'); ?> <?php require('functions.php'); ?> <form method="POST" action="add_new_user.php"> Username: <input type="text" name="user_name" /></br> firstname: <input type="text" name="first_name" /></br> lastname: <input type="text" name="last_name" /></br> … | |
Hi, i created a page with some radio buttons that each of them contains a certain number which i send them to action page for searching among the numbers that i inserted inside my table in data base. but the question is here that i wanna select with some different … | |
Hi, A little stuck here - i have a file containing info like this: Name: Some Name Email: [email]some@email.com[/email] I'm using file_get_contents to read the file and then i want to get the name. I have it like [CODE]preg_match('/Name:(.*?) Email:/',$filecont,$name);[/CODE] however it returns nothing. Maybe anyone has an idea how … | |
Hi all, I'm decoding a JSON object into an array and then inserting it into a database, which informs markers on a google map. That step is working fine, but I'm now trying to insert code to (a) read whether the latitude value in the array is null, (b) send … | |
What's the best place to use for a secure Payment System on my site? Like a very secure system besides Paypal. Because I tried Paypal and I don't want to pay through paypal. But rather pay through my own site. The payment is for my own ad system I am … | |
Hi I have WAMP server 2.2a server installed on my windows7. I encountered 403 Forbidden error when i run [url]http://localhost:8088/[/url] The weird part is if I go to [url]http://localhost:8080[/url] i can access my oracle 10g express agreement page and go back to [url]http://localhost:8088/[/url] to access my php info page. No … | |
i am new to php. i want to know how to logout a user when he/she is idle for sometime. Thanks in advance | |
I'm trying to integrate [url]http://www.ercot.com/content/cdr/html/hb_lz[/url] using PHP and MYSQL... but i cant figure out the easiest way to go about this. Can someone offer me some advice on if i'm doing this wrong? Was trying to figure out how to pull the data to put in MYSQL to display in … | |
i have a problem deleting a data using checkbox please help me here's my code admin.php [CODE]<form id="form1" name="form1" method="post" action="deleteApplication.php"><table border='1' cellspacing='0' width='612'> <tr> <th bgcolor='green'><font color='white'>#</font></th> <th bgcolor='green'><font color='white'>Room No.</font></th> <th bgcolor='green'><font color='white'>Cust. Code</font></th> <th bgcolor='green'><font color='white'>Check In</font></th> <th bgcolor='green'><font color='white'>Check Out</font></th> <th bgcolor='green'><font color='white'>No of Rooms</font></th> <th … | |
this is my first code in php. i am trying this off a tutorial i saw-- i am getting error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN products.products_id=products_description.products_id' at line … | |
I have two tables. tbl_clients and tbl_projects. They both contain auto incremented primary key columns. For adding new projects to tbl_projects, I use tbl_clients' clientname field to populate a dropdown menu on the new projects html form. The user chooses a client name from the menu, and the primary key … | |
Hi i'm trying to successfully get this PHP code to search MySQL database called test2 that has a table called questions, in that table there are columns called ID, Question, Category and Answer. This code is an excerpt from a tutorial that allows you to search the mysql database for … | |
Hi Everyone, I have built my own forums and currently they are displayed in the order of newest posted (id DESC). What I want to do is keep this order however, if there was a topic which was created months ago that is not on the first page for example, … | |
Trying to figure out why a script that worked perfectly well on Linux is not working on Windows server now after I moved it. It has the latest version of PHP installed and there is no reason it should not work on both. I have posted the code snippet, however … | |
Hi experts, im new to coding and i really need help for this. i have done a shopping cart calculation using javascript my question now is, HOW TO SEND JAVASCRIPT VALUE INTO DATABASE (MYSQL) ?? [CODE] <?php require_once 'library/config.php'; require_once 'library/cart-functions.php'; $action = (isset($_GET['action']) && $_GET['action'] != '') ? $_GET['action'] … ![]() | |
Hi there, I'm currently adding in a recaptcha to a contact form that I didn't create in the first place, so I've been tentatively working my way around it. For some reason though, every time I complete my form, no matter whether the captcha I entered was right or not, … | |
Hi All, I currently have an .htaccess set up to rewrite to a single URL. at the minute it is for places. so mysite.com/region/town will rewrite to places.php i now need to add another, this time for skill i.e. mysite.com/construction/bricklayer and i want it to redirect to skills.php i have … | |
How I can solve below problem.. ? [CODE]SoftException in Application.cpp:357: UID of script “/home/username/public_html/file.php” is smaller than min_uid[/CODE] | |
Hi I have created a new Recordset which uses the ConveyorNumber to display information relating to a particular conveyor. The recordset should use this from the conveyornumber field on a prevoius page so when history is clicked the hostory of that one conveyor will appear. I have added a Dynamic … | |
Here is my website [url]http://projecttower.site50.net/questions/[/url] I have a collapsible panel there that whenever it's clicked it shows a form where you add a question, answer and ID. the first form is for a file on my server called [URL="http://projecttower.site50.net/questions/questions.htm"]questions.htm[/URL] the index.htm file is a live search results page that reads … | |
Hi, I'd like some help on this - i have a textarea field, where the user can enter text. The line breaks (\n\r) has to act as real line breaks. So, i've successfully replaced the breaks with the <br /> tag, however, here's the problem - when the user edits … ![]() | |
I'm searching a mysql database getting results which match the searched keyword. When the keyword is found within the search string I want to show the searcher that keyword before cutting the showed string down to 500 chars, therefore I move back from the keyword 1 char at a time … | |
hi everyone. i want to list and show the table names in a database in a php page. how to do that? in phpmyadmin 'show tables' works in query window. bt showing it through a php script i think i would have to SELECT? | |
is there [B]AAAAAAAAAAAANY [/B]way to take an xls file and convert it to xlsx using a php code? I've googled but I see not many people asked this and those who had similar problems found no solution. I've tried using PHPExcel but I can't figure out how to do it … | |
I am new to PHP and wanted to know that which reporting tool is used PHP/MYSQL based projects... to fetch data from mysql using php from which pdf can be generated also.. As Crystal report 11 has lots of good functionallity but doesn't has support for php . . So … | |
For the search feature on my site, the user searches for a term or a phrase then it gets processed and using the "LIKE" query to the mysql database - the relevant results are gotten. then they are shortened to 500 characters so snippets of the matching results are shown … |
The End.