39,402 Topics

Member Avatar for
Member Avatar for assgar

Hi The goal is to allow the user the ability to compare daily schedules of between 1 to 7 users. The number of columns/user schedule and column headers are dynamically created base on user selection. Each user schedule is set up in columns with the user name at the top …

0
117
Member Avatar for Borderline

Hi There I have a very simple web gallery in php and mysql. I have noticed upon creating it, that I have several fields in my database contacting the same information (to a certain extent) and I wondered whether this would eventually put a strain on my server. Would it …

Member Avatar for amigura
0
134
Member Avatar for OmniX

Problem is: I click my submit button it updates the database but not the website content, I click the submit button again and it updates the website content this time. This problem always pops up, and its due to incorrect structure of code in most parts :( I cant seem …

Member Avatar for OmniX
0
288
Member Avatar for veledrom
Member Avatar for mwasif
0
45
Member Avatar for chitra1

Hi, I hav created html pages containing radio buttons and checkboxes. But how do I send the values of radio buttons and checkboxes and drop down button values to my database using POST. here are my radio buttons and drop down button: [code=html] <tr> <td>Marital Status</td> <td>:</td> <td>Single</td> <td><input type="radio" …

Member Avatar for Ole Raptor
0
99
Member Avatar for OmniX

"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." Now this is a really stupid error. (yes that sums up the error S T U P I D) I am making an update to …

Member Avatar for OmniX
0
92
Member Avatar for oku

Hello everyone, just got a query regarding calculating I'm building a form and depending on how you fill it in you are given a score, currently i am using if/else statements. Here is an example $age is taken from the database after the form is completed (persons age) $mc is …

Member Avatar for oku
0
138
Member Avatar for m_shanak

hello, i just asking if any body can help me to make a marquee display data from mysql data base like this web site [URL="http://www.aljazeera.net/NR/exeres/F06E0D8B-BE98-445A-9752-8E7EA9DAD30F.htm"]http://www.aljazeera.net/NR/exeres/F06E0D8B-BE98-445A-9752-8E7EA9DAD30F.htm[/URL] thx v. much

Member Avatar for nav33n
0
274
Member Avatar for trient

Hi, I've come across a sample of error checking for check boxes: $retail_checked = (isset($_POST['retail']) and $_POST['retail'] == "on"); where the $_POST[] == "on" , where this apply in <input type="checkbox" value="1" name="retail" $retail >1 ? How does the $retail store the value 1 there, does it pass the value …

Member Avatar for amigura
0
106
Member Avatar for kevin wood

i have created this piece of code to retrieve the path to a file from a mysql db, the file exists and can be displayed directly from the sql query. the code looks like this [CODE]$query = "SELECT broad1 FROM images_broad"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $image_path="{$row['broad1']}"; }[/CODE] i now want to display …

Member Avatar for kevin wood
0
147
Member Avatar for sweetleilani

Hi. I'm a newbie to php and have created a login form that does not use an sql database. After inputing all the code I've tested it in IE and it doesn't work properly. If I leave the username and password blank but hit the submit button, it takes me …

Member Avatar for jana36
0
92
Member Avatar for kevin wood

i have store an image on the server from a file upload with a random number attached to it. i have then stored the random number in a mysql db for use on other pages to display the images. the problem i am having is that the image will not …

Member Avatar for kevin wood
0
75
Member Avatar for phploveisgood

Please I need some help! When I am developing, these code below works fine: [code=php]<?php if($_SERVER['SCRIPT_NAME'] == '/aktuelle seite/index.php') { $style_home = 'style="background-color: #6C674F"'; } ?> <ul> <li class="linkLevel01"><a href="index.php" class="homy"<?php echo $style_home ?>>Home</a></li>[/code] But, when I put on the server : [code=php]<?php if($_SERVER['SCRIPT_NAME'] == '/bobo/index.php') //"bobo" is the name …

Member Avatar for amigura
0
294
Member Avatar for ray_broome

Hi, I've got a form with a few text fields, and only today I noticed that when i tried copying some text from an email and pasting it into one of the fields, after submitting to the database (and printing the query), i noticed that the name sent had something …

Member Avatar for rgviza
0
192
Member Avatar for maydhyam

Hi All, I have a form with a submit button that enters the registration data into the MySQL DB...is there a way for a notification to be sent to the System Administrator notifying her about the registration?

Member Avatar for maydhyam
0
79
Member Avatar for maydhyam

Hi, Can anyone tell me what is wrong with my code? I am trying to have an email sent to the email addy hardcoded informing the the email receiver that the info was sent into the DB...and when I do add a user, no email was sent...only the registration data …

Member Avatar for maydhyam
0
175
Member Avatar for maydhyam

Hi All, I think I'm lost..... Here's my problem, I have a searchUser.php which allows the user to enter the Employee ID and submit (which searches for the user). The result is displayed from the chunk of code below. I want to allow the user to append a particular field, …

Member Avatar for maydhyam
0
120
Member Avatar for servis

i am extemly newbie and don’t know whether I should post my problem here or somewhere else, however… i have following problem in one of my php-mysql application header link through browser is, "http://localhost/test/reply.php?id=852" and query is as follow, [ICODE] $name=$_POST['name']; //from the name form $q_id=$_GET['id']; $sql="INSERT INTO `test`.`reply`(`rid`,`tid`,`name`)VALUES(NULL,'$q_id','$name')"; $result=mysql_query($sql);[/ICODE] …

Member Avatar for rgviza
0
4K
Member Avatar for princeanthony

Please write echo statement from html statement below; <a href="javascript:ajaxpage('test.htm', 'contentarea');">test</a>

0
73
Member Avatar for Ole Raptor

Hello I have been working on this script for a little while. All is working good(get all information into the xml). But I am needing to have the php code add an image to the xml for download. If anybody as any ideas i would greatly appreciate it. I have …

Member Avatar for Ole Raptor
0
97
Member Avatar for OmniX

I have a variable in a variable. I have done this before but it is not working this time. I have it in a for loop so my code is: [code=php] $abc1 = one; $abc2 = two; for($i = 0; $i < 2; $i++) { echo $$abc$i; } [/code] The …

Member Avatar for OmniX
0
127
Member Avatar for jinx_uk_98

Hi guys, I have this sql statement that is trying to insert data from some fields <?php $con = mysql_connect("xxx","xx","xx"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("xxx", $con); $sql="INSERT INTO guests (guest_name, guest_email) VALUES"; for($i=0;$i<sizeof($_POST);$i++){ $sql.="('".mysql_real_escape_string($_POST[$i])."','".mysql_real_escape_string($_POST[$i])."')"; if(!$i==sizeof($_POST)){ $sql.=","; } } // if (!mysql_query($sql,$con)) { die('Error: ' …

Member Avatar for nav33n
0
91
Member Avatar for sanch3za

for example : I have 4 check box with their own variables a,b,c,d How can I create query with condition using what users choose, where users can choose more than one check box thanks for your support

Member Avatar for nav33n
0
81
Member Avatar for twelvetwelve

Hi I want to split a variable to check what type of user they are. If they are user type 1 their username will be in the form "LLL" where L is a letter. If they are user type 2 their username will be in the form "LLNNNNN" where L …

Member Avatar for rgviza
0
142
Member Avatar for jaasaria

could anyone can give me some php site that can be uploaded the source code........ the best site for newbie..... and expert..^_^ any help would be appreciated......... thxxxxxxxxx in advance......... jaa

0
69
Member Avatar for websurfer

Hello, all: I need some help with a dynamically populated dropdown menu... I have managed to dynamically populate the dropdown menu from my item_categories table, and it works fine, EXCEPT once I have entered an item and want to bring it back into the form to UPDATE it, how do …

Member Avatar for ryan_vietnow
0
119
Member Avatar for ChristieLuv

Hi! I'm trying to find a basic PHP code that uses an HTML form to upload an image to a specified directory and after that the image address can be called for displaying the image with PHP or putting it in a textarea box for linking. I know it seems …

Member Avatar for servis
0
103
Member Avatar for Scottmandoo

ok lets make this a little simpler than my last topic. I found this [URL="http://wiki.dreamhost.com/index.php/PHP.ini"]site[/URL] which everyone who follows it seems to be getting results from, though it says "You are expected to be knowledgeable in the UNIX shell." which i have got no idea what that even is. I …

Member Avatar for rgviza
0
102
Member Avatar for bondi007

Hello I have just installed lamp on Debian and when I dropped my files in there is just sayed it worked lol so I deleated the files that said it worked and put the phpbb folder into it now it still says it works so if I go to [url]http://localhost/forum[/url] …

0
63
Member Avatar for tanha

Hello everybody, The following code I found from another place, and it was in Java Script, so I changed it to PHP, and I dont know: 1. how it is work ? 2. is it work at all? 3. need the algorithm and procedure of it... [CODE] // PERSIAN_TO_JD -- …

0
70
Member Avatar for mrcniceguy

i were working offline all the time with wampserver installed in my comp. but after i loaded it in school server i experienced a problem, in my web after login in your own profile appears also their is a link were you see other members profile. My problem is that …

Member Avatar for rgviza
1
292
Member Avatar for maydhyam

Hello there, My intentions are to enter the employee id in the search page, and have the results displayed below the area to enter the search criteria with the select box and update button( i only want to update 1 field) here are the codes..... My problem is whenever i …

Member Avatar for nav33n
0
161
Member Avatar for MDGM

Hi guys, I did a quick tutorial on the internet on using php and mysql. It is my first ever time using it so forgive me if im being a bit of a "NOOB". anyways ill post the script below and can you give me a few pointers about where …

Member Avatar for nav33n
0
104
Member Avatar for rjrasmussen

Hello, I am quite new to this, but I am attempting to create an update form that connects to a database. It pulls the information correctly, but it will not update...every time I hit update I get the following error(s): "No Primary Key Column was set. (UPD_NO_PK_SET)" ...for this error, …

Member Avatar for Ole Raptor
0
78
Member Avatar for nickyspace

hi all can anyone help me out regarding sending sms through php form i searched hell lot of it but i couldn't found any code related to php.. help me plzzzzzzzzzz. if possible regards priti

Member Avatar for Ole Raptor
0
140
Member Avatar for crissrusso

the thing is to do 1 index.php wich detects browster Firefox and IE7 to redirekt it in [url]http://examples.com/[/url] , if it detects IE6 let it go directly to that saves code in examples.html Sample how can i do it? [CODE]<? $filename = "examples.html"; $realfile = "examples.html"; header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; …

Member Avatar for phper
0
95
Member Avatar for Vai

Here is what I am trying to accomplish: When a user logs in, their username will be displayed... Trouble is I am unsure how to co-relate the username w/ the id... thanks for any and all help.... [code] <?php require_once('core/db.php'); require_once('core/secure.php'); $query = mysql_query("SELECT username FROM admin WHERE id = …

Member Avatar for ryan_vietnow
0
168
Member Avatar for 2xldesign

I am working on a 2 page form. I need to have a file upload on the first page. I need to pass the file upload values to the insert page. I am not sure what approach to take. I have tried sessions but had no luck. Here is a …

Member Avatar for 2xldesign
0
274
Member Avatar for Suhacini

Hi, Can anyone tell me how can I move from one page to other page.I want something like wht we have here. Example: Page 1 of 5 : 1|2|3|>

Member Avatar for Suhacini
0
71
Member Avatar for trient

Hi, I've these values: a) < 100 000 = 5 points b) 100 000 - 250 000 = 4 points c) > 250 000 = 3 points [CODE]$a = 140000; $b = 23; if ($a > 250000) { $b = 3; echo $b; } if ( 100000 < $a <= …

Member Avatar for nav33n
0
114
Member Avatar for mrcniceguy

i created a profile,where after login someones Datas appears. Now i need to put profile comment,that any member can leave a comment to another. So i dont know how To get started especially with how the mysql table could be. Help please!!!!!!!!

Member Avatar for nav33n
0
265
Member Avatar for Suhacini

Hi, Can I change the information of a site depending on ip address. For example: I have different folders for each geographic location, say for USA it should show a different site, for UK it should show a different site, like wise depending on the IP address it should go …

Member Avatar for rgviza
0
119
Member Avatar for ryy705

Hello, Given a string like <form method="post" action="xyz.com"> I have to change it to <form method="post" action="myurl.com">. Could someone help me with this please? I think its something like [code]preg_replace("/(<form.*action=")xyz.com(*.>;)/", "$1myurl.com$2")[/code] but its not working. Kindly help.

Member Avatar for rgviza
0
87
Member Avatar for forzadraco

how to copyng data from another database postgre to mySQL database without cronjob with realtime... php can do it..? thanks

Member Avatar for rgviza
0
64
Member Avatar for logical69

Ok here is the story, im trying to get a clone script to work and im failing missrably this is mostly due to the fact im still learning everything from php, javascript and linux! (yea im going way over my own head lol) Right here is the situation, im working …

0
69
Member Avatar for lolo1313

Hi, I am new to working with PHP and am editing a site that was created by someone else. I need to have a link open a new tab instead of redirecting away from the original site. What PHP code is needed to do this? Below is what is already …

Member Avatar for Fungus1487
0
151
Member Avatar for kevin wood

i am using php to upload images onto the server and then they are being displayed on other pages around the site. the problem i am having is if the user changes the images that they have uploaded the old ones are displaying from the cache. i would like to …

Member Avatar for kevin wood
0
108
Member Avatar for kevin wood

i have created a table to store a random number in and now i need the number that has been stored in the db to equal a variable on the new page. to get the information out of the db i have used this code [CODE]$query = "SELECT random1 FROM …

Member Avatar for kevin wood
0
69
Member Avatar for Kadence

Is there any difference between regular expressions in C++ and in PHP/Perl? Or can one use the same regular expressions in C++ as in PHP?

Member Avatar for twomers
0
47
Member Avatar for rime

I have written the following image upload code: image_upload.html: <html> <head> </head> <body> <form method="post" action="check_image.php" enctype="multipart/form-data"> <table border="0" cellpadding="5"> <tr> <td>Image title or caption</td> <td><input name="image_caption" type="text" id="image_caption" size="55" maxlength="255" /></td> </tr> <tr> <td>Your user name:</td> <td><input name="image_username" type="text" id="image_username" size="55" maxlength="255" /></td> </tr> <tr> <td>Upload image:</td> <input type="hidden" …

Member Avatar for fedderico10
0
107

The End.