39,402 Topics
![]() | |
Hi! I am having trouble in checking userlevel at the time of login. The pages set for admin level are not displayed if the user is not admin, but admin cant access the pages either!!:D Please solve my problem! My code is: [CODE]<?php if(!isset($_SESSION['userlevel']) || empty($_SESSION['userlevel'])) { if ($_SESSION['userlevel'] == … | |
if my php website is ideal for 30 minutes it shuld be redirected to login page please help me.... this is my checkuser.php [code=php] <?php session_start(); include("config.php"); if (isset($_POST['sub'])) { $myusername = $_POST['txtusername']; $mypassword = $_POST['txtpassword']; $name = stripslashes($myusername); $password = stripslashes($mypassword); $myusername = mysql_real_escape_string($name); $mypassword = mysql_real_escape_string($password); $sql = … | |
Hello I'm trying to name a uploaded image to my website with a random number / letter combination and if the number it generates is taken it makes a new one untill it finds a free one, then i need to insert the url of the image into a table … | |
function tempdbentry() { var regex=/^[0-9A-Za-z]+$/; //^[a-zA-z]+$/ var myname = document.ItemEntryForm.iname.value; var mycat = document.ItemEntryForm.selectcat.value; var mypic = document.ItemEntryForm.ipic.value; "<?php $phpmyname = '?><script language=javascript>document.write(myname);</script><?php'; $phpmyname = str_replace('?>', '', $phpmyname); ?>" "<?php $phpmycat = '?><script language=javascript>document.write(mycat);</script><?php'; $phpmycat = str_replace('?>', '', $phpmycat); ?>" "<?php $phpmypic = '?><script language=javascript>document.write(mypic);</script><?php'; $phpmypic = str_replace('?>', '', $phpmypic); … | |
im new to sql but long story short. just installed mysql server 5.5 and started the configuration and it failed to apply the security settings with error message 2003, cant connect to server on local host. so i cant finnish the installation and canot run mysql.exe. it just beeps at … | |
I am trying to set up a Contact form on my website that will: [LIST=1] [*]Gather the user's info [*]Validate that none of the required fields are empty, if they are, then redirect the user back to the contact form page to fill in the empty field [*]Send it to … ![]() | |
Hi, I have a html file Top.htm: [CODE]<form action="" method="post"> <fieldset> <input id="searchbox" type="text" name="zoekfunctie" value="Zoek..." /> <input type="submit" name="zoekbutton" value="Zoek" /> </fieldset> </form>[/CODE] I then include this page in my index page (and in many more pages to come): [CODE]<div id="top"> <?php include("Top.htm"); ?> </div>[/CODE] Now the problem is … | |
Hello, I have run into a problem where I need to update multiple rows in an SQL table at once. I have found and tried to use the tutorials on setting an ID and then looping through the data that way ([url]http://www.daniweb.com/forums/thread35096.html[/url]) but my setup is a little different: The … ![]() | |
Hi all, Im a bit stuck. I think im staring the answer right in the face but cant see it. Im after a query that references 1 table. Its output will be each unique source code along with a total of grouped data from a single column. SOURCECODE Count of … | |
hey people . i am not a very good programmer . i am biginner in web designing . not a very biginner . i can design a full website in php/mysql and a can create a powerful php apps but my main problem is seo (search engine optimization ) . … | |
hi all i want to add all students grades in one form and then save each grade to the correct student i make 2 differents php page first one display all student id that is already registered in my website in this page instructor can add grade for each student … | |
Hi, all I want to get the data from the div tag, from this website [url]http://www.weather.com/outlook/travel/businesstraveler/hourbyhour/PKXX0008?begHour=7&begDay=4[/url] when you click on the firebug in firefox you can see there is a and under this div there are more divs there, I want to get the data (i,e,. only the 3pm, 25,25 … | |
Good Afternoon, I'm hoping someone can tell me how to resolve an issue that will apparently be pretty wide spread within our membership. I have an ad Directory that was created for our members to do member to member advertising with a component for public advertising, and everything came together … | |
I'm new in PHP how can retrive data from database using dropdown list ? I have created the dropdown menu [CODE]<select name="con_st" > <?php $sql = "SELECT distinct con_stat FROM contst "; $rs = mysql_query($sql); while($row = mysql_fetch_array($rs)) { echo "<option value=\"".$row['con_stat']."\">".$row['con_stat']."\n "; } ?></select>[/CODE] any help? | |
I'm indeed to find a suitable and nice templates for my website. I need your help..thank you.. | |
Hey everyone I was wondering what you guys thought about having a php slideshow on a website. Is is a good idea? Why or why not? Could I put user controls into it? What are its benefits or downfall versus a Jquery slideshow. Thanks in advance hope to hear you … | |
Hi to all. Can anyone help me with this? I have PHP script the save record. But I want to have time limit in saving the record. When the local time is 4:00 PM, the user can no longer save their record. Please help. Here's my code; if($_POST['submit']=="Save") { $name … | |
I have recently encountered dis error while doing <b>page validation</b> for my site. I have been trying a lot ,but still could not find the solution. Being a newbie to PHP, I would be obliged if u guys could help me out. The URL of d site is, [url]http://www.dmcewriteups.co.cc/register.php[/url] I … | |
i am using log4php for my logging in my development. is it possible to use 2 appenders on a single logfile? i wanted to have a daily logfile, thus wanted to use LoggerAppenderDailyfile that have properties also of rolling, thus needs the LoggerAppenderRollingFile. or if there is a way to … | |
Hello everybody! I'm a SEOer at present, but i want to be a php programmer! because seo job very very vapidly, every day gain backlinks, gain and gain... tired! And now I know HTML, also some javascript knowledge, but can't write js by myself , just modify... IF I want … | |
I want a table that is auto computing like the ability of the microsoft excel that when I input a data in cell B1, C1 and D1( just an example on the features of excel ) it will compute an average in cell E1 which does not need to press … | |
Im trying to use a regular expression backreference to reference a hash key. Here's an example of the non working code so you can see what I'm trying to achieve (I hope!): [CODE] $str="String of text containing item1 and item2"; $x['item1']="Item 1"; $x['item2']="Item 2"; $str=preg_replace("/item1/","$x[\${1}1]",$str); print $str; [/CODE] I want … | |
im havin trouble gettin my login.php file to work. what happens is i register and all the information goes into the database then once registered its supposed to say thanks for registering but doesnt, so i thought never mind il just login, i go to the login page enter my … | |
Hello, I have my site set up so that everything is done with AJAX requests to a script depending on what action is taken. If my script returns an error - such as the user is not allowed to take the action they tried to take - it returns an … | |
![]() | Hi I got the code from here: [url]http://www.642weather.com/weather/scripts-image-handler.php[/url] And I wanted to put a date in the text overlay. I know that this is possible and easy to do but I don't know how to do it in php. Could someone tell me please. Thanks in advance. ![]() |
Is having a php slideshow a bad idea. I was seeking your opinion because I dont know how many people are doing this already but with php everyone can view it. I want to know the drawbacks and advantages to both. Just hoping to get the best possible advice thank … | |
I need to restrict access to other table id's by making a check against an (id) of a table named users and then check that the (user_id) of another table is the same i.e table1 id username password table2 id somedata user_id if table1 id is the same as table2 … | |
Hi, I'm a bit new to php and am hoping that someone would be kind enough to help me with my problem. What I want to achieve is as follows: I created a form in my .php file, once I click the add button I want another form to appear … ![]() | |
![]() | I am building a website with a forum that I am building myself. I just don't know how to let the user change their time zone. My server time zone is my time zone ([B]date_default_timezone_set('Europe/London');[/B]). Please could I have some help with this. Thanks in advance, Cameron ![]() |
Ok, so I have a website on a CMS. Love it, except I can't process and dynamic code like PHP. My problem is thus: I have a form that needs to be processed through PHP due to it's complex nature (the CMS can't fully process the info). Now, we have … | |
Good Day to All: This is my first post here, so I apologize upfront for any etiquette violations. Please feel free to point them out. [B][U]My Dilemma[/U][/B] I have built a site in WordPress that is a business directory site. The idea is that a business owner will have their … | |
How to run PHP on pocket PC without internet connection? (under WM2003) | |
helloooo i am trying this query to compare records of two different tables... i m geting this message!! no required out put pplzz somebody help me its really urgent.. values for these ($jobTitle $industry $stationBase $gender $maritalStatus)are coming from textboxes! here is the code... [CODE]$query = "SELECT *, MATCH(industry, gender, … | |
I have a problem with refreshing the page layout. Since I have all the contents load in a div, when the page first loads it loads a default link into the content div. When the user clicks a link I want that page to be stored in a session variable($last_page), … | |
I have a problem with passing session variables between folders. I have a working login, and several session variables are created after a successful login. The session works fine until I try to use a script that is located in a different folder or directory. All of my scripts include … | |
Hi. I have a website powered by Joomla. So far everything is going good. Now, for security reasons, I changed the admin directory settings by following this tutorial: [url]http://www.joomplaza.com/index.php/tutorials/242-change-your-joomla-admin-folder-name-or-path[/url] Now, this procedure did not work at all. So, after this I deleted the "myadmin" folder, and deleted the ".htaccess" file … | |
I am a newbie and am at a loss on how to clear field of a form. My current form is the tradition form that check to see if it has been submitted. After it has, validation of each field is performed and if all is ok a record is … | |
i have a div like [CODE]<form method='post' action='send'><div id='fail' name='cool'>300</div><input type='submit' value='submit'></form>[/CODE] now how would i call that into a variable in php? i tried [CODE]$cool=$_POST['cool'];[/CODE] but it didnt work. help | |
Here is the json show: [CODE]{ "results": [ { "title": "Conflicting Reports on Iran\u2019s Arrest of a Foreign Woman", "multimedia":[ { "caption": "Moktada al-Sadr spoke to thousands of supporters on Saturday, stating conditional support for the Iraqi government." } ] } ...] }[/CODE] I tried this code, but I can … | |
i have an email form and it wont work. i have made sure the email is correct and is working, but i keep getting the 'or die' error. Please help. here is the code: [CODE]<?php $to = "****@***********.com"; $subject = "Contact Us"; $name = $_REQUEST['name'] ; $email = $_REQUEST['email'] ; … | |
Slight problem when embedding HTML inside PHP. Problem #1 logon php page contains the form for user to login. With successful login, it brings up the user to the resume page. In order to maintain the uniform design throughout all the pages on the site, the logon page contains the … | |
Hi i have multilang website when you entered homepage default site if you are from polonia it redirect to you polonia page this script works perfect but the problem is if you are trying to see [url]www.server.com[/url] instead server.pl and if you are from polonia you not able see because … | |
I am a programmer and i use 64-bit windows 7 as my OS and i need a free localhost server i can work on my PHP and perl on. I also need it to have MySQL PHPmyAdmin. If anyone has any ideas, please let me know. Thanks :D | |
This is currently the code I am using: [CODE]<?php //connect to database include 'global.php'; $case = date(ymdHis); //get form data $p1_firstname = addslashes(strip_tags($_POST['p1_firstname'])); $p1_lastname = addslashes(strip_tags($_POST['p1_lastname'])); $p2_firstname = addslashes(strip_tags($_POST['p2_firstname'])); $p2_lastname = addslashes(strip_tags($_POST['p2_lastname'])); $p3_firstname = addslashes(strip_tags($_POST['p3_firstname'])); $p3_lastname = addslashes(strip_tags($_POST['p3_lastname'])); $city = addslashes(strip_tags($_POST['city'])); //register into database $register_case = mysql_query ("INSERT INTO cases … ![]() | |
Hi Guys. Still learning PHP and I have been trying for the last few hours to display thumbnails from a database unsuccessfully. I would like them to be in the format: image1 image2 image3 image4 image5 image6 image7 image8 image9 etc. regardless of the number of rows returned. My sql … | |
Hi! I am trying to find a hint about Hierarchical login panel in PHP which authenticates the login user and gives rights as per his position in hierarchy like follows: [QUOTE] Administrator-> Manager -> Business Developer | Programmer -> Marketing Executive [/QUOTE] Where login rights are descending as per user … | |
Im trying to implement JCarousel in my site and have some confusion about what to do, two files, one called similar_products_stack which contains the query: [CODE]<?php $similar_items = array(); $category_in_now = zen_get_products_category_id($_GET['products_id']); for($i=0;$i<4;$i++) { $products_query_raw = "SELECT p.products_id, p.products_type, pd.products_name, p.products_image, p.products_price, p.products_model, p.manufacturers_id, p.master_categories_id FROM " . TABLE_PRODUCTS . … | |
Hi!, I have a contacts table in MySQL and I want output in a select menu. Problem is, some rows dont have any record in it, and it is displayed in very odd way as it outputs blank fields and some data in between. My overall code is: [CODE]<?PHP $query=mysql_query("SELECT … | |
i want the code for if user try to access the login screen for more than 3 times with invalid password then account should lock plzzzzzzzzzzzz...... | |
Hi, I'm trying to insert data into array after I retrieve it from database but I keep getting this error message: 'Fatal error: Cannot use object of type stdClass as array in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\DeliciousCupcakes\system\application\models\cupcake.php on line 22' Please help me. The framework I'm using is codeigniter. DefaultDirectory.php file … |
The End.