39,402 Topics
![]() | |
What I'd like to do is store the "selected" value of the drop down box in a DB. At the moment the selected value for the drop down list is pulled from the DB. Now what I want to happen is if I don't want to change that specific option … | |
Im trying to delete records. Most delete ok but some don't and Im completly lost as to why... The information Im storing are just URLs. Could it be to do with some irregular characters within these URLs? Is there a recomended way to store a URL? Please help me out. … | |
Hi all! I've been working on the validation for my web site, and I am currently trying to write a script so that if I have the following usernames in the username column of my MySQL table entitled "members": -Jeff -Pete -Bob That no one who is registering a name … | |
please check it out [url]www.gojyotish.com[/url] i use a gif background....its not appearing a it should in chrome, just see the difference in appearance in firefox..... | |
Hello, I am new to php and enjoy the fact that it is very similar to languages that I'm much stronger with (mainly C++ and Java). While working through the w3 school's tutorials I noticed a foreach() loop. What loop in C++/Java would this be similar to? It seems like … | |
Hi I must now seek help after too many hours of failure. I'm using a basic form with Ajax (prettyPopin), but the form is not connecting to the database. I'm obviously overlooking something. Here is the basic form: retailer.html [CODE] <h3>Retailer Contact</h3> <form name="ajaxForm" action="ajax/form_submit.php" method="post" class="genericForm"> <label><span>* Full name</span> … | |
For instance, I have the following string: table:column I need to get "table" as the result of the php regular expression. So, I need everything before the ":" symbol After that regular expression is performed, I would also like to get everything after the ":" symbol, or "column" as well. | |
Can anyone see anything wrong with this. Im stuck :( [code=php] $sql1 = mysql_query("DELETE FROM spider WHERE url='$addtolist'"); if (!mysql_query($sql1,$con)) { die('Error Deleting: ' . mysql_error()); } echo "Record Deleted <br />"; $sql2="INSERT INTO list (title, url, description) VALUES ('$title','$url','$description')"; if (!mysql_query($sql2,$con)) { die('Error Adding: ' . mysql_error()); } echo … | |
Hello Everybody, Wondering if any of the experts could help me out. I am trying to create a forum system for my university website. I have created the tables by using WAMP-phpMyAdmin, where the data from the forum would be inserted. Now, I would like to implement this using PHP. … | |
Hi All, Please help me to understand it better. I want to have a simple site with Header, navigation bar, side bar and opposite to side bar, main contents. I want to Include files for this sections in index.php. Here is a thing I dont understand: ---- If I divide … | |
Hi folks, I've used a while loop to call about 5 category names from a database to make a navigation. I didn't want to hard code the categories because I want to be able to change them using Content Management and have the nav update from the database. [CODE]<a href="category.php?cat=<?php … | |
Hi, I've written a php code where I need to save the data entered in a form to the mysql database. For that I'm using the following [icode]$strSaveTD = "<input type = button id=btnSave value=Save onclick='checkform(" .$iMode. "," .$iLevel. ",1)'>";[/icode] When the user clicks on "Save" in IE it works … | |
This query doesn't work. What have I dont wrong? [code=php] mysql_query("INSERT INTO list (title, url, description) VALUES ('$title', '$addtolist', '$description') DELETE FROM spider WHERE url='$addtolist'"); [/code] Heres the whole page if it makes things clearer. [code=php] <?php include('includes/config.php'); $addtolist = $_GET['add']; $open = file_get_contents($addtolist); $title = get_inner_string($open, '<title>', '</title>'); $description … | |
Good day to everyone.! I just want to ask a help if is it possible to fit any size of image in just a 32 x 32 image placeholder. i have already loaded the image from the database by just looking its path.but it it will display on the page … | |
I think I have a PHP configuration problem on my development machine where I am setting up a development environment which interrogates a local MySQL database from Eclipse on a Windows XP platform using an Apache server. I can execute the PHPINFO program so I have a minimal PHP system … | |
I'm slowly getting there with PHP templates! :) Here's my basic PHP page: [code]<TITLE>Star FM</TITLE> <head> <style type="text/css"> CAPTION.MYTABLE { background-color:#8080ff; color:white; border-style:solid; border-width:0px; border-color:black; } TABLE.MYTABLE { font-family:arial; font-size:10pt; background-color:#2554C7; width:780px; border-style:solid; border-color:black; border-width:0px; } TH.MYTABLE { font-size:10pt; color:white; } TR.MYTABLE { } TD.MYTABLE { font-size:10pt; background-color:#2554C7; color:white; border-style:solid; … | |
Ive got a basic moderation script to create but Im stuck as to how to do it because there would be too much data to transfer as post data. So heres the premise [code=php] $result = mysql_query("SELECT * FROM whatstobemoderated"); while($row = mysql_fetch_array($result)) { echo '<input type="checkbox" name="url">' . linkify($row['url']); … | |
Hi please help to get rid of this error/warning... Please see the following code carefully.. Look at the errors first ------------------------------------------- Warning: Cannot modify header information - headers already sent by (output started at /home/compkcom/public_html/includes/config.php:1) in /home/compkcom/public_html/cmpanel/check_login.php on line 20 ------------------------------------------- here goes the php script --------------- [code=php]<?php session_start(); ?> … | |
Hi frnds... i have been successfully uploaded videos to uploads folder through db... now i need to play that videos ....plz provide code for this one....presently ineed mediaplayer format... i got the video path....after i dont know how do that...is there any script to run videos.... plz help me asap... | |
Hi, I have WAMP installed on XP. I put everything under wamp/www folder to be run PHP. I want to use D:\ drive as well to run PHP along with wamp/www. Thanks | |
hi please help me to rid of these following warnings in following php script Actually this script is running smoothly on my local window server, but on mu linux hosted server following warnings are coming.. Please see please please please help me.. -------------------------------------Warnings------------- Warning: mysql_fetch_array(): supplied argument is not a … | |
hi, i want to create application for like 1> real estate & Property or 2> landlord and property ... there is any opensource code to create a this type of application?? or demo links.. | |
Hey whats up guys? I was using thenewboston tutorials on youtube and I am stuck. I was trying to connect to my database that i made. [code] <?php //opens connection to mysql server $dbc=mysql_connect('localhost','kybo13','****'); if(!$dbc) { die('Not connected: ' . mysql_error()); } //select database $db_selected=mysql_select_db("kybo13_game",$dbc); if(!$db_selsected) { die("Cant connect: " … | |
I've aquired some webspace and all I want to do is install phpbb but do not have the slightest clue where to start. Even a point in the right direction will help. Any input is very much appreciate. Can you tell me how to install and setup a phpbb forums … | |
Hi, I am working on a script whereby if you are not my friend where by i need to restrict people who are not my friends to view my profile. for example If I am the logged in user and i am trying to view someone else who is not … | |
Here's my predicament. I Have managed to send and retrieve some HTTP requests using the GET method successfully using the following code: [code=php] function send_to_host($host,$method,$path='/',$data='',$useragent=0){ // Supply a default method of GET if the one passed was empty if (empty($method)) { $method = 'GET'; } $method = strtoupper($method); $fp = … | |
Hi, I'm trying to create a database that stores shoes. Each shoe must have more than one size so I have created a table "mens_boot_test" with a field "size". In the size field I have an integer which holds the delimited values 1,2,3,4,5,6,7,8,9. I'm then trying to retrieve these values … | |
I have IPB 2.3.5. I need to decrypt (or encrypt) the passwords from the database so I can compare them to user input from another page. So, how does anyone happen to know how IPB encrypts their passwords? (Or how to decrypt them?) | |
I've been trying to create a template-based site on my XAMPP server, but it hasn't come to much! I saved [url]http://www.wyvernfm.co.uk/schedule.asp[/url] as testpage.htm using Opera (best browser for saving webpages in!) but am not sure how to set variables in a PHP template for the presenters and images so that … | |
i saw that most of the facebook applications are developed on php so i also want to create a social networking application so i wanna know which language is suitable for social networking application PHP or .NET <URL SNIPPED> | |
Hello. I am trying to edit my event registration site so that after the registration cut off date, the link will no longer be valid and it will display "registration closed" I cannot figure out the syntax error here. [code] <? if ($registerend < NOW()){ print "Registration has ended"; }else{ … | |
Hello all, Actually i am making a osCommerce website in wich i need UPS shipping system. how it can be generated in PHP . Why we use this system . I have no idea about UPS shipping system . Pleas help me. It is very urgent. Thanks Gagan | |
i have three buttons 1.orkut 2.facebook 3.myspace Suppose when i click on orkut button, it ask for username and password 1>how to check this username and password is correct or not?? 2>If Username and Password is correct... I want to show photos from orkut How to do this?? | |
Hello all! I was having a hard time trying to get my pagination to work. Now the following code throws up this error: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource Any idea what could be the problem? Any help is much appreciated! [code] <?php include ("databaseinfo.php"); … | |
Hello, I have not had a huge amount of experience with regular expressions. Any help you can give is greatly appreciated. I have an input file like this: [CODE]Name: Bob, Age: 20, Details: Likes chocolate Hates lettuce, Location: London Name: James, Age: 42, Details: Sometimes goes swimming, Location: New York … | |
Good dat to everyone.! Ive just so tired just to finished my thesis. Ive got problem in php summing up while looping and filtering. here is my code: [code=php] mysql_select_db($database_enamysqldb, $enamysqldb); $query_recpayment = "SELECT amountpaid, username, SUM(amountpaid) FROM paymentsummary WHERE username = %s and foryear = %s and forlevel =%s", … | |
[url]http://www.levelopacity.com/[/url] go to this site and chk out the footer.... its always there...i mean kinda sticky or fixed....how to do this..... | |
Hi All I'm new here and have searched high and low for an answer to my problem, and have so far had no joy. I am trying to create a if/else statement depending on the outcome of a SQL command that should be extremely simple and basic, but for some … | |
i have created paypal sandbox account and while process i got message you will get confirmation mail click on the link to activate.. But issue is i have still not got mail since 1 week | |
I'm having trouble figuring out how to display data from another indexed table. What I have is one table (assets) with a majority of my data in it. I use a simple select statement to display the data. Within that data is a field of "typeid" which is an indexed … | |
How would i go about making a music uploader / player or were could a get a script that does that? I want the user to be able to listen as well as contribute music to the site.. | |
Hi I don't get this it works fine but any file i upload that is over 300kb doesn't get emailed or saved to the server but if i upload two files for example 260kb 290kb they both upload and are both saved to the server. here is what I am … | |
Hi fnds... i am doing polling system to a perticular topic. i want to display yes/ no results in progressbar, after submittimg user vote(yes/ no) from radio buttons.... everything i can do, but the only problem is display results in progress bar.... plz give me a suggetions....how can i do.... | |
What this error means in PHP? Call to a member function getStrippedName() on a non-object | |
[code=php]</script> </head><body> <form action="naw1.php" onsubmit="return validate_form(this)" method="post"> contactgroups<br><br> <?php $instance=1; //$conn=new mysqli('192.168.1.50','root','adm1ns','nagios'); $db=new mysqli('192.168.1.50','root','adm1ns','aptus') or die ('Cannot connect to MySQL server'); $sql="select alias from aptus_contactgroups where instance_id=?"; $stmt=$db->stmt_init(); $stmt->prepare($sql); $stmt->bind_param("i",$instance); $stmt->execute(); $stmt->bind_result($time); echo "<select multiple=\"contact_groups[]\" >"; while($stmt->fetch()) { echo "<option value=\"".$time."\">".$time."</option>"; } <input type="submit" value="Submit"> <?php $cg=count($_POST['contact_groups']); for($i=0;$i<$cg;$i++) { echo … | |
Good day! Could somebody help me with this problem: When i'm using [U]header() [/U] to redirect page it giving me error message like this: [U]Warning: Cannot modify header information - headers already sent by (output started at /exxport/www/httdocs/waff/teng/HTML/Jobss/loginn_hrm.ph p:10) /exxport/www/httdocs/waff/teng/HTML/Jobss/loginn_hrm.phpon line 336[/U] Thanks... Roland (rcasinillo_s) | |
Hello everybody, I am trying to implement a private message system into a website I am working on but I am not sure as how to do this. I know I can use phpBB to do this but not sure on this aswell:$ I was wondering if any body could … | |
I m New To php , and gernate a signup form, that send an E-Mail at success of signup to the user, . But the problem is that in inbox it shows " ANONyomous" the link work fine, but th only problem is the above i mentioned. Here is my … | |
Hi to all , In a form what validation should be applied for the textbox of "Full Name" field , so that if anybody enters any Numeric value or invalid characters in the textbox an alert should be given as :- " Invalid value entered ! Please Enter Non- numeric … |
The End.