39,402 Topics
![]() | |
Hi, I'm struggling to get a relatively simple PHP/MySQL script to work. Basically, I've got two tables populated with entries from a database. However I'm getting errors on the second table [icode]mysql_num_rows(): supplied argument is not a valid MySQL result resource [/icode] and [icode]mysql_fetch_array(): supplied argument is not a valid … | |
Hello, I've got a variable string ($policies) of CDATA, that is dynamically generated, what I am trying to do is to find a way to separate the various divs into separate variables. For example the following string will have to be split into $policy_hotel_pets, $policy_children, etc.. each variable storing its … | |
I'm hoping that someone will give me a moment so I can understand how formmail works so that I can more effectively troubleshoot my problems. Background: I'm downloaded a very basic formmail to use on our intranet site for employees to respond to. I'm testing this on a XP Pro … | |
Question My xml parser is runing into an error when I try to parse the attached csv I think is because of the three commas before the description, I clean the file manually and leave only 1 comma and it work. I there any way I can identify the extram … | |
Hey folks, I'm working on animating gifs in GD. I've adapted the use of the GIFEncoder class from phpclasses. original [B]gif.php[/B] [code=php] <?php Class GIFAnimator { var $GIF = "GIF89a"; var $VER = "GIFEncoder V2.05"; var $BUF = Array ( ); var $LOP = 0; var $DIS = 2; var … | |
For starters im making a survey form for a website and ive run into a bit of trouble, if anyone could help and point me in the right direction it would be muchly appreciated :) Im a bit of a php/mysql noob, I can kinda make cookies, I kinda know … | |
[code]if(isset($_SESSION['admin']) == TRUE){echo "<font face='tahoma' color='#ff0000'>ADMIN : ".$_SESSION['admin']." welcome<br></font>";} $sql="SELECT * FROM messages WHERE messages.user_id=" .$_SESSION['userid']. ";"; $result=mysql_query($sql); [COLOR="Red"]$numrows=mysql_num_rows($result);[/COLOR][/code] for the previous code the browser show me this message: [COLOR="Green"]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/e3lan3.freehostia.com/header.php on line 9[/COLOR] and line 9 is the … | |
hi how i redirect from .org to .com ex: my page is [url]www.aaaa.com[/url] i want when user write [url]www.aaaa.org[/url] then it will redirect automaticly to [url]www.aaaa.com[/url] :) | |
hi, in java this is a syntax for creating an object for class. hello obj=new hello(); where as in php this is the syntax. $obj = new Java("hello"); now i want to cal constructor with parameters, here the syntax for java. hello obj=new hello("key"); pls give syntax for the above … | |
Hi, i need your help urgently, im using Czepdf in my php to produce pdfs, now I have a problem in placing two pictures in line with each other or adjuscent to each other, actually i am designing a certificate and should have 2 signatories at the bottom of each … | |
hello all, In servlet for encryption and decryption,i used bouncy castle light weight cryptography API to perform DES encryption of arbitrary data,which encrypts/decrypts,then the generated value are in bytes,i used base64 encoder/decoder to convert bytes into string.now the same task i want to do it in php? pls help me … | |
Hi, i would like to know if it is possible to pass values from one page to another through an image link? I've have tried to "echo" the values but it seems like the values are not passing into the other page. Any suggestions on how to do it? regards, … | |
Please I have a problem. I have a list of countries in my database. After someone completes filling a form which is then stored in the database, the value for a country appears in the database instead of the country name. For example ,when some selects England from a list … | |
Hi, I got a gmail account and i would like to use the SMTP configured to use this account. When i entered the related information, I get the following error: [B][I]Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.gmail.com:465 (Connection timed out) in /home/content/e/c/a/eprojects/html/dotproject/classes/libmail.class.php on line 411 Warning: Cannot modify header … | |
Ok, I know this has to be simple. My Javascript skills are very weak (will become obvious in the code.) What I'm trying to do is use two Submit buttons in a form. The called function I want to send one named variable if one Submit is clicked and another … | |
I wish to check if a variable (I am pulling the variable as mysql_fetch_array) contains the number 2008 in it. If so it is displayed. Now I have the display working fine but it displays everything and I want to optimize it to just show the variables containing 2008. Any … | |
Nevermind, I'm a retard. I had phpMyAdmin opened to the live server, not the testing server which is still empty. I need a drink. | |
Hi All I have a very simple website for selling real estate - and I use a third party custmer management system - they give me free listings which I have showing within a listings page on my site. (good so far) :) My problem is when a user clicks … | |
Q: I hope you might be able to help me I think mysql is not quit right but I am not sure what is not right. Except my site is not working. What happen is i can register, that works. I can log in to create a memorial and it … | |
EDIT: Ahhh.. nvm, I found it: [ICODE]die("Error with database".);[/ICODE] should be [ICODE]die("Error with database.");[/ICODE] Might anyone know why the following php script produces [I]no[/I] results? I.e., when I ctrl+u in Firefox, a blank screen comes up. [CODE=php]<html> <head> <title>Create Base</title> </head> <body> <h1>Create Base</h1> <form action="bases.php" method="post"> <table> <tr><td>Name:</td><td><input type="text" … | |
I have been programing a php online bot with an admin panel. It mainly works good an all but my forms are double posting. So the way I have designed the form is that the user enters the data. Then clicks the submit button which sends the data to MySQL. … | |
Hello, I have no knowledge of PHP and have been looking around for some information for a few days now so thought I would try here - excuse my ignorance:-) I have recently installed a business listing script called easysearchdirectory on a webhost4life hosting account. I have never had any … | |
Hello everybody, In the faculty we are told, to develop a project for Faculty Library with more functionalities and facilities. [B]Who roles:[/B] Administrator Librarian Lecturers Faculty Students Others faculty students has different Access level [B]Criteria:[/B] Store Book Information Store Users Information Store information on lending books Achieve information on returned … | |
How could I put the following sql statement into a php variable? [code=sql]load data local infile ".$filename." INTO table testtsttbills FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'(account,service,date,time,timebandtype,destination,callednumber,mins,airtimecharge,tollcharge,amt,privatenumber)[/code] when I tried to putting it in the variable...it's showing not working because it recognizes the double quote in … | |
I've tried [URL="http://developer.yahoo.com/yui/editor/"]YUI rich text editor[/URL] and found it great but I still can't figure out how to to integrate it with php . If I put the textarea in a form with method=POST what will be the $_POST['??'] that will give me the html ? thanks. | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
Hello to all, My name is nirbhab, I am from India, Delhi. [B]My Areas:[/B] PHP Javascript PEAR Joomla Codeigniter Jquery HTML CSS Ajax I work with Algoworks Technologies Pvt. Ltd. Noida. India. | |
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( … | |
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 … | |
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", … | |
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 … | |
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( … | |
Anyone can tell me.How many ways are there to connect PHP with MYSQL and give me code also pls | |
can anyone please tell me where do i found the theme/module for the eazyportal CMS | |
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! | |
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! … | |
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 … | |
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 … | |
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() … | |
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, … | |
[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, … | |
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 … | |
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, … | |
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 … |
The End.