39,326 Topics

Member Avatar for
Member Avatar for shasha821110

Hi,all I want to ask for the php code to check the password validation? It couldn't be entire alphabetic or entirely numeric? Thanks.

Member Avatar for shasha821110
0
136
Member Avatar for webecho

Hi All I'm trying to combat some SPAM coming through on a booking form. It's all the usual rubbish. I've been searching to find the php code that would do the following if ($msg contains http:// or [url]www.)[/url] {echo "Please don't put links in the comments - it looks like …

Member Avatar for webecho
0
1K
Member Avatar for grunge man

I tried doing this, and it didnt work. Im goign to identify the $css in the else of an if else statement; so when its else, it willl turn the web page that color, but i cant figure out how to acomplish it. [CODE] $css = "<style type="text/css"> body { …

Member Avatar for grunge man
0
235
Member Avatar for emhmk1

Hi There, I'm currently creating a form and inserting the details into a database, the problem i came across is when the php checks and inserts the data i made the password md5 [code] $password = md5($_POST['password']);[/code] However if the user wants to request his password via email how will …

Member Avatar for emhmk1
0
69
Member Avatar for incd

Hey, How do I implement multi-level dynamic navigation with php? Assuming my database would be like: [CODE] id name parent_id ---------------------------- 1 page 0 2 sub1 1 3 sub2 1 4 sub12 2 [/CODE] I've tried many ways, but haven't found any 'good' methods/implementations so far. Now I have: [CODE] …

Member Avatar for somedude3488
0
1K
Member Avatar for Elle Dee

hi guys, I was wondering if you could help me. I'm trying to create a report on my website through mysql and php. So I'm at the part where I have to pull in the parameters they want for the select statement. I'm using a dropdown box for this and …

Member Avatar for pritaeas
1
267
Member Avatar for sassenach

Hi there, I am using AJAX XMLHttpRequest with PHP in order to view full project photos according to project id. This is my ajax request: [CODE]function getMessageResponse(str){ var xmlHttp; try{ // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e){ // Internet Explorer try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e){ try{ …

Member Avatar for digital-ether
0
129
Member Avatar for jayb

hello everyone , I am beginner in PHP, I have a problem , I have a login page (login.php), where user can enter some necessary information ,after submiting ...it goes to another php page(submit.php) and do something there , ... however on that submit.php it perform some business logic validation …

Member Avatar for cwarn23
0
111
Member Avatar for london77

hii there.. im have created a user login page with php and mysql. but somehow im having problem when i try to show username information after user login. i have put this code <? echo $myusername ; ?> but it doesnt show the username.. what can be the problem? thnks …

Member Avatar for somedude3488
0
149
Member Avatar for shasha821110

Hi, all I tried this many times in XAMPP. It always not give me direct which stuck me now. Here is my code: [code=php]if (mysql_num_rows($result) == 1) { $_SESSION["authenticated"] = TRUE; redirect("index.php"); } else { die("could not find a row"); }[/code] My redirect function code is really normal: [code=php] function …

Member Avatar for somedude3488
0
56
Member Avatar for veledrom

Hi, Does anyone have a script that is used to upload and resize the all type of images? I have script to resize upload and JPG files only but i need GIF, BMP and others too. Thanks

Member Avatar for nathenastle
0
78
Member Avatar for jayb

hello everyone , I am beginner in PHP, I have a problem , I have a login page (login.php), where user can enter some necessary information ,after submiting ...it goes to another php page(submit.php) and do something there , ... however on that submit.php it perform some business logic validation …

Member Avatar for ahmksssv
0
68
Member Avatar for PinoyDev

[code=php] $_SESSION['MM_paymentstatus']="to be verified"; $modeofpay="Credit Card"; mysql_select_db($database_enamysqldb, $enamysqldb); $query_recunvesummary=sprintf("SELECT * FROM paymentsummary WHERE username=%s AND paymentmode=%s AND foryear=%s AND initialstatus=%s", GetSQLValueString($_SESSION['MM_Username'], "text"), GetSQLValueString($modeofpay, "text"), GetSQLValueString($_SESSION['MM_yearlynow'], "text"), GetSQLValueString($_SESSION['MM_paymentstatus'], "text")); $recunvesummary = mysql_query($query_recunvesummary, $enamysqldb) or die(mysql_error()); $row_recunvesummary = mysql_fetch_assoc($recunvesummary); $totalRows_recunvesummary = mysql_num_rows($recunvesummary); $totalunvepayment=0; while($row = mysql_fetch_array($recunvesummary)){ $totalunvepayment = $totalunvepayment + $row['amountpaid']; } …

Member Avatar for PinoyDev
0
152
Member Avatar for Acute

Hi, there. I want to create a table by using PHP which'll get data from MySql DB and display it on a table. Sounds like easy, but.....I'd like the table to be like in Excel(i mean not using 'select forms', you just click on field and update it...), is it …

Member Avatar for nathenastle
0
95
Member Avatar for vikidigi

PLz Help i have some Images in DataBase in Blob field but images are displayed with a Cross (X) not the actual image MainPage.php//code [code=php]<?php $con = mysql_connect("localhost","root",""); if (!$con) die('Could not connect: ' . mysql_error()); mysql_select_db("db1", $con); $image = mysql_query("SELECT * FROM userimagetable"); while($imageResult = mysql_fetch_array($image) ){ ?> <img …

Member Avatar for nathenastle
0
69
Member Avatar for virk1711

[ICODE]How to parse some selected information from XML file using php [/ICODE]

Member Avatar for somedude3488
0
56
Member Avatar for blackryu21

Hi, I have a code for guestbook viewing and I can see all the entries. I need to know how to have it so a user can enter a date range on the website and the entries show up that are between the range. [code] <?php $host="localhost"; // Host name …

Member Avatar for darkagn
0
82
Member Avatar for nitros

hello all..i guess i need some help with u all experts here i got a problem with two drop down list and a submit button.i want to make the submit button display an image following the condition of select listi want people select from drop down list 1 and drop …

0
70
Member Avatar for sreya.n

hi all, Can I use the light box for displaying the contents in a php file in the pop up.For an image the lightbox is working properly.Is it possible to pop up a script using light box? xpecting ur reply... Thanx in advance...

Member Avatar for jeffc418
0
117
Member Avatar for sanfan49er

I get a parse error at the end of my code. I can create an entry and successfully add it. Everytime I try to view it this message appears Parse error: parse error in C:\wamp\www\viewguestbook.php on line 57. Please HELP!!! so close to being finished [code=php]<?php $host="localhost"; // Host name …

Member Avatar for sanfan49er
0
106
Member Avatar for 1baxter1

Hi, im currently building a photography portfolio website for ym dissertation and i have a quick question. The site has several categories of photos, would it be easier storing all in photos in one table and adding a album and field or storing each separate category,of photos, into its own …

Member Avatar for cwarn23
0
101
Member Avatar for AccesInterzis

I often write comments when I create a PHP script or when I write in HTML and CSS. My question is: those comments affect very much the loading times of my web page?

Member Avatar for cwarn23
0
74
Member Avatar for Zhoot

Heya. I have a problem with a mail script. It returns no error or anything it just doesn't send. [code]if(mail($email, "Test", $mess, "From: $nick <$email>")){echo 'Mail sent!';}else{echo 'Mail failed';}[/code] Sorry if the code looks confusing, I can write better but I've rewritten it so many times to get it to …

Member Avatar for cwarn23
0
114
Member Avatar for nn_future
Member Avatar for sreya.n

Hi all, Any body knows what is meant by the following regular expression '/\&acct=([^"]*)/' using with 'preg_match_all'. If knows please do reply me... Thanx a lot in advance...

Member Avatar for pritaeas
0
66
Member Avatar for samarudge

Hi, I am developing a piece of software which is not in any way being designed to hack into my schools proxy server using HTTP auth :P At the moment I have got it to generate random passwords of a random length, however using this method it is sometimes repeating …

Member Avatar for samarudge
0
175
Member Avatar for swit

Hello, can anyone help me. im working on a project using joomla cms and within a certain component, all of a sudden the save, edit and cancel buttons dont work. all the buttons that have javascript code behind dont work in the joomla back end. plus, the buttons work perfect …

Member Avatar for swit
0
139
Member Avatar for PinoyDev

good day.! I want this date format to be echo. 2009-2010. My code gots error when i try to show this format. Here is my code: [code=php] $nowdate = date('Y') "-" date('Y') + 1; echo $nowdate; [/code] Thank you for giving time this simple problem. God bless on this mother …

Member Avatar for PinoyDev
0
157
Member Avatar for rEhSi_123

Hello Fellow members, Need assistance in my PHP/SQL statement please. [code=php] $sql1 = "SELECT * FROM `forum_cats` WHERE `admin` < ".$row['admin']."+1"; [/code] I would like the above code in Ascending order i.e ORDER BY ASC. Thanks

Member Avatar for nathenastle
0
105
Member Avatar for 1baxter1

Hi Ive just came across this syntax error and have no idea on how to go about fixing it hope someone can help? Im using Php myadmin # Server version: 5.0.45 # Protocol version: 10 Here is the error: "You have an error in your SQL syntax; check the manual …

Member Avatar for claritydigital
0
119

The End.