39,402 Topics
![]() | |
Here is the error I am getting: Unknown column 'Lo' in 'field list' Here is my code. Any suggestions to get rid of this error: global $conn,$dal; $customerID = mysql_insert_id(); $strSQLInsert = "insert into Orders (CustomerID, LastName) values (".$customerID.", ".$values["LastName"].")"; db_exec($strSQLInsert,$conn); $rs = $dal->Orders->Query("CustomerID=".$customerID." and LastName=".$values["LastName"],""); $data = db_fetch_array($rs); $idvalue … ![]() | |
I am trying to write a php code that will determine if a user has viewed the Facebook app before, and if they havent to show a "welcome page" instead of the normal "index" page. Is there a way to read the sql table and forward them to a "welcome … | |
Hi, I want to know what you think is best for me to do. I got a functions file that is included on every webpage on my website as it is in the top.inc.php file althou not all pages will use the functions file. So my question is, should i … | |
hello guys , i want to know if i can sent 2 emails from my website at the same time and also how to send two different emails form one code at the same time , i mean i want to create a form that someone fill it to invite … | |
hello guys , how can i send my html email through php code , i mean i enter my html codes and then the php code sends it but in form of message not codes ,or any way ,my question is how to send an html email through php code … | |
guys i want my php pages appear as eg : my-page.com/page.php?id=01 please tell me how to do it and do i need to create many pages each one with different id or how does it work . | |
Is there a way to have an SMS authentication? Meaning a user puts there phone number it, they get sent an SMS message with a number, put the number in the website to verify the account. Any tutorials? | |
I am using Smarty for Template Engine. For one page, I want to display list of months in chronological order. The current month is July, so order should be July August September .. . . .. June. Any idea ? | |
Hi there. I am looking to create a script in php that will get an image from an upload form and upload it to a site using ftp. It needs to save the original image in the site images/full/ and also create a proportional image thumbnail (100x100) in images/thumb/ What … | |
Hi, I have basically created two functions in a filed called functions.php . They are as follows: [CODE] # Form Token Hash Generator (must be declared after if statement) function GenerateFormTokenHash(){ $token = $_SESSION['token'] = md5(uniqid(mt_rand(), true)) ; return $token; } # Form Token Hash Validator function IsValidFormTokenHash(){ return $_POST['token'] … | |
now i know that there is a thing that "you cant stay logged inforever" but isnt there some sort of ultra cookie that doesnt get cleared when a user is clearing their cookies from their browsers? and when someone logs out of my site, i set the session to expired. … | |
I need to know what should I do to show event time (stored in mysql) according viewer's local time. I have stored time in two format (one simple 12:30; and another in timestamp format). The timings are of future and stored as GMT. Now, I would like to show time … | |
Hi, Can any one tell me how to make secure php site or what is the key point for making secure website using php. -keval | |
Hello everyone. I'm still new to PHP. What I would like to do is to place the value of the $truck inside the column Truck. I don't have any error messages whenever I run this page, so I don't really know what's wrong, and no values are placed inside the … | |
the error i am getting in the html file Message: Syntax error Line: 1 Char: 1 Code: 0 URI: [url]http://localhost/testhtml/test.php[/url] The test.php code is <?php Header("content-type: application/x-javascript"); echo “document.write(‘Hello World I am php code called from HTML file:’);”; CLOSE WINDOW; ?> The test.html code is “<script language="JavaScript" type="text/javascript" src="http://localhost/testhtml/test.php"></script>” HELLO … | |
Well i need to change my banner of the website alternatively , like once user experiences the pic1 which would be incorporated in my CSS. But the point is i want that pic to change . for example when user 1st time logs in , he see pic1 as a … | |
Hi, I am trying to upload a single image but I keep getting an error that is at the bottom that tells me the upload failed - Its really annoying & I have been going round in circles for days now - here is my php [code] <? //Include database … | |
I own a site and the programmer has not made the columns user selectable for ascending and descending. Would any one like to help me out? Here is a spinet of code that has the tables. [code=php] <tr> <td width="50" align="center"><font size="2"><? print $usemembernumber ?></font></td> <td width="50" align="center"><font size="2"><? print … | |
the html version of this php script works. What's wrong with this php script? It produces:Parse error: parse error, expecting '','' or '';'' in C:\wamp\www\temp8.php on line 5 [code] <html> <body> <?php echo '<input onMouseOver="this.style.color='red'" onMouseOut="this.style.color='blue'" style="position:absolute;left:111px;top:290px;border:none; color:blue;border:none;background:transparent;font:bold;font-size:150%;cursor:pointer;" type="Submit" value="Print Selections" />'; ?> </body> </html> [/code] | |
Below is code as of now in my .htaccess [CODE]RewriteRule ^series/([^/]*)-([^/]*)-schedule-fixtures\.php$ /viewseries.php?id=$1 [L] RewriteRule ^schedule/([^/]*)-([^/]*)\.php$ /viewschedule.php?id=$1 [L] RewriteRule ^venue/([^/]*)\.php$ /viewvenue.php?vcity=$1 [L] RewriteRule ^team/([^/]*)\.php$ /viewteam.php?team=$1 [L] RewriteRule ^month/([^/]*)\.php$ /viewmonth.php?month=$1 [L] [/CODE] Now, Problem is that it doesn't show redirect 301 to google or anyone other. Can you tell what should I … | |
Hi there, i'm currently writing a HTML & PHP script, i need to be able to click a standard HTML button which fires some PHP code to execute a program, for example Microsoft Excel. In time there will be a series of buttons which will execute different programs. If anyone … | |
Hi All, New to the world of PHP and such, and took on a project that I really should have farmed out, but too late now. Here is my question: the problem is the redirect for an error message in a contact us page. I have very specific standards set … | |
Hi there, I was hoping someone might help me edit this [URL="http://www.pcmechanix.ca/mobile_redirect.htm"]mobile redirect code[/URL] so that it includes IPhones with the redirecting process. Any suggestions? FYI - Besides this minor exception, it is quite an effective code for redirecting mobile phones. You can try it for yourself, simply enter the … | |
Hi, I'm new here so first i would like to say hello to everyone :) I have been learning PHP for the past year on and off and have built a fully pledged website. Since my website first launched it has progressed into a full membership system which i love … | |
how do i insert a image into a directory through MySQL, rename it, generate a link and upload the generated link in MySQL......??? anyhelp will be really apprietiated.... and if its a tutorial its the best way out, i'm not good at PHP..... plz its urgent for me.. thx alot.. | |
Hi, I Want to Send HTML mail with Image and logo. pls some one help me how i can do it. Thanks -keval | |
Hi guyz i am getting an error on my header information..the warnig is displayed when this part of code Runs echo '<a href="' . 'ecomm_catalogue_view.php?product_code=' . $product_code .'" >'; '</a>'; header("location: ecomm_catalogue_view.php?' . 'product_code=' . $product_code . '"); the warning displayed on top of each page is: Warning: Cannot modify … | |
Hi, I used this coding for sending mail.It's working but there is a problem,I receive mail 2 times,then sender mail id is not displaying,It receiving in the name of webmaster that in coding ($headers = 'From: [email]webmaster@example.com[/email] ' . "\r\n")(eg. [email]webmaster@example.com[/email]), I want receive mail as sender mail Id who … | |
Hi, I am attempting to connect a form in Dreamweaver to an email account via a ftp webspace. I have the following generic code, (HTML form and PHP mail file) but I am not receiving emails... Would anyone have an idea of what I have done wrong and/or provide any … | |
Hey guys. This is driving me crazy. I can't see any code problems and I had another friend look and neither can he. EVERYTHING works PERFECTLY...all echos work right and everything and no errors get returned..the problem is $query4 and $query5 appear to do nothing..though i get no error..i get … | |
Hi there I am having some trouble with a script. What it does is uses the http request (similar to googles search suggestions) to replace the entire page content div, this works fine but some of these pages use javascript. one has a lightbox, another has contact form verification. is … | |
How could I [CODE]print();[/CODE] the '<' and '>' signs? You can't escape character them ('') Say, for example, I wanted to Print(); "The <font> tag is awesome" It would print out: "The tag is awesome" Thanks, Mitch | |
| |
I have a special character that I want to replace from a string. The character is š and i want to replace with s but I didn't managed to do this with this particular php file. It is actually encoded utf-8 . Please help me this is becoming a nightmare. ![]() | |
Hi, I am using some code that I use pretty much most of the time for every insert. However now I am getting this error and have no idea why this is happening. SQLSTATE[42S22]: Column not found: 1054 Unknown column 'NULL' in 'field list' My code is below. [CODE] $id … | |
hi all, i am new to wordpress. i am developing one sample theme. i created 5pages. i dont know how to set my home as index page. when i click my theme logo it must redirect to index.php it redirected but dynamic home page content are not displayed it displays … | |
Hi, I have a forum when members posting a lot of images links. I would like to organize the page but I don't really know how since I'm lack the knowledge of php :| . Here it how it's look like now: IS: [url]http://img78.imageshack.us/img78/3997/123.jpg[/url] [url]http://img78.imageshack.us/img78/3997/12345.jpg[/url] TP: [url]http://i42.tinypic.com/123.png[/url] [url]http://i42.tinypic.com/123.png[/url] and so … | |
Hi, this is my query. I calculate difference of 20 days from pDate(Process Date) form today. But I want if rfDate(Resubmitted date) it will count from rfdate and ignore Pdate. [CODE=mysql]SELECT * FROM `lims_payment` WHERE TO_DAYS( NOW( ) ) - TO_DAYS( `pDate` ) >20 AND rfDate LIKE '0000-00-00'[/CODE] | |
I am banging my head for many hours but still cant ge tit done. Here is the URl [url]http://www.superpages.com/bp/Fords-NJ/Five-Star-Insurance-Agency-LLC-L0001976672.htm?OF=1&C=taxation&lbp=1&TR=2&bidType=FFCLIK&PGID=yp457.8081.1278687125248.17713187910&dls=true&bpp=4[/url] I am trying to match the products and services part and lists that follow. Here what i had tried. [CODE]preg_match(/Services<\/a><\/h3>.*?<a.*?>\(Edit\)</a>\s+<ul>(.*?)</ul>/smi,$data,$store);[/CODE] | |
is there a way to display how many users are online in the site in PHP without utilizing mysql? | |
Hi, yesterday i downloaded a script. Now, im installing it on my website, but when i load index.php page and all the page where config.php is included, it say that: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mhd-01/www.newsict.com/htdocs/config.php on line 13 this is config.php : … | |
hi all, i am new to wordpress. i am getting [COLOR="Red"]"An Unexpected HTTP Error occurred during the API request."[/COLOR] error when i search for plugin in plugin installation page. why do i get this error. please help me. | |
Hi, I'm developing a php script that reads data from a mysql db and then puts the data into csv format to then be sent upto Pachube.com for a web app i'm developing. This is a simple problem i'm sure but i cant seem to solve it! Code below: [CODE] … | |
I want to do something like that: I have a textfield. If the user inputs Some word search, it puts something (it is not necessary, what) after every words, except last like Some 1 word 2 search or Some asdf word asdf search. How can I do that? Thanks! | |
hello... i am working on wordpress now. i have one doubt please clarify..actually in my blog there is confirmation form. if user sends after filling that form. i want to display that messages in admin side. how to do? | |
hi all, i am having a upload page where we can upload images.so the problem is wen i browse for uploading images i am getting a pop up as every one knows so in that if there are 4 images i need to upload in that popup,i am allowed to … | |
Hi all, I am trying to work an an array , by storing them in a txt file so I can process it. I tried several ways for storing the key and value in a text file, but it does not work [CODE] $diff = array_diff($array1, $array2); $myFile = "1.txt"; … ![]() | |
So this is the scenario. I provide a link to an Excel file. All the users are intranet user, so security is not a concern here. When the user clicks the link, it will pop up dialog to open/save with Microsoft Excel. Users are currently able to open file correctly. … | |
Ok, I am working on a website which will accept uploads and in an iFrame next to the upload form display a list of files in the upload folder. The iFrame will be showing a php script that is listing the files. Here is where the problem is, I can … | |
Hello all, I'll try to explain what I'm wanting to do the best way I can. I have an event_results table that contains multiple athlete id's and for each athlete they are tied to an event in the same table. The screen shots should help explain. I also created a … |
The End.