39,316 Topics

Member Avatar for
Member Avatar for servis

hellow every body, script is giving error for the following code [ICODE] $link = "<a href="reset-password.php?ui=$row['user_id']&ak=$upassword">Reset the Password </a>"; [/ICODE] i have tried variables with quotes as well but result is sme. the error is following "Parse error: syntax error, unexpected T_STRING in C:\wamp\www\ProTest\password-forget.php on line 26" secondly update query …

Member Avatar for nav33n
0
75
Member Avatar for bigbob

Hi, I am very new to php and this forum so sorry if this has been asked over and over but I can't find anything when searching. Anyway I have used some script I found on the net which has a register a new member form and a login form …

Member Avatar for nav33n
0
194
Member Avatar for techker

hey guys cool forum..looks like there is lots of cool stuff here! i have a quick question. i need to do a list box for inserting a date. like a liste box of day/month/year that part is good.it is the inserting in database the hard part for me.see i never …

Member Avatar for nav33n
0
69
Member Avatar for heels

hi, I am doing a insert query over here and if the query is executed successfully, there will be a success message. However, whenever the query is being executed successfully, the success message is not being displayed. here is a snipet, can anybody guide me along? thanks alot. [code=php]//Execute SQL …

Member Avatar for heels
0
76
Member Avatar for tiger86

I don't know much about php but I do know how insecure it is and it is driving me up the wall. Why is this language insecure and what can I do to make php scripts more secure?

Member Avatar for pritaeas
0
101
Member Avatar for R0bb0b

I have a large multidimentional array that I am looping through to change it's structure and theoretically this function will work accept the "variable array" part. And maybe that's not the right name for it as I have checked my resources and cannot come up with the right syntax for …

Member Avatar for R0bb0b
0
85
Member Avatar for simps0n

Hello, I am PHP newbie (or even worse) and I have a problem with one function. I want to load content of an [URL="http://xml.goalsfeed.com/wettbasis/index.php"]external page[/URL] and I use the [B]include()[/B] function. It's working, but the external page has some [important] pop-up windows (that use /goals.php file) that I want to …

Member Avatar for R0bb0b
0
106
Member Avatar for Kavitha Butchi

Hello all, I am trying to code for user's profile pic uploading and resizing the image. I am using the following code and I dont know where I am going wrong! [code=php] <?php //This is the directory where images will be saved $target1 = "images/"; $target = $target1 . basename( …

Member Avatar for Kavitha Butchi
0
392
Member Avatar for mgt

I'm a new PHP user and could use some help creating a nested "While" loop. The code below creates a drop-down menu. For each value in the drop-down menu, I would like to create another drop-down menu. For instance, in the primary drop-down, you'd see Category1, Category2....CategoryN (with values pulled …

Member Avatar for mgt
0
726
Member Avatar for Tig

Hello I have a PHP website form that gets filled out with spam - mostly URLs. To try and stop this I have inserted the following code into my form: [code=php]$SpamErrorMessage = "No website URLs permitted"; if (preg_match("/http/i", "$telephone")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$website")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", …

0
58
Member Avatar for jencinas69

Hello I have this csv file 414060,440A,,,"QUECHAN INDIAN TRIBE SECRETARY- HIGHER EDUCATION DEPARTMENT Salary $8.00 per hour Position Closes May 9th, 2008 Position is responsible for providing administrative support to the Higher Education Department. Preparing office reports, maintaining the fi" 414297,445B,,," Come work in a great team environment. NOW HIRING …

Member Avatar for jencinas69
0
1K
Member Avatar for shariana

Can anyone help me? Obviously, I do not know what I am doing!!! I am getting this error: Parse error: syntax error, unexpected ';' in /home/wbritt/public_html/ADMIN/index.php on line 341 [code=php]<?php include("login_config.php"); include_once("Utils.php"); if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){ ob_start(); } if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE")) { $IE=true; } else { $IE=false; } $AC=true; include("security.php"); $lArray=DataArray("admin_users","username='$AuthUserName'"); if(isset($lng)){ $LANGUAGE=$arrSupportedLanguages[$lng][1]; $LANGUAGE2=$arrSupportedLanguages[$lng][1]; SQLUpdate_SingleValue( …

Member Avatar for shariana
0
63
Member Avatar for punithapary

Anyone can tell me.How many ways are there to connect PHP with MYSQL and give me code also pls

Member Avatar for pritaeas
0
82
Member Avatar for dinki

can anyone please tell me where do i found the theme/module for the eazyportal CMS

0
43
Member Avatar for praveen_dusari

hi, iam completely new to php,iam having a problem with shopping cart where i have to compare two products via checkboxes could anyone help me out .ihave no idea how to do that plz help me!

0
93
Member Avatar for pandoola

This is driving me crazy... $sendit = (`ls`); echo $sendit; The above chunk of code returns a directory listing on my php page just fine. However... $sendit = (`sendmail`); echo $sendit; This seems to do nothing. I am looking for a time stamped sendmail entry in /var/log/mail.log but see NOTHING! …

Member Avatar for pandoola
0
74
Member Avatar for Venom Rush

Hi all I've been trying to figure out how I would accomplish my problem mentioned in the titl of this thread with no luck. I've looked at a combination of using strstr, str_replace, substr and strpos. What I'd like to do is manipulate a paragraph so that if there is …

Member Avatar for Venom Rush
0
133
Member Avatar for kevin wood

i have found this code and would like to know how i can get the column titles to show up at the top of the page. [CODE]$result = mysql_query( "SELECT * FROM merc_users" ) or die("SELECT Error: ".mysql_error()); $num_rows = mysql_num_rows($result); print "There are $num_rows records.<P>"; print "<table width=1000 height=400 …

Member Avatar for kevin wood
0
100
Member Avatar for dele454

Hi, Just trying to learn on how the Zend Framework works but i keep on getting this errors on viewing as [url]http://mainevent[/url] on my local machine: [code]Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in D:\apachefriends\xampp\htdocs\xampp\mainevent\include\Zend\library\Zend\Contro ller\Dispatcher\Standard.php:249 Stack trace: #0 D:\apachefriends\xampp\htdocs\xampp\mainevent\include\Zend\library\Zend\Contro ller\Front.php(914): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 D:\apachefriends\xampp\htdocs\xampp\mainevent\public_html\index.php(16): Zend_Controller_Front->dispatch() …

Member Avatar for dele454
0
104
Member Avatar for samarudge

Is there any way to name a variable after another variable, I sort of made up this bit of code which I thought might work but it didn't [CODE]<php $V_Name = 'variable'; $"$V_Name" = 'Hello'; print($variable); ?>[/CODE] Bit of a long shot I know but I thought it might work, …

Member Avatar for samarudge
0
95
Member Avatar for Killer_Typo

[php] <?php /* declar some relevant variables */ $Host = "localhost"; //location of mySQL on server $User = "michael"; //my username $Pass = "koolaide"; //my password $Name = "phpaccess"; //name of the database to be used $Table = "info"; //name of the table within the database mysql_connect ($Host, $User, $Pass, …

Member Avatar for michael.mckee
0
3K
Member Avatar for helraizer

Hey folks, I have made an image-based shoutbox and now users can view older and newer message on the shoutbox depending on the $_GET['page'] - pagination - that works. However, since it's image based and can be linked in forums etc. on the Internet I only want it to save …

Member Avatar for helraizer
0
95
Member Avatar for forwardlookguy

I've got some code using a lot of complex if statements that I'm using for a VIN decoder. I finally got it working and I'm hesitant to alter it but these if statements are huge! If a switch statement could be used to accomplish what the if statements are doing, …

Member Avatar for silviuks
0
132
Member Avatar for Zemfik

I have a client who I simply don't have the time for any more. I wrote his website in PHP and it's worked fine for over 6 years now. I've told him to find someone else, but upon telling him I want him to find someone else: 1) he's only …

Member Avatar for msteudel
0
122
Member Avatar for MDGM

Hey guys, I have a script calling the value from a hidden field from the previous page and then writing it to the page. What code would I have to use to say: IF hidden field value from the previous page is empty then the hidden field value should be …

Member Avatar for MDGM
0
88
Member Avatar for pandoola

I have an Ubuntu machine hosting a site (apache2), running Sendmail. When I "sendmail -f [email]user@mydomain.com[/email] [email]user@wherever.com[/email] < some-email.txt" from a terminal window on this machine the email comes through no problem (/var/log/mail.log substantiates this). For whatever reason I CANNOT get sendmail working from a php script on my site. …

0
41
Member Avatar for Pavlos1316

Hi.. Note that Iam quite new at this :) What I try to do is to give the option to members to update/change their password or email. How do I tell when nothing is entered in password field lets say not to POST anything. The code below checks if username …

Member Avatar for petr.pavel
0
132
Member Avatar for kvdd

Hallo everyone, Im new to this forum, but not new to PHP, I do a lot programming in it, but sometimes I have to [B]less[/B] knowledge to solve the problems I get. The title is not very explained what my problem is, so mods, edit it if you want. [B]The …

Member Avatar for kvdd
0
85
Member Avatar for colcar2008

Hi, Can you please help me? I need to store the path to an image in a mysql database. Would anyone be able to provide me with a script that can do this? Thanks Col

Member Avatar for peter_budo
0
77
Member Avatar for jino

Dear All, I want to convert a jpeg or png or gif file to bmp file ... can anyone help me..... It will be very thankful if anyone publish the code for converting other type of image files to BMP file.. Thanks in advance.. Jino.

Member Avatar for digital-ether
0
54

The End.