Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~11.8K People Reached
Favorite Forums
Favorite Tags

21 Posted Topics

Member Avatar for scrivomcdivo

//First you need to get all needed columns and CREATE TABLE. For this task you need to read the whole file first. //Here we go: //[CODE] $f = file_get_contents('json.txt'); $arr = explode('},',$f); // Prepare for json_decode BUT last } missing $global_arr = array(); // Contains each decoded json (TABLE ROW) …

Member Avatar for Hex_1
0
6K
Member Avatar for fenixZ

Hello guys I am looking for a way to block links from embedded swf files. I have a situation where users are allowed to upload SWF and now I see that many of these SWF files have links to external sites. No meter what I want to solve this problem. …

Member Avatar for Renato_1
0
160
Member Avatar for manchurianCEO

1 Create a new file openhtml.php 2 Insert following line in you HTML <html <?php require_once('openhtml.php');?> > 3 Insert this into php file: [CODE]echo' itemscope itemtype="http://schema.org/" ';[/CODE] 4 Done.

Member Avatar for epixeltechno
0
195
Member Avatar for mukororokudo

As you are new to PHP I suggest you always test what is in your input variables to get a better understanding why it is done that way. [CODE] var_dump($_POST['loan'],$_POST['CO']); [/CODE] Read more about checkboxes, radio buttons, input fields and how they are presented at run time. It is better …

Member Avatar for epixeltechno
0
143
Member Avatar for komanche

You can try: [CODE]$username = $_POST['username']; $password = $_POST['password']; var_dump($username,$password ); // If tha it is ok continue dumping... //... var_dump(mysql_query($query)); // see what it returns on correct incorrect and empty var_dump( mysql_num_rows($query_run)); if ($query_run = mysql_query($query)) //.... [/CODE] You should try more debugging first before you post question.

Member Avatar for karthik_ppts
0
787
Member Avatar for 007tron

My suggestion is //comment header(); for a moment and try to write your img output to a local file and see what errors PHP will throw.

Member Avatar for 007tron
0
209
Member Avatar for DarkBerzerk

Use CMS like Joomla 1.5 and component VirtueMart 1.9! Easy install. Many configuration options.

Member Avatar for DarkBerzerk
0
114
Member Avatar for khushhappy

As I understand it your query does what it should (orders correctly). But displayed date has too much useless info you need only the year. You need this: $mysql_return = '10-09-2011 12:11:17'; [CODE] $mysql_return = date_parse($mysql_return); echo $mysql_return['year'];[/CODE] [URL="http://bg.php.net/manual/en/function.date-parse.php"]Reference[/URL]

Member Avatar for diafol
0
130
Member Avatar for rimilbadal

If you are good at JS and want to send only what is needed not the whole form there is a solution. You can write a little JS function to get only what you want and send it via AJAX when button is clicked. But again you need to look …

Member Avatar for diafol
0
908
Member Avatar for extemer

My friend, as I am definitely not in your country, I can not imagine what you are talking about. I will be glad to help you at the PHP related stuff. (here to mention that I did such a system for my school but it was more like where the …

Member Avatar for diafol
0
101
Member Avatar for Rhamises

Well as I see it there is something really wrong how you wrote your code. [CODE]error_reporting(0);[/CODE] Remove this... (Warnings are there for a reason. Think more about it) Take a look closer: [CODE] case 'login': ... header("Location: ../index.php");[/CODE] My guess is a Warning: headers already sent is issued. Which is …

Member Avatar for diafol
0
159
Member Avatar for thepales

I do not know what is the problem with IE8 in concrete but when you deal wiht sessins in PHP you need a few things to be present.. [CODE] session_start(); // Starts session; Old if cookie/PHPSESSID present; New if nothing present; $_SESSION[]; // To set/get any info like userid; name; …

Member Avatar for fenixZ
0
292
Member Avatar for fenixZ

Hi guys, I am experienced in PHP or at least until today I was thinking so. I am not sure what is it all about exactly. In my opinion the following code should not echo anything BUT IT DOES. [CODE] $cache = 'all'; if($cache == 0) { echo 'Execute something'; …

Member Avatar for fenixZ
0
130
Member Avatar for SolImages

Well i did look at your form but you redirect so I could not reproduce the error. Be careful with <<<EOD I prefer [CODE]$body= "<html> Name : $var; City: $city; </html>";[/CODE] And as chrishea suggested [URL="http://lmgtfy.com/?q=SMTP+error+554+The+message+was+rejected+because+it+contains+prohibited+virus+or+spam+conten"]SEARCH [/URL]

Member Avatar for fenixZ
0
271
Member Avatar for fenixZ

Hi, I have a class and i have unset() within a function in it which throws Parse error unexpected T_UNSET. Some code : [code] class foo { function abc() { unset($this->err['main']['sub']['TOBEDELETED']); } } [/code] Where I want to unset only key TOBEDELETED . What may cause this?

Member Avatar for fenixZ
0
128
Member Avatar for ztwalsh
Member Avatar for webguru07

Why don't you use this little function nl2br ?? Turs new lines into HTML new lines....

Member Avatar for fenixZ
0
71
Member Avatar for lordx78

Why don't you put it in a session var??? And then display it with something like echo $var; ?? Don't worry about missing name if this var is empty so the user is not logged in.

Member Avatar for nav33n
0
114
Member Avatar for niladri.user

See there are some wrong thing in security with your code but now I am going to tell you syntax errors only (cause security is very deep....) mysql_query("insert into submit values('$_POST['name']','$_POST['roll']')"); must evaluate into: mysql_query("insert into submit(name,roll) values('$_POST['name']','$_POST['roll']')"); after name of table you have to put name of column also!

Member Avatar for niladri.user
0
146
Member Avatar for xceed

Warning: [COLOR="Red"]main(menu.php)[/COLOR] [function.main]: failed to open stream: [COLOR="Red"]No such file[/COLOR] or directory in /home/fabricon/public_html/1/index.php on line 60 It's all information there.. Just check & see on what level is this menu.php IT HAS TO BE in same dir as the php-file containing the function main(); Also you should provide menu.php …

Member Avatar for fenixZ
0
1K
Member Avatar for dami06

I just want to add something simple... Your table could look like this; user | pass | memb_level | When you start your session, you will simply add this: to a $_SESSION["level"] = $row["memb_level"] ; After that you will need to have some switch construction like this: switch($_SESSIO["level"]) case(0): // …

Member Avatar for fenixZ
0
176

The End.