39,402 Topics
![]() | |
Hi everyone! Thanks for reading my post. I have 2 questions, first I have a PHP site where it reads the pages from a folder and shows it in a php frame, for example the contact us page with the file name of contact.php will be shown as http://www.<DOMAIN>?page=contact. and … | |
If I run my php file manually I am getting the output as follows: [{"org_id":"39575","orgname":"ARTHRITIS FOUNDATION - VIRGINIA CHAPTER","orgcity":"RICHMOND","orgstate":"VA"}] The php code is as folows: [code=php] <html> <body style="background-color:#33990f"> <?php // connect include require ("connect.php"); $query = "SELECT * FROM orgs WHERE org_id = 39575"; $result = mysql_query($query)or die(mysql_error()); if … | |
hey i despritly need some help getting this phpmyAdmin up and running again. i'm using wamp with mysql but can't get into my PhpmyAdmin for some reason. i've uninstalled it and re-installed it. the extension mysql.dll is there in the php.ini file uncommented the php extension for mysql is checked … | |
Hi to all, How to send the instant message to yahoo messenger by using the xmpp or any other application .If some one knows kindly provide the url and links. Thank you, With Regards, Premnath.M | |
Hi, I just installed ssl on my apache/centos server. Php works fine over the regular http connection but when I try to reach php files over the https connection for some reason they do not get parsed and delivered directly as text files. Below is the virtualhost section from my … | |
I have created a login system based in PHP and MySQL, where upon registration, users enter the information required in the form. However, there is another page where they can review their information once they have logged in. I am new to PHP but I would like to know the … | |
hi friends, i have a problem in my code here is paste the code [code=php] foreach ($entries as $entry) { $preview = textPreview($entry['texts'], 15); echo '<div class="leftnavi"> <h2>'.ucwords($entry['title']).'</h2> <p><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.example.com" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;"></iframe></p> <div class="tags"> <p>'.ucwords($entry['tag']).'</p> </div> <div class="quotes"> <p>'.stripslashes($preview).'</p> <p><a href="index.php?p=blog&cat='.$entry['catid'].'&fv='.$entry['id'].'">Read More</a></p> </div> </div>'; } [/code] … | |
![]() | Hello, I am starting to freak out with my php codes because it is just a mess and i get an error when i close my php tag. This php file is going to upload an image and set a name,description, and signature from the player, but i get this … ![]() |
Hello all - I'm having some trouble UPDATING my mysql using php. I'm working on a event planning system; the user can click on the company to see a small report that has some areas which must be editable (payment status, etc.). I get these values into a form to … | |
Hi) I needed to make it possible for the user to upload many files from many directories of his pc to server. Here is the html and js code html [CODE] <div id="addPhoto" > Path and Title of the Photo. <br /><br /> <input type="file" name="flImg0" /> <input type="text" name="txtTtl0" … | |
Hi all, I have ben tring to write some code that will help protect my forms \ data input I have wrote the following for anyone to use \ comment \ edit and improve. Im new to php and have read alot about securing data input from sql injection. If … | |
Hi guys, I have a query which returns 0 (zero) as a result not as a row in MySQL interface. However, when I run it in PHP the query doesn't return anything although there is one value which is 0. It is a Decimal type. Neither of these work. Result … | |
currently im working on my php code which display username,date and comments. how can i copy the username andinsert it into the other table using mysql? here's the table looks like table_1 ID USERNAME table_2 ID DATE COMMENTS | |
Hi Coders, I recently found a script online that clears tweets from a twitter account. The script is written in coldfusion which is not supported by most web hosts as you guys know. I'm a programming newbie, so I want to know if it's possible to code this same script … | |
Hi, I was making a search box and was trying to highlight the words that the users will enter in the search box,for example if the user enter "kids" in the searchbox it should highlight the "kids" word in the result............. is anyone have an idea how to do that | |
Hi All, I need to validate the telephone number entered by the user in a form. Following are the conditions. 1. The length of the string should be 10. 2. The first character should be ZERO. 3. Remaining 9 characters can be any digits from 1-9. I am using the … | |
I have a search engine that searches through my sql table called `sheets`. Inside this table are the following columns: id int(11) No artist varchar(100) No title varchar(100) No url varchar(2083) No timesdownloaded int(11) No lastdownloaded date No todaydownloads int(11) No date date No active varchar(3) No duplicate int(1) My … | |
Hi all, I have three inputs required at a prompt in the index file below which requires the following data a number which will be the title code such as tt0892318 and a number that will be prefixed with tt and be interpreted as the title code such as 0892318 … | |
Hello Friends, I am looking for a web based music player which has functionality like these 1. Play/Pause button 2. Shuffle button 3. Repeat button 4. Search from playlist option 5. Volume Up/Down button 6. Next/Previous button I am currently using wordpress to on my site & uploading sons through … | |
I have installed a software program and i am not able to call it out : Here is the error message which i do not have any clues of as i am non IT literate , that's why i come to this forum . Warning: include(../config.php) [function.include]: failed to open … | |
Hi I have a session variable I wish to display in the title of a web page. This works well with IE. However, when I switch to Firefox it only works when viewed from my personal server. And not when I view my page when I go online using Firefox. … | |
HI Guys, I am trying to make a Result Management Sytem for our department on PHP. This system will add results online as well show up results. I have downloded a PHP inventory system named PHP Inventory 1.2 I want to change it into a Result System like I want … | |
Here is a snippet of my codes[CODE]<?php $animesql = "Select titles.name FROM titles WHERE titles.cat_id = 1 ORDER by name ASC"; $animeres = mysql_query($animesql); echo "<table id='MISC' style='display:none;' width='200' border='0' cellspacing='0' cellpadding='0'>"; echo "<tr><td><p class='al_toggle_txt'>"; while ($anime_list = mysql_fetch_assoc($animeres)) { //$str = str_replace(" ","",$anime_list['name']); $str = preg_replace('/[^a-zA-Z0-9]/','',$anime_list['name']); echo "<span style='cursor:pointer;' … | |
New to programming. I am using fopen, fwrite fead to read and add content to a flat txt file. I can check to see if file_exists no problem, but if file exists but its empty... not sure how to check for that. Was hoping to at least get pointed in … | |
hi, thanks for u precious helps... Now i need to know if it is possible to edit an online docx template and save it back to docx locally? wat i mean by template is that it enters specific values on the template as per a form entry | |
The above classes provide an interface for reading the PHP session data. PHP alone only gives you access to the current users session. This class allows you to read all session files, and thus allow you to read session data across different users. This may be useful if you want … | |
i set cookies to expire at session end by just leaving time out. this works fine if i close the entire browser. but if i just close the tab w my script on it it doesn't expire cookies. I really would like for them to expire even in tabbed browser. … | |
Hello. I wanna integrate a site similar to [URL="http://www.superknowa.com"]http://www.superknowa.com[/URL]. In this site when you got Services menu, there they have different menu in the left side. Again when u goto Products menu they have a different menu in the left. In the other pages no menu will be shown. How … | |
Hello Everyone, Hope you're having a great weekend, especially in the Chicago land area where it's usually pretty chilly this time of the year and instead it's in the mid eighties. I'm looking to make an unsubscribe page. I don't know if everything can be done automatically or not and … ![]() | |
Hi All, I need to change the default values of checkboxes to 1 for checked and 0 for unchecked instead of 0 for checked and NULL for unchecked. If this is possible and how is it done. Here is the script that I am using: THE UPDATE FORM [CODE=php] <?php … | |
I cant decide if it is appropriate to use user defined functions for every single action in a page..or it somehow may slow the work? I can alternatively make different php files instead of functions,,and they will do the same thing depending on values of some variables, but i would … | |
Hi All, I have a problem in getting this update form to work. The query to call the record works fine and when clicking submit it redirects correctly and echo's (record updated) but the database is not updated. When i change the value variables in the update script it correctlu … | |
I am beginner in PHP, I was trying to display the poems which are stored in the database(mysql) to the website with php code, the problem is that the poem is showing as a paragraph....how can I display the poems the way I wanted, like line by line | |
How can i apply Role based Access control in php .......... | |
Hello, I am using cpanel standard crontab set-up, I have the path to the file correct but the path leads to a password protected directory ie: *php /home/example/public_html/admin/script.php* admin is password protected, how would I allow the crontab access to the script? Thanks in advance. | |
Hi, I am using xampp in xampp->tmp->[COLOR="Red"]sess_jp7bfpqaritm9ta8h3b5n40df1[/COLOR] In this file some session data,html and mysql query are written. Can any one please explain me the description of this types of file. any encrypted data format is used to store session. | |
Hi, I'm very new to Javascript and AJAX so I'm using a script that I found, and I need it to send a PHP variable from the global variable (in the address bar where it says &post=94 for example) along with the other data that the script sends to a … | |
Hi all, I wish to present a user with a text field that can take any of these inputs: The URL such as [url]http://www.imdb.com/title/tt0892318/[/url] or a number which will be the title code such as tt0892318 and a number that will be prefixed with tt and be interpreted as the … | |
hello frnds, I have a code snippet where auto suggest dropdown will come in basis of text box value entered by the user. [CODE] <?php $response=""; $i=0; $con=mysql_connect("localhost","root","root"); mysql_select_db("autosuggest",$con)or die(mysql_error()); print "<script>var [COLOR="Red"]jarray[/COLOR] = Array();</script>"; $q=mysql_query("select * from suggestion"); $n=mysql_num_rows($q); while($r=mysql_fetch_array($q)) { $response=$r['suggest']; print "<script> j[COLOR="Red"]array[/COLOR][".$i."]='".$response."'</script>"; $i++; } ?>[/CODE] this … | |
Hi, I am using ckeditor. when i work in localhost (in my pc) its working fine in formating and image upload.but when i work with it at server it formating and image upload is not working. for ex. - if i formate font with some style and color and size … | |
Hello, I would like to allow the author of a post to edit it after he/she posts. I currently have this: [CODE]<?php get_currentuserinfo(); global $user_ID; $author_id=$post->post_author; ?> <?php if ($user_ID == $author_id) { include 'post-upd.php'; } else { echo "You are not the post author."; } ?>[/CODE] I tested this … | |
if ( $_GET['2,03'] == "on") I want to use 2.03 instead of 2,03 is this possible? here is the link of the page as you can see the parameter is 2%2C03 [url]http://localhost:8080/untitled-3.php?type=Card&2%2C03=on&button=Next++%3E[/url] | |
Hi! I have websitepanel installed on a Windows 2008 Server and i want to use the websitepanel API. What im trying to do is to add a user to websitepanel with php/nusoap. Im not so steady when it comes to soap. So i was wondering if someone in this beautiful … | |
Hi, I am trying to do the following: produce an interactive web application that will scrape the contents of a movie web page and extract the movie title, year of release, User rating, Director, runtime and the first three cast members. This is the typical data in red that I … | |
I want to retrieve the latest autoincremented id of the record which i have inserted, so that i can use it update query. I used last_insert_id() but it seems to be not working.Please help as i m still learning PHP here's the code.. $insert = "INSERT INTO `farmlogin` (`uid`, `name`, … | |
Hello everybody, Im an IT STUDENT, I was assigned to develop a project for our college Library with more functionalities and facilities. Who roles: Administrator Librarian Lecturers Students from 1st year to 4th year Criteria: Store Book Information Store Users Information Store information on lending books Achieve information on returned … ![]() | |
Hey, guys. I have this code here, and for some reason, it won't update the data! At all! When you press 'submit', it just reloads the data that was already on the DB table. It's really confusing!!! [CODE] <? include_once ("../auth.php"); include_once ("../authconfig.php"); include_once ("../check.php"); $connection = mysql_connect($dbhost, $dbusername, $dbpass); … | |
My uploader allows the following file formats: jpg pdf gif png I tested that if someone was to name a file configure.php.jpg, my uploader allows it to upload I want to do a check to see if the user has 2 extensions, and if so it will not allow them … | |
Here is what i have a problem with. I need to display variable inside of an html table if the variable's are not empty from a form on a previous page. When the form is fully filled out it isn't displaying any of the table at all. Please help. [code] … |
The End.