39,320 Topics
| |
Hello I am working on a web page(php based). I want to put a `like` button, so that when a user clicks it, he is added to the likers list in my database.(like in the facebook). I wrote a php funtion to execute this database insertion, but since the event … | |
Hi all, I have the following code to process through my requests, then use in a database. FIRST of all, I was wondering if i have it in the right order, and SECOND, if there are any other steps i could do to secure up my application. have a look, … | |
I am signin my lgoin page it will redirect to my home page. The probs is when i am pressing back button it will go to login page. Again come on home page by press forward button. Is there any method to stop all this things. means it should be … | |
I have a shared folder with images in a machine. How can I display images from that machine in a web page in another machine. I used the follwing code but obtained no output ** <?php $img_src="file://192.168.0.138/E:/img1/12/12N69/12N69$0001A1.JPG"; ?> <img src="<?php echo $img_src ?>" alt="" width="1000" height="220" id="myimg" />** | |
Hello, I am making a php comment box (without sql with a file where i post the comments) i'd like that the the time that the comment was posted be written along with the name of the person, but it gives me the current time, here is my php code. … | |
I have the following code for a wordpress theme. For some reason an arrow appears on the page. I originally thought it was because of the thumbnail but once I removed the thumbnail it still appeared but in a different spot. What I'm aiming for is have the blog post … | |
Dear all, My database cannot accept uploading file when filename contain single quote " ' ". Then it show the error. For example my filename testuploads'.xls Got the error message Error, query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL … | |
In .php file i have $str = "I am in php file"; $str2; I want to copy specific amount of char in $str2. say suppose i want to copy " I am in" from $str. How to do? Is here any help??? | |
it always goes to echo "failed;" and print error: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\login_test\forgotpassword.php on line 49 failed $to = $email; $subject = "Forgot password"; $message = "Hi $firstname_db,\n Your … | |
I have this code: <?php foreach ($_options as $_option) : ?> <input id="xyys" type="hidden" name="xyys" value="<?php echo($_option['value']);echo ($_option['option_id']);?>" /> <?php if($_option['label'] != 'Corte'): ?> <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?> <dt><?php echo $this->htmlEscape($_option['label']) ?></dt> <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?> <?php if (isset($_formatedOptionValue['full_view'])): ?> <div class="truncated_full_value"> <dl … | |
Hi, i trying to do a registration form (easiest thing ever) but i'm having trouble doing the validation :S <?php include 'db_connect.php'; ?> <html> <head> <title>Adminstração</title> </head> <body style="color=#FFFFFF" bgcolor="#666666"> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <form method="post" action=""> <td align="center" valign="middle"> <table width="300px" cellpadding="0" cellspacing="3" bgcolor="#FFFFFF" style=" … | |
Hello forum! I was tinkering with a login script and I came accross the following error: Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/content/79/9398479/html/abyss/dio.php on line 60 //Code here: <?php $sqlError = 'We are experiencing very temporary downtime, please refresh or try again in 10 minutes.'; … | |
i though i should try again.. i tring to display all the images of user who is loged in. my database called image: which has image_id user_id image(type long blob)(stores image here) image_full_name ---etc i have two files gallery.php where iam trying to display the images and it uses a … | |
Hello there, I've got a search box that finds the item that I look for but it doesn't display the id number when i put the mouse cursor on top on the item. instead of showing the id number it shows the variable ($id). Any idea why this is not … | |
Hello there, I have been looking on the internet for the past week or so but no luck. I have come accross few bits and pieces but nothing that really worked or too much for what I am looking for. I am looking to have a Accordion Menu with 3 … | |
Hi, Code below is just to print a message. Nothing more. Question is: Whether we have the line `return $this->myname;` or not, it works fine but why some people still use `return` in such cases? Is it just a matter of taste or I'm missing something about OOP? Example below … | |
Hi, I want to display my database records in <ul> <li> format. I have using a free template to design my front end. I am reading database data like this while ($row = mysql_fetch_assoc($result)) { $categoryname = $row['category_name']; } and within the loop i have to display records like this … | |
Hi all. I have the following problem: I read this string from an XML file: "User Name ={$username}" and then store it in a local variable $test. I read this in a function, where I have a local variable $username. However the variable inside the string is not interpreted to … | |
Good day everyone, I want to know how to send email to outlook in php after signing up please give some example and discuss it to me clearly thanks very much .. :* | |
Dear experties, Actually I don't know how to specify what I'm trying to do. I only tell you thru this figure. I don't know how to come out report by this way. How can I do? What kind of method to get report like this in a table? Please help … | |
So I have a text file that has 4 items in each line. I would like to store these into an array. So this is an example of how they are stored: imgur.com | link.com | 60 | 468 Thanks in advance | |
I'm using PHP code from: [DetectMobileBrowsers.mobi](http://detectmobilebrowsers.mobi/) to redirect mobile users to a mobile site. I've got this code at the top of my page but I'm not experiencing any redirects. include('mobile_device_detect.php'); mobile_device_detect(true,true,true,true,'http://mydomain.com/mobile.php','http://mydomain.com/index.php'); I don't want to include the code from the website mentioned above because I believe it's copyright. Is … | |
Hi, I'm working on a website where i have to translate the pages and the way i have to do is a little confused. Here it goes: I have to create 2 files lang_pt.php and lang_en.php where i have common arrays where i do the translation. lang_pt.php: <?PHP $lang['Family Office']="Family … | |
Hi guys. Im a clueless hobbyist with a little problem I cant solve. I hope I can explain it well enought to be understood. I have been trying to use the substr() function to show a the first few line of my aricles and then give a link to the … | |
Hello. I've been viewing this site for a long time, but finally decided to join and ask for help. I'm using citrusDB and a sample code from authorize.net and I want to pass off some information from the citrus DB to the authorize.net code. I've been trying to do this … | |
<?php include('config.php'); include('functions.php'); sqlconnect(); // Passkey that got from link $passkey=$_GET['passkey']; //echo $passkey; $tbl_name1="tbltemp_subscriber"; // Retrieve data from table where row that match this passkey $sql1="SELECT * FROM $tbl_name1 WHERE confirmation_code ='$passkey'"; $result1=mysql_query($sql1); // If successfully queried if($result1){ // Count how many row has this passkey $count=mysql_num_rows($result1); // if found … | |
After around 20 years of not working with PHP\MySQL, it appears I am in need of a little assistance (as I have forgotten most of what I knew) to point me in the proper direction. What I have is a basic search field that automatically pulls information from MySQL once … | |
I want to create a php file that reads HTML file that is uplaoded daily to a folder on my web server, when ever I open the page it needs to read the HTML file and post only data i want to use, i have created some reader but it … | |
Hello there am working on a website where members can add event. Once the member select the event type, the form for that event will appear. below are the pages i did. I also included jquery-1.7.2.min.js. Once i select any event on the **add_event.php** it brings the right form as … | |
Hi all, I am having trouble figuring out a good way to go about looping my database results. Currently, my code looks something like the following (abbreviated for simplicity): $db_results = $wpdb->get_results("SELECT * FROM table"); echo '<table><thead><th>Name</th><th>Number</th></thead>'; echo '<tbody>'; foreach ($db_results as $result) { echo '<tr>'; echo '<td>' .$result->name. '</td>'; … |
The End.