-
Began Watching PHP site with two languages
Hi all, I going to create a php web site in English. I want to have a another language in my site which not in Google Translator. How can I … -
Replied To a Post in PHP site with two languages
Maybe you should read this: http://www.php.net/manual/en/book.gettext.php -
Began Watching Adding tabs to format generated HTML
I have the following snippet of function and call to another function for returning tabs to format code. public function makelinks ($urls_data) { ...code... $i = 5; $tabs = $this->echo_tabs($i); … -
Replied To a Post in Adding tabs to format generated HTML
It works perfectly well in my browser (Firefox 30 on Win7). Clicking on a *View page source* it shows 5 tabs. -
Began Watching PHP Dropdown question
hi guys, i wonder if someone could help, i am teaching myself with tutorials and online books etc PHP, ive played around in it before, but due to time i … -
Replied To a Post in PHP Dropdown question
The option that should be selected has to have a `selected="selected"` attribute. To find out which one it is, you do a check in each iterration. Suppose that com_FirstName is … -
Began Watching Log in script issues
Hi Guys, I'm having a few issues, I have managed yo let users register this works fine. But When the registerd user tries to log into the site I'm getting … -
Replied To a Post in Log in script issues
Se the [manual](http://www.php.net/manual/en/mysqli.query.php) - the *procedural style* part. The mysqli_query expects two parameters, the link and the query. Similar goes for the [mysqli_error](http://si1.php.net/manual/en/mysqli.error.php). It expects the link in procedural version. -
Stopped Watching Colour Conversion Class
## Background ## Hi All, I 've been playing around with colour (color!) formats and needed to create a class for converting different formats, so I thought I'd share it. … -
Stopped Watching print array
Hello All, I have fetched array from database, it is two dimentinal array. and want to print it into html table. But when print it's need attribute while printing it. … -
Stopped Watching PROBLEM WITH PHP
i have a problem with php. I write the following code and it returns blank <?php $query = mysql_query("SELECT * FROM users"); $result = $database->sql_query($query); while ($dr = $database->sql_fetchrow($result)) { … -
Stopped Watching if $var is text display error
I need to make echo for each next situation if points typed is <0 echo can't be negative number if points typed is 0 echo clean 0 if points typed … -
Replied To a Post in if $var is text display error
> I tried that in begining, it execute 2 echo's for text and for = 0 so its like Points can't be text.Clean 0 What did you input to get … -
Began Watching if $var is text display error
I need to make echo for each next situation if points typed is <0 echo can't be negative number if points typed is 0 echo clean 0 if points typed … -
Replied To a Post in if $var is text display error
Why don't you do it simple way: // first check if it is or isn't a number if(!is_numeric($points)) { echo "Points can't be text"; // then try all possible values … -
Stopped Watching Session across subdomains on same server
Please help with this...say we have few subdomains domains on same server. blog.robots.com chat.robots.com forum.robots.com forum.robot.com generates the session id of a user. I want to share this session id … -
Replied To a Post in download image from database
Had a quick look at it and one of the videos. Seems to be a nice piece of work but haven't figured out why would it be better to use … -
Replied To a Post in concatenate to form a query string
Post the table structure and complete error message (see my post above). > reply Please be patient if people don't have time to reply immediately :-) -
Began Watching archive list (blog style) using php and mysql
I want to create an archive list like this: 2014 -March -Feb -Jan *Post 1 *Post 2 2013 -November *Post 1 My config file is: <?php ob_start(); session_start(); //database credentials … -
Replied To a Post in archive list (blog style) using php and mysql
I hope I understood OK what you want. I suggest you do it as a single unordered list and use css styling (classes) to handle indent. I am posting an … -
Replied To a Post in How to add script :"Are you sure to delete data?"
Good to hear it works as you expected. Please mark this as solved so it is officially out of the way :-) -
Replied To a Post in How to add script :"Are you sure to delete data?"
After looking closer at your code I figured out that you do not need neither javascript nor ajax. Before posting my version of code I have to warn you that … -
Began Watching How to add script :"Are you sure to delete data?"
Hello PHP Friends, I think this is just if else statement problem but im kinda lose to it. The whole code is succesful in deleting the data from database the … -
Replied To a Post in How to add script :"Are you sure to delete data?"
If you wish to use the above soultion by ehpratah you will have to use ajax since queries can not be performed by javascript itself. You can use a [jquery … -
Began Watching Colour Conversion Class
## Background ## Hi All, I 've been playing around with colour (color!) formats and needed to create a class for converting different formats, so I thought I'd share it. … -
Replied To a Post in Colour Conversion Class
Nice job. Haven't tested the class but after scanning the code it is obvious that this is a nice example of clean coding / useful functionality. Quite some work must … -
Began Watching concatenate to form a query string
i have an array names skills in which there are various skills now i wanna create aquery like select * from tablename where skills regexp ""skill1" and skills regexp "skills2" … -
Replied To a Post in concatenate to form a query string
It would help if you could be more specific. Show some code so we can see things like the array structure and values, the table structure, the complete error message … -
Stopped Watching PHP Shopping Cart Variable and Object errors
I need help to eliminate the errors Im getting. I have a shopping cart that is displayed on the products page by way of a cart update page. I get … -
Began Watching print array
Hello All, I have fetched array from database, it is two dimentinal array. and want to print it into html table. But when print it's need attribute while printing it. … -
Replied To a Post in print array
It would be helpful if we see the actual data in the array. Put this code between lines 10 and 11: die(print_r($skills_1, 1)); Post the output here. It is also … -
Began Watching PROBLEM WITH PHP
i have a problem with php. I write the following code and it returns blank <?php $query = mysql_query("SELECT * FROM users"); $result = $database->sql_query($query); while ($dr = $database->sql_fetchrow($result)) { … -
Replied To a Post in PROBLEM WITH PHP
Shouldn't line 2 be: $query = "SELECT * FROM users"; (without the mysql_query part)? -
Began Watching download image from database
Hello everyone, I want to download an image which was uploaded from the database Here is my HTML codes for the download link <a href='download.php?id=<?php echo $data["LRCard"]; ?>'>Download</a> and here … -
Replied To a Post in download image from database
On line 6 you must enclose the associative index in quotes. Consequently you have to change the code for the query slightly, like: mysql_query("SELECT LRCard FROM student_information where student_id='" . … -
Began Watching Session across subdomains on same server
Please help with this...say we have few subdomains domains on same server. blog.robots.com chat.robots.com forum.robots.com forum.robot.com generates the session id of a user. I want to share this session id … -
Replied To a Post in Session across subdomains on same server
Maybe storing session data in database would give you control you need. See this article about the topic: http://shiflett.org/articles/storing-sessions-in-a-database -
Replied To a Post in insert into database as array
Post the code for the insert query. -
Replied To a Post in insert into database as array
In any case it is good practice to check for values before using them: if(isset($_POST['child-fname']) && !empty($_POST['child-fname'])) { $childfname = ($_POST['child-fname']); } elese { // do some falback procedure } -
Replied To a Post in insert into database as array
Obviously $_POST['child-fname'], $_POST['child-lname'] and others are arrays, not strings. Can you post the contents of some of them. Put this code somewhere in the script and post the output here. … -
Began Watching insert into database as array
hi guys so this page where part of the form elements are made arrays by adding square brackets to the input names. the reason i did that is because that … -
Replied To a Post in insert into database as array
Post the bit of code that uses the `mysql_real_escape_string()` function. It is important that you give this function a string as a parameter (not an array as in your case). -
Stopped Watching Searching Through Database
Hey guys, So I've been devloping a TV Guide website that will allow you to fill out a variety of different fields, then searches the database for that information, and … -
Began Watching Pass SQL query into a PHP array
I have a 2 column SQL table as follows: **Product Price** Drill 20 Hammer 15 Screwdriver 5 Screws 2 Nuts 3 Bolts 6 I eventually want to embed a PHP … -
Replied To a Post in Pass SQL query into a PHP array
Seems like **eburlea** was right in his first post since there is no `$query` variable in your script. Try looping over the query object directly: foreach ($db->query($sql) as $row) { … -
Replied To a Post in Searching Through Database
You have marked it as solved but seems you still have problems? If you wish we can still find a solution. Post the latest version of the script here and … -
Began Watching Searching Through Database
Hey guys, So I've been devloping a TV Guide website that will allow you to fill out a variety of different fields, then searches the database for that information, and … -
Replied To a Post in Searching Through Database
You will have to check for values of each of the fields and build the query accordingly. Something like: $query = "SELECT Schedule.Channel_Number, StationInformation.Station_Name, Schedule.Program_Name, Schedule.Date, Schedule.Time FROM Schedule INNER … -
Began Watching Upload excel file in mysql from php
Hi this is Sukhdev, I am new in php and wish to know how to import the data from excel sheet to mysql Table; 1. I have a table with … -
Replied To a Post in Upload excel file in mysql from php
Here's another Excel library with good documentation and examples: https://phpexcel.codeplex.com/
The End.