52,566 Archived Topics
Remove Filter ![]() | |
Now, I have another problem about duplication validation of my data in db.. the message "...already exist" if function validate was through. now if I add a new data, same message pop up...and i can't add new data. I try to reverse my return value and I can add but … Web Development php | |
Thanks to a little guidance here I have written a function for getting part of a string returned. [CODE]function getcontent($tag,$string) { $pos1 = stripos($string, '<'.$tag.'>'); $pos2 = stripos($string, '<'.$tag.'>'); $content = substr($string, $pos1, $pos2); return $content; }[/CODE] [CODE]print $content('row','Hello world <row> bladh </row>');[/CODE] output would be "bladh" Web Development php | |
What is the easiest way; using a cms blog script or making html files | |
Ok, here is the problem. I have an article directory and there are over 200 categories. When you go to a category it shows like 15 articles and at the top right and lower left it has like: Page: 1 2 3 4 5 6 7 When you are on … Web Development php ![]() | |
Hi, I have this error Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\Program Files\xampp\htdocs\nsubackend\lib\model\classLabType.php on line 9 & same in line 52. here's my code: [CODE]function __construct($id=0){ $con = new connection(); $query = "SELECT * FROM tbllabtype WHERE labtypeID='".$id."'"; $res = mysql_query($query); if(mysql_num_rows($res)>0){ $row = mysql_fetch_array($res); … ![]() | |
Hi again I have an HTML form with three groups of inputs. These inputs are all text. Group 1 has 1 input, group 2 has one input, and group 3 has 3 inputs. What I would like to do is this... If a user inputs any data into a particular … Web Development javascript | |
Hello, I cannot create upload progress bar with php.I am a new php programmer.Have any idea?Please help me. Thanks Amit Web Development php | |
Seems simple enough right? I have put many hours into a solution...and nothing. I have tried multiple scripts and codes. Finally, I decided to ask for help. Here is the background... - PHP web site - Homepage shows images from database - Images are pulled randomly and displayed on homepage … | |
Hi, i have this error : Strict Standards: Non-static method department::showAllDepartment() should not be called statically, assuming $this from incompatible context in /opt/lampp/htdocs/nsubackend/lib/controller/mainController.php on line 577.. and heres my code: [CODE]574 function showDepartment(){ 575 require_once('lib/model/classDepartment.php'); 576 new department(); 577 $departmentID = department::showAllDepartment(); 578 579 if(isset($_POST['addDepartment'])) $this->addDepartment(); 580 if(isset($_POST['updateDepartment'])) $this->updateDepartment(); 581 … Web Development php | |
how do i create php page with the following attributes(emp_id,emp_password,emp_address,emp_fname and emp_lname)tha will be posted to the data base? Web Development php | |
Hi all! I'm putting together a WordPress blog, and I'm trying to make it work with a standard template called "Tribune." It uses custom tags on posts to apply thumbnails and featured images. I can't quite figure out where to place the code in the index file to get it … | |
Hey guys; I've been working on a little concept webpage, and it works great in any browser !IE. But, any IE browser will not render the middleAlign DIV's as centered in the web page (like all the other browsers do). Apart from that, and a few other little quirks, it … Web Development display javascript web-browser | |
I tried to make a easy google news search api. I know google news api search can show max 8 items per page, and 8 pages(total 64 items). 1.How to add `image{}`(I want to show the news image), I read the document in google official website, but not understand. 2.Can … Web Development api javascript seo | |
Hi All, Hopefully someone will have a quick answer for this question, because I'm in the middle of a time critical project and this is a stumbling block. Here is what it is... I have a temp_transaction table (mysql) that has various fields, one of which is a trans_date (datetime) … Web Development php | |
Is there anyway I can type wget command into a php and that will download file directly from another server to my own server? Web Development php | |
I have a dedicated server running wamp server, everything is almost ready to do but I can only access the site using the IP address. I have a domain registered with 123-reg and need this to link to my site. Does anybody have any idea how to do this? Thanks Web Development client-server php web-server | |
Hello. I have an image that is stored in a folder directory, and I was wondering how I can use php to retrieve that image by its name and directory with a search. I do have a search that will retrieve information on mysql, but I don't know the code … Web Development php | |
Hi, I am trying to write a .htaccess script that can redirect example.com to example.com/subdomain. This is my code but it's not working. Can you please suggest. RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ [url]http://www.example.com/subdomain/[/url] [R=301,L] Thanks in advance Web Development php | |
My Jquery function goes like this <script language="javascript" src="jquery.js"> function TestJQ() { alert("Inside a JQ Function"); } </script> I also added jquery.js file to project. When i try to call this function from Silverlight project it throws an error Failed to Invoke My Silver light code: void MainPage_Loaded(object sender, RoutedEventArgs … Web Development javascript javascript-jquery | |
Hi, I'm trying to write a script that allows me to insert a file into MySql. I would like it to work under the user's session. 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 … | |
PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxxx/public_html/classes/users.php on line 162 PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxxx/public_html/classes/user.php on line 62 Here is users.php [CODE=php]<?php class user{ var $user=array(); var $random_id; var $random_link; var $currentpoint; var $minspoint; … | |
Hi, I had a site developed by me in coldfusion using which customers can raise online orders here.But i have some problem with cookies because everytime when user delete cookies in their system they have to register again to access the page.I have to delete the previous userid also from … Web Development coldfusion | |
I am building a website that connects to a mysql database. When I include the file that holds the connection to the database I get an error message. If I write the code in each page the connection works fine and displays records held in database. Here is my code; … Web Development file-stream php | |
I have a website which dynamically gets images and then displays it but i have sub image which has to update the main image, but this main image is a lightbox which uses href link so i am wondering if someone can show me how to update this href using … Web Development javascript php | |
Hi All I need help in making a Drop down search box I have dropdown HTML code and also Search Box HTML code, could you please help me in making both as one I made sample code but not sure why its not working, please do the need full [CODE]<HTML><HEAD><SCRIPT … Web Development javascript | |
I'm developing an ordering system relying on PHP and MySQL; the problem I have is essentially HTML, though, and specifically with Google Chrome (no issue with Firefox or IE). If an order already exists for a customer, items are listed with input boxes but with the maxlength attribute (a variable … Web Development php | |
Hi guys hope your all well, im having a problem with a register page on my website, Dreamweaver is saying there are no syntax errors, but when the information gets submitted, the check page isnt doing anything :( This is the code i have: [code=php]<?php session_start(); include_once"includes/dbconnect.php"; if ($_POST['Submit']){ $user … Web Development php | |
Hi Guys, As the title says really... Sounds simple, it is. But....! I'm dealing with huge numbers here. I'm dragging bandwidth from a logging system I am developing for a client and it returns it in BYTES... Very accurate :| This is the sort of number I'm dealing with here... … Web Development mathematics php | |
Helllo there I am new to programming i am trying to update my checkbox column in a gridview (asp.net)which i cont I can able to get the data 1 or 0 in database and able to update the checkbox as checked or unchecked my code is [code] <asp:TemplateField HeaderText="Available" SortExpression="Available"> … Web Development asp.net | |
Hello everyone .. Im learning PHP on my own .. I installed Apache on Windows XP and trying install PHP, tried both installer and manual way but its not working :( PHP scrips getting downloaded .. Can any one give me a good link for step by step installation ? | |
I have this script and i need some help [CODE]<script type='text/javascript'> numcount=0; t=setTimeout("test()",30000); document.getElementById("incrementBtn").disabled=false; timer_on = 1; function increasecounter() { timer_on = 1; numcount++; document.getElementById('countdiv').innerHTML=numcount; t=setTimeout("test()",30000); } function test() { if(timer_on) { timer_on=0; document.getElementById("incrementBtn").disabled="true"; document.getElementById("score").innerHTML = document.getElementById("countdiv").innerHTML; } } function reset() { timer_on = 0; numcount=0; document.getElementById("incrementBtn").disabled=false; document.getElementById("countdiv").innerHTML = 0; … Web Development javascript | |
I am writing a JavaScript program that you click the mouse on a button and it shows how many times you have pressed the button. here is the JavaScript for it [CODE]<script language="javascript"> var numcount=0; function increasecounter(){ numcount++; document.getElementById('countdiv').innerHTML=numcount; } </script>[/CODE] and here is the html: [CODE]<div id='countdiv'>0</div><br/> <input type=submit … Web Development javascript | |
Hi all, I basically want to create a personal (probably password protected) webspace to which I can easily save images to, similar to svpply.com and ffffound.com. The way they work is that you create an account, you get a link which you keep in your bookmark bar and when you … | |
Can anyone see where im going wrong with this code I keep hitting a brick wall with it. Its doing my head in. I think its more the sql code, It keeps showing all data instead of just showing the data based on the user_id which should be limited to … | |
Hi. We had a website deployed on IIS server remotely say [url]www.liveserver.com[/url]. We recently decided to make a copy of the website internal to the organisation so we brought a server and copied all the code from live server and configured it and say it is http//archives-testserver.com Everything seems to … Web Development asp | |
Hi, I have searched high and low and cant find a similar issue to what i have. I am a beginner so please forgive my clunky query structure. I am trying to: ( have attached screen grab below ) Query the [B]photos table[/B] to get the id based on category … Web Development php ![]() | |
Hi everyone, I have a very large CSV file. 51427 lines to be exact. I need to import the entire file into a MySQL database, however, the script times out due to server settings and slow connection (and maybe other reasons that I am not aware of). So - I … Web Development file-system php | |
I just want to know which is the best FREE Web Hosting provider which has max uptime (uptime really important) with cpanel, php, mysql and softachoculos. (just these I need) I want to use free address from dot.tk as my primary site address.(I already have dot.tk no problem with that … Web Development cpanel php web-server | |
Hello, I'm trying to create a button that allows the user to d/l info from a DB into a CSV. The button works fine, the download window appears and asks if I want to save/open the csv file. But when the file opens, there is nothing in it, and I … Web Development php | |
Hi, I have a script that uploads images into MySQL but I am have trouble resizing the image on upload. Can anyone help? Here is my code so far: [CODE]<?php require_once('Connections/connAdmin.php'); ?> <?php //file properties $file = $_FILES['content']['tmp_name']; if (!isset($file)) echo "please select an image."; else { $content = addslashes … Web Development file-system php | |
i have a notepad that i made into a database. i want to know if a username and a password are valid combination. but if i run it, the 10th entry, for example, gives 10 different outputs until it finds the perfect match. suggestions would be nice. <?php $user=$_POST['user']; $pass=$_POST['pass']; … Web Development php | |
Hello Friends, I am new with asp.net.How to use mysql backend in asp.net please answer with code example. | |
Not sure if its the sql query or what, but I have a pagination class and a function I am trying to put together if some one would be able to point be in the wright direction it will be very appreciated. :) The following is the function which I … | |
Hi there, i am struggling with my code to read xml with php. it is giving the following error: Fatal error: Call to a member function attributes() on a non-object on line [COLOR="Red"]red[/COLOR]. The weird part of it is that the output is good/as it should be. [CODE] if( ! … |
The End.