39,320 Topics

Member Avatar for
Member Avatar for trilithon

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 …

Member Avatar for trilithon
0
203
Member Avatar for kracko

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 …

Member Avatar for kracko
0
113
Member Avatar for trilithon

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 …

Member Avatar for trilithon
0
93
Member Avatar for micahgeorge

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

Member Avatar for jogesh_p
0
170
Member Avatar for muneer_alam
Member Avatar for liamfriel

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.

Member Avatar for chrishea
0
130
Member Avatar for Aamit

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.

Member Avatar for Aamit
0
228
Member Avatar for cluelessguy

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 …

Member Avatar for prerna21
0
340
Member Avatar for davidjennings

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 …

Member Avatar for davidjennings
0
158
Member Avatar for sandipan.rcciit

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 …

0
75
Member Avatar for pbcomput

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 …

Member Avatar for Borzoi
0
149
Member Avatar for cip6791

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 …

Member Avatar for cip6791
0
68
Member Avatar for unnamed17

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]

Member Avatar for Borzoi
0
46
Member Avatar for Roobin

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 …

Member Avatar for Roobin
0
201
Member Avatar for davidjennings

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 …

Member Avatar for davidjennings
0
494
Member Avatar for nsam

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`, …

Member Avatar for pritaeas
0
253
Member Avatar for cecilgladys28

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 …

Member Avatar for P0lT10n
0
54
Member Avatar for redous

Hi i have SQL query problem im trying to get x from my database using an array the code below works but does not tell the SQL which user name to get x from so it just throws string. can anyone rewrite the below code so that it includes the …

Member Avatar for rch1231
0
147
Member Avatar for idskot

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); …

Member Avatar for hielo
0
146
Member Avatar for Smudly

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 …

Member Avatar for kekkaishi
0
69
Member Avatar for MsuDU19

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] …

Member Avatar for MsuDU19
0
186
Member Avatar for BoB3R

Hello, I don't have any errors it just not showing a thing if i leave only the html code it works but in php it wont so if you can help me would be cool, Thanks =] [CODE]<?php $a = trim($_REQUEST['a']); $student = trim($_GET['student']); if($a == 'edit' and !empty($id)) { …

Member Avatar for BoB3R
0
148
Member Avatar for whiteyoh

Hi All, Im getting and error from the following mysql statement when running it in the browser. Any help would be appreciated. "you have an error in your sql syntax near -nextq accounts" on line 1" this is the code [code] <?php $result = mysql_query("SELECT DISTINCT(source) FROM accounts WHERE source …

Member Avatar for fobos
0
98
Member Avatar for redous

okay so i got a little script that from button links load different information within the same page what im trying to achieve is pulling php coding to the same file but each time i try it throws up errors below is the code that is giving me a problem …

Member Avatar for redous
0
306
Member Avatar for redous

Hi, I have some PHP code in a project which if a user is logged in the in will display the username and other options and if the user is a guest it wont. [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Home</title> </head> <body> <!-- HTML …

Member Avatar for redous
0
189
Member Avatar for AMADH

I a table that I have added the function to be able to sort, it works, but it is coming up with an errors: Notice: Undefined index: sort in C:\wamp\www\test stuff\test.php on line 25 Notice: Undefined index: sort in C:\wamp\www\test stuff\test.php on line 28 Notice: Undefined index: sort in C:\wamp\www\test …

Member Avatar for AMADH
0
1K
Member Avatar for Puster

Hello, I am worcking on a script that do that i can upload files to my site and set size,filename, etc into my database but this isnt worcking, can someone help me?:) [CODE]<?php include "connect_profile.php"; $obj = new physic_profile(); // Setup our connection vars $obj->host = '*********'; $obj->username = 'sjo*******'; …

Member Avatar for P0lT10n
0
137
Member Avatar for ale89

Hi everyone! How is everybody? Help me modify this code to show a user profile. I need to show all the data but do not know how to put in the code to display data and other insurance I have to change the sql query. If the logged sample data …

Member Avatar for P0lT10n
0
262
Member Avatar for dschuett

I have downloaded and implemented Uploadify because users were tired of having to browse to each and every file they needed to upload(since this is used for uploading multiple pictures) allows a user to select multiple pictures at once without having to click a "BROWSE" button to go fetch each …

Member Avatar for P0lT10n
0
225
Member Avatar for nick3592

Hi i would like to know if there is a way i can make PHP can open a page and just sit on that page till i decide to stop it. This might sound a bit weird but i need it for a site tool I'm making. If PHP can't …

Member Avatar for P0lT10n
0
70

The End.