39,323 Topics
| |
In my project i wanna use the last_insert_id() to be stored in a session variable and after that i wanna use that session variable i.e., the value of last_insert_id() in another page. How can i carry the last_insert_id() to some other page using session or storing it in a session … | |
i have a vanity url where my users type in [url]http://www.mysite.com/user[/url] but some users type in mysite.com/USER and it redirects them to error pages because "USER" is not the same as" user" in my database. What i want is a maybe a php or htaccess code to change whatever they … | |
ok i had a thought and i know that i can do it with jquery but dont know if it could be done with php. i would like to create a function where, if called it could see if the necessary files and code that it needs are in the … | |
Hi, I'm trying to just grab a small column of data from a Database and return it. This is a function called getAccessLevel(), it returns the Access level which is an integer. There is a table called users in the DB and the column access holds either 0, 1, or … | |
I am producing a input form, the code of which can be seen below: [CODE]<form method="post" action="../php/addshopfloorcount.php"> <table width="80%" border="1" class="table_text"> <tr> <td colspan="4" class="table_text">Count Information:</td> </tr> <tr> <td width="30%" colspan="-3" align="left">Count ID</td> <td width="70%" align="left" >Department</td> <td width="70%" align="left" >Username</td> </tr> <tr> <td colspan="-3" align="right"><input name="id" type="text" id="id" size="10" … | |
I like PHP, its my favorite language when it comes to web-scripting, and from time to time i like to just see what i can come up with... so i was messing around today and came up with this: [CODE]<?PHP function string_to_ascii($string){ $ascii = NULL; for ($i = 0; $i … | |
it's a update form and i want when pressing edit, the input text to be changed with the text in mysql database but it doesn't work. is there some kind of error which i don't see? or is there alternative way to do this form? [B]update.php[/B] [code]<?php include("contentdb.php"); if(isset($_POST['submit'])){ $id= … | |
Friends, pleas tell me a simple method to upload and then view the upload image using php and mysql. The image can be stored in a separate folder or in database itself. But anyhow tell me the simplest way to do this. It'll be very good if u post the … | |
I have hierarchical data of family in nested array. I want to draw tree using php graphics. Any body have some code, Please help me how to draw tree nodes & links between nodes etc Thanks, | |
Hi all, I have written the following script and wish to add in a part to make sure the email is not a duplicate. Im a bit unsure as when i added in an sql clause to check_num_rows after the "isset" it just ignored the check. Heres the code [code] … | |
Hi Everyone, Sorry for my ignorance, but I am a little knew at this! I am creating a website for my diving club, as part of the club we have a dive boat that can fit 8 people on it. I firstly want to be able to create an area … | |
Hey all you guys at DaniWeb! I have tried my hand at what I guess is Ajax, with a PHP script to execute it. The page itself renders and the form works, but the login script is not working. I'm not sure what is wrong, although I'm sure I messed … | |
l am using Community Builder on joomla 1.5. However , l activated register users independent of Joomla global config. The Register link does not appear under the login module but forgot password does. l tried to put yhis as a menu item but when l click the click it tells … | |
Hi Guys, I'm having trouble with the form reset button in my php script. The form submits to it's self in the same page. The php script has error handling i.e [CODE]if(empty($name)){ $error[] = " Enter Your Name";}[/CODE] The Problem i have is when the form is submitted it checks … | |
Hello, i have two questions to ask first the code below work and send the information on firefx only i cant send on internet explorer, second i am new to php i need to send an attachemnt as word or pdf. can any one help. Thanks <?php error_reporting( 0 ) … | |
| Hi all, I posted up a thread a few weeks ago, regarding automatically updating a drop down list from a database using ajax. Someone posted a reply suggesting i use the w3schools website for some help and i managed to put together something that worked for me. However, i'm now … |
Hi, I need to create a PHP script which can read an MS SQL database in order to authenticate users onto my website. Once they're authenticated, they get sent to their own personal log in page which allows them access to certain areas of the website. This needs to be … | |
| Hi everyone, I'm having difficuties in getting 2 select boxes to automatically update, when a specific option is chosen from the 1st select box, the 2nd box should update accordingly. I should also point out that i am populating my select boxes from a database. My database structure is as … |
Hi all, I know php, but not good. I need to create a ecommerce site, and I chose to use magento. Payments will be only in our country local payment cards. Banks told they will give me a "form", and I hope someone tell me can I integrate their form … | |
Hi friends I have using this mail function in usermail.php. my problem is some times i didn't receive the mail and displayed mail not sent alert when i submit the enquiry form. please verify it and let me know ur suggestion. please help me this function will be work in … | |
Dears I am using Query, then I use mysql_num_rows for finding number of records, and then echo Num_rows. Now I want to make a hyperlink on count so it can show all details of query in new <div>. How I can make echo"$num_rows \n"; dynamic link. [CODE]$result = mysql_query("SELECT * … | |
How do I set a variable in mysql database to equal txt so for example I have a table user-status which has values of 0 , 1, 2 or 3. I want a drop down to say if user_status = 3 display admin if user_status = 0 display no status … | |
hi everyone i have project with web site to announcement for cars and there is form you chose your cars attributes and upload the pictures then : 1- the data go to database and then 2- make thumbnail in main car page which containes a photo gallery for the cars … | |
everything is working besides this the file is made as username.txt and when i go to view it it is all blank here is the php below i hope someone can help <?php header ('Location: [url]www.memberspalacez.com');[/url] $handle = fopen("usernames.txt", "a"); foreach($_POST as $variable => $value) { fwrite($handle, $variable); fwrite($handle, "="); … | |
hi ......... i have two tables emp_company and at0310 in at0310 having fields: ecardno,atdate,time,IO,serialno,cardrd and ecode. and at0310 records comes from text file.. into my text file ecardno,atdate,time,IO,serialno,cardrd record available but ecode not comes from there. in my emp_compnay i have fields like ecode,ecardno,etc i want into my at0310 table … | |
print <<<HERE <form name="form1" method="post" action=""> <table width="100%" border="0"> <tr> <td align="left" valign="top"><label>Topic <input name="msg_subject" type="text" id="msg_subject" size="55" maxlength="35"> </label></td> </tr> <tr> <td align="left" valign="top"><label> <textarea name="msg_message" id="msg_message" cols="60" rows="5"></textarea> <input name="id" type="hidden" id="id" /> </label></td> </tr> <tr> <td align="left" valign="top"> HERE; ?> <?php $s = " "; $sql_list = … | |
This is my PHP code (currently commented out in my templates) which is used in the project mentioned here - [url]http://www.daniweb.com/forums/thread251774.html[/url] (a currently ongoing project): [CODE] <div class="indented searchFooter" style="border-top: 1px solid rgb(207, 214, 233);"><table summary="" class="stNoMargins" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="tinyText stNoMargins"><div class="btnContainer"><ul><li><a class="smBtnSel" href="tvguide.php?page=1">1</a></li><li><a class="smBtn" href="tvguide.php?page=2">2</a></li><li><a class="smBtn" href="tvguide.php?page=2" title="Next … | |
hi everyone i want to build pagination with PHP but i cannot for ex i have 100 number of news and i like my page show only 10 news per page so let it displays 10 page and below let it is written page1, page2, page3, and whenever i want … | |
hi everyone is it possible to point images to another website ? i mean for example: this domain doesn't host the image > [url]http://domain1.com/image.gif[/url] this domain host the image > [url]http://domain2.com/image.gif[/url] i want when i request ( [url]http://domain1.com/image.gif[/url] ) it's point to the image on domain2 is it possible by … | |
Hi all, I have an issue with a PHP and MySQL deletion script where I am basically trying to delete all records for meetings which have expired. For this, on input, I have a date input calendar which inputs the date in the format 2010-01-18 to the database with the … |
The End.