39,320 Topics
| |
hi all, onclick a link i am exporting all details to excel. it's working well. but when i uploaded this file to my domain and run it,it is fetching data but not all data, columns are exporing to excel but only first 3 value are exporting to excel. any idea … | |
this is 'pemaju_semakan2.php' coding <?php include("db.php"); ?> <?php $IDSykt=$_POST['IDSykt']; $query = "SELECT * FROM pemaju WHERE PJ_SYKT_NO='$IDSykt'"; $result=mysql_query($query); while($row = mysql_fetch_array($result)) { $IDSykt=$row['PJ_SYKT_NO']; $NamaSykt=$row['PJ_SYKT_NAMA']; } this is 'db.php' coding <?php $hostname_connection = "localhost"; $database_connection = "zaza"; $username_connection = "root"; $password_connection = ""; $connection = mysql_pconnect($hostname_connection, $username_connection, $password_connection) or trigger_error(mysql_error(),E_USER_ERROR); ?> … | |
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 … |
The End.