39,388 Topics

Member Avatar for
Member Avatar for tapuwa2002

I would like to find a method where i can find a character position in reverse.For example last "e" starting count in reverse. From example $string="Kelley"; $strposition=(strpos,'e'); it will give me position 1.

Member Avatar for adam.adamski.96155
0
222
Member Avatar for Sanchixx

I have a text file that i would like to display a part of so i use this code: <?php $page = file_get_contents('news.txt'); echo $page; ?> But in news.txt if i have this code `<?php echo"hello world!"; ?>` It will not display... when i look at the source code of …

Member Avatar for Sanchixx
0
563
Member Avatar for dancks

error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Its valid sql I checked I just don't understand what would cause that error. I also tried different statements and …

Member Avatar for radow
0
363
Member Avatar for romiaujla

Hi everyone, Here I have a php code, and i want to understand one part of it - like what is actually going on over there. (Based on Model View Controller(MVC) format) This is my 'model/category_db.php' - file It connects to the database and has some functions that have a …

Member Avatar for urtrivedi
0
207
Member Avatar for asaidi

Hi i have an htm created by ob_start--ob_clean (query from mysql) i can have more than 1 html each one for a user these htmls are converted to pdf using html2pdf and each file is called by the name of the cleint ex:if the user name is xxxx===>he will get …

Member Avatar for urtrivedi
0
463
Member Avatar for <M/>

how do i show inputted data in an email... I can't see what people inputted... And another question is how do I show the data all styled? here is the code responsible for styling and what I want to see... but i don't get this... instead I get something else... …

Member Avatar for urtrivedi
0
92
Member Avatar for guiburi

find and delete specific line from text file ==== cart.txt (tab delimated) ---------------------- guiburi PID001 KARLSTAD Sofa 2348 2 4696 guiburi PID002 BESTA Cabinet 1656 32 52992 guiburi PID009 PAX Wordrobe 1794 2 3588 deleteitem.php ---- if(isset($_GET['pname'])) { $pname = trim($_GET['pname']); } Info -- pname is sent from a another …

Member Avatar for urtrivedi
0
256
Member Avatar for <M/>

I have a csv file and I am not sure how to set dates on it... For example, if somebody submits a form and its information shows up in the csv but has a date that shows when it was submitted... Can someone help me with this?

Member Avatar for diafol
0
191
Member Avatar for johndohmen1963

Who can help me with the following i have 5 or more rows in a table the last column is called rank one row is called points. I want automatic insert the rank like when a person has 123 points is rank 1 the second person with 120 point rank …

Member Avatar for johndohmen1963
0
142
Member Avatar for grantcharov

Okay, I am a total newbie stuck with the following task. I have one table, that looks like this: | id | name | rating | date | ------------------------------ What I am trying to do is gettin an output showing which 'name' has the best 'rating' based on months, showing …

Member Avatar for grantcharov
0
229
Member Avatar for asif49

Consider you have a website visited by millions of people. 50 people or so fill in a registeration form and both press submit at exactly the same moment. Can SQL deal with all these requests at the same time, is there any chance it will accidentally generate the same primary …

Member Avatar for LastMitch
0
102
Member Avatar for honorhim

Hi, could anyone help resolve this error message for the code below? Thanks so much. Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/web/admin/index.php on line 69 <script language=php> session_start(); session_register("myauth"); include ("../connection.php"); $user_id=$username; $pass=$pws; $checkadmin = 0; $la_checkadmin = 0; if ($user_id!="" OR $pass!="") { $query …

Member Avatar for Zagga
0
774
Member Avatar for raindrops

Hi, I am wanting to add an extra payment method to my website which uses php code. I am not quite sure how to do this web having researched. I already have a PayPal option but would like to also include another option so my future customers can select bank …

Member Avatar for diafol
0
102
Member Avatar for freakvista

So i was wondering if it is possible to make something <a class='photo' href=<?PHP 'lala.php?blu=$q&subf=$subf&img=$imagenr' ?> target='_blank'> <span><img src=<?PHP'{$handle}/{$file}'?> /></span></a> lala.php is already made with all needed, but when i'm trying to make something with this code it doesnt show up the photo. I named class photo so i can …

Member Avatar for freakvista
0
174
Member Avatar for furlanut

I need one result from 3 tables. The JOIN query fields of the first table repeat throughout the 3 tables. Is the JOIN query set out incorrectly or do I have to re-define the $row index in some way to avoid repetition of the fields. I have been using 3 …

Member Avatar for furlanut
0
179
Member Avatar for LastMitch

Hi I having issue trying to add `2` months from the `date()` function? Here is my code: <?php // current date $todayDate = date("Y-m-d"); echo "Today: ".$todayDate."<br>"; // Two months from now is Christmas! echo "strtotime($todayDate) . "+2 month")"; echo "Today is Christmas: strtotime('l dS \o\f F Y', $todayDate)"; ?> …

Member Avatar for LastMitch
0
157
Member Avatar for mmcdonald

Whats the best way to collect all the users where `server_id = X` Table: id server_id user 1 2761 adam 2 2567 tom 3 2761 luke 4 2761 mike 5 2346 lucy So what should I do to echo all users where `server_id = 2761`? What output should look like... …

Member Avatar for diafol
0
144
Member Avatar for rotten69

I'm using jQuery for mobile and making the app show users a dailog box to let them enter their credentials when they want to log into the app. Ok. it redirects them to the home page but the url stays as mysite.com/login.php rather than mysite.com/index.php This removes the menu bar …

Member Avatar for rotten69
0
167
Member Avatar for showman13

OK, this may sound like an odd request, but hopefully someone can help. I have always developed scripts behind webpages that were 800 wide so they would fit on basically any display. The one I'm working on now I have designed for 1200 wide because I just needed more space. …

Member Avatar for showman13
0
92
Member Avatar for RazorNapster

Hi, I created wordpress web site using ms webmatrix(i needed to do it offline),now before i publish it i would need to transfer it my friends computer for further development.WebMatrix crates several files and folder however if i just simply try to copy them website wont run on another computer(webmatrix …

Member Avatar for diafol
0
74
Member Avatar for master-tech

Hi y'all, I've done a number of searches and haven't been able to find this question already asked... I have a simple, (in a single php file) URL Redirect in the form of a Wordpress plugin. I already have a simple "define->function->echo" code for displaying the total hits/visits count for …

Member Avatar for LastMitch
0
120
Member Avatar for tapuwa2002

I have a csv file with data I would like the data to be filled in the empty spaces. then export to excel file or into a database for example. I would like the first column to copy the first Product A to fill the other spaces For example Type …

Member Avatar for LastMitch
0
925
Member Avatar for randomkid73

As stated in the title, I'm trying to load a single row of user information into an array, preferrably associative. Here's what I have so far: function load_User_Info($id) { $parameters = array(); $results = array(); $query = "SELECT * FROM users WHERE User_ID=$id"; $stmt = $this->conn->prepare($query) or die('Error preparing query'); …

Member Avatar for randomkid73
0
2K
Member Avatar for JeniF

Hello to all! I have an online manual (developed in php)that my company would like to revise for printing purposes. What I need to do is have this manual setup to include page numbering on the printed version so the instructor can reference pages during training sessions. They have expressed …

Member Avatar for caroleesuserid
0
830
Member Avatar for pavitrakannan

# whenevr i execute ne "select *"for any database the error belo is shown,is there any setting in phpadmin....coz this problem occured 1 fine day.....pls help. # <html> <head></head> <body><html> <head> </head> <body> <?php $con = mysql_connect("localhost"); if (!$con){ die("Can not connect: " . mysql_error()); } mysql_select_db("snippets",$con); if(isset($_POST['update'])){ $UpdateQuery = …

Member Avatar for Will Gresham
0
135
Member Avatar for mpc123

Hi hope you can help with this. Fields have spaces in the fields being echoed, how would I use the replace to change those spaces to a dash. 'Make' field will be something like blar blar blar and I need it to be blar-blar-blar <h4><a href="">'. $row['Make'].'</a></h4> Hope you can …

Member Avatar for LastMitch
0
157
Member Avatar for mpc123

Hi I am trying to echo this info with the different rows in the database but when I try the following code only the first result shows up. Please can someone help <?php $con = mysql_connect("localhost","blar","blar"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("blar", $con); $result = …

Member Avatar for LastMitch
0
208
Member Avatar for dancks

code: I am trying to debug the code, I can't understand why (or how) the same error is being thrown despite the if statements, dies, and different mysql_queries. I don't get it. <?php session_start(); $_SESSION['msg'] = ""; $con = mysql_connect('localhost','me','omglol'); if(!$con) { die("The connection to mysql server is not being …

Member Avatar for LastMitch
0
109
Member Avatar for mogaka

Consider the following code: while($row=mysql_fetch_assoc($result)){ echo '<tr> '; echo '<td><a href="#?id='.$row['id'].'" class="dep_link"><img src="images/icn_edit.png" title="Edit"></a>&nbsp;<a href="#"><img src="images/icn_trash.png" title="Trash"></a></td>'; In my php form, i have created a jquery dialog link such that when the user clicks the 'icn_edit.png' image , a new iframe is loaded with fields for update. i want to …

Member Avatar for adam.adamski.96155
0
106
Member Avatar for rmbiss

using php,sql and wamp server.how can i update the web page content without sending the data into the database?

Member Avatar for diafol
0
69

The End.